[MPlayer-dev-eng] [PATCH] vd_ffmpeg correct mpeg4 dimensions
John Schmiederer
jschmiederer at on2.com
Thu Aug 16 17:17:29 CEST 2007
There is a known problem that some mpeg4 videos are cropped to quarter
size; previous discussion below:
http://thread.gmane.org/gmane.comp.video.mplayer.devel/34858
This is due to a patch in init_vo to overwrite the dimensions read in,
using the bitmapinfoheader, which satisfies the case of h263 encoded
videos, but has cropping side effects for mpeg4 encoded video.
This patch limits the previous patch back to only affecting h263 encoded
videos.
Background on the previous problem:
The source video had dimensions of 240x180, however it was encoded with
the h263v1 codec, which supports five different dimensions (none of
which are 240x180). So when the picture header is decoded, it read in
the "source format" to be CIF, which has dimensions of 352x288,
resulting in display issues.
Original discussion and resulting patch from 2005-06-07:
http://thread.gmane.org/gmane.comp.video.mplayer.devel/26098
All of the videos referenced in the previous discussions, are
displayed/encoded correctly with this patch.
640x480 -> 320x240 cropping issue:
http://www1.mplayerhq.hu/MPlayer/samples/mov/P6040064a.MP4
h263 black border issue:
http://www1.mplayerhq.hu/MPlayer/samples/mov/h263-badsize/chris.mov
http://www1.mplayerhq.hu/MPlayer/samples/mov/h263-badsize/sarah.mov
-John
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ffmpeg_correct_dimensions.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070816/85e3e8b6/attachment.asc>
More information about the MPlayer-dev-eng
mailing list