[MPlayer-dev-eng] Aspect Ratio Detection

Alexander Roalter alex at roalter.it
Mon Jun 18 12:01:28 CEST 2007


As suggested by Carl Eugen Hoyos, I'm posting it here....

As I'm using the english language version, there's a patch also applied
to help/help_mp-en.h, which should instead go to all the different
languages, but I have not yet done this... (i.e. it won't work with 
other languages ATM)

horus:/usr/src/mplayer/help # svn diff help_mp-en.h

And of course the fleshy part in libmpcodecs:

horus:/usr/src/mplayer/libmpcodecs # svn diff vf_cropdetect.c
The Output of -vf cropdetect then looks like this:

[CROP] Crop area: X: 0..719  Y: 13..562 R:1.86:1 (-vf crop=720:544:0:16).

The the point 1.86:1 is especially interesting for me. For those only
using the crop hinting for doing cropping this is easily another
information (which btw. could also be used on setting the newly created 
movie's aspect ratio..., and I can use the info for my DVD database with 
exact aspect ratios instead of the often wrong specified 1.33, 2.35 or 
1.85 on the box cover (see 
http://www.roalter.it/dvd/single.php?who=0&id=1 as an example)

-- 
cheers,
Alex

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: d2
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070618/9c5fc3b0/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: d1
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070618/9c5fc3b0/attachment.txt>


More information about the MPlayer-dev-eng mailing list