Getting Quicktime movie size with Ruby

I am trying to automatically insert the object properties in order to play some embedded videos in my webpage. The problem is that I need to specify the height and width of the video. I can do it by hand but it is a bit of pain.

Is it possible to get the video attributes using Ruby?

I am trying to automatically insert the object properties in order to play some embedded videos in my webpage. The problem is that I need to specify the height and width of the video. I can do it by hand but it is a bit of pain.

Is it possible to get the video attributes using Ruby?

RVideo might do the trick...

http://code.google.com/p/rvideo/ http://rvideo.rubyforge.org/

If you don't want to muck with a ruby wrapper, and aren't afraid to simply run console command, simply running mencoder or some such tool on it then parsing the text output can get you the information you need.