Log in

View Full Version : Find video aspect ratio (not just mediainfo)


ScottJ
11th May 2014, 19:43
I'm looking for something that can analyze my Blu-ray rips and tell me the exact aspect ratio. Mediainfo always shows 16:9. I want to analyze the video, exclude the black bars, and tell me the size of the active picture area.

I prefer a Linux command-line tool. A GUI like Virtualdub is no good as I need to automate this for hundreds of files.

Purpose is to move my screen-masking system to the right place for each movie. Precision is important; I want to distinguish 2.35 from 2.40, for example.

Motenai Yoda
11th May 2014, 20:45
mplayer/mencoder/ffmpeg have a filter for this, cropdetect, perhaps starting with these scripts something can be done.

http://takla.wordpress.com/2012/06/01/ffmpeg-autocrop-bash-script-function/

SeeMoreDigital
11th May 2014, 22:14
Capture a still image and crop away the black mattes to reveal the number of remaining image pixels ;)

ScottJ
11th May 2014, 23:46
mplayer/mencoder/ffmpeg have a filter for this, cropdetect, perhaps starting with these scripts something can be done.

http://takla.wordpress.com/2012/06/01/ffmpeg-autocrop-bash-script-function/

Excellent! This was a big help.