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/

On Apr 29, 8:18 am, Fernando P. [email protected]
wrote:

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?

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.

Thanks for your advice. Finally I think it will be easier to create a
Video model, and have a field where I can type in the video resolution,
I wont’ be having millions of videos anyway.