PDA

View Full Version : Getting Display Aspect Ratio


frameloose
14th January 2009, 22:14
I have a script that will use ffmpeg to encode movies into one and same format and same size (height/width wise). Works great until i get to DVDs/MPEG2, ffmpeg -i file.mpg will give me the aspect ratio 720x576 even if the video is a widescreen, because thats the "frame size", but not the display aspect ratio, so when i encode they will come out aprox. 4:3 instead. So the question is: How do i from the command line (Linux/Debian) get the Display Aspect Ratio?

--
Henrik

Selur
16th January 2009, 18:17
mencoder or mediainfo work both for me.

frameloose
16th January 2009, 19:03
would you look at that, mediainfo present display aspect ratio <3

thank you so much, i have googled my ass off (and yes, im not the best googler :P) trying to find the solution. Now i have a nice evening infront of me modifying the script. Thanks again.