How to obtain the dimensions of a video file?

B

Bira

Hello,

I've posted a few messages on this list before, but this is my first
real question :).

I've written a script, using Rake, to automate the conversion of a
bunch of AVI video files to a DVD image I can burn and watch on my TV.
It's working OK so far, and I promise I'll post the code as soon as I
get home from work :).

The problem I have is that this rakefile still requires some manual
tweaking before every execution, because it makes some calculations
based on the original video's resolution (i.e., 640x480, 704x396,
etc.), and must also use slightly different parameters if the original
video is widescreen.

So, is there a Ruby library or some Linux utility I can use from Ruby
that can find out the domensions of a video file? That would allow me
to make the process completely automated.
 
C

Carl Woodward

Hi Bira,

Look at rmovie. It uses ffmpeg and can do that for you.

Cheers,
Carl.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,215
Messages
2,571,113
Members
47,708
Latest member
SharonMaes

Latest Threads

Top