Is there a way in Rails to get the duration (minutes, seconds, etc.) of
a flash video? I want to display the amount of time to the users before
they start playing it or downloading it.
I control the flash video and it is in my public directory.
There are many video clips and they change frequently and I don't want
to
have to look at them and store the length when I copy the file over.
The mediainfo CLI app, or ffmpeg if that doesn't work. You can shell out to the CLI with the back-tick operator, and the return from either of these will be plain text, suitable for further regular-expression-bashing.