GNOME Bugzilla – Bug 499008
mpeg2enc ignores the incoming stream aspect property
Last modified: 2008-02-03 18:23:02 UTC
Please describe the problem: Using gstreamer CVS version 0.10.5.1 when encoding a 16:9 video stream with mpeg2enc it will shrink it to 4:3 aspect ratio. The 'aspect' property of mpeg2enc was set to "0" default value but it was not able to deduce the aspect ratio from the input. Adding "aspect=3" to the pipeline helps solving the problem, although it is desirable that the encoder recognizes the aspect of the incoming stream automatically. Steps to reproduce: 1. gst-launch -v filesrc location=file.ogg ! oggparse ! oggdemux ! theoradec ! mpeg2enc ! queue ! mpeg2dec ! ffmpegcolorspace ! ximagesink 2. 3. Actual results: You can see the video is drawn but with a different aspect ratio Expected results: Playback the video with the original aspect ratio Does this happen every time? Yes Other information:
Fixed in CVS: 2008-02-03 Jan Schmidt <jan.schmidt@sun.com> * ext/mpeg2enc/gstmpeg2encpicturereader.cc: Use the incoming pixel-aspect-ratio if provided to infer a default aspect ratio, which can be overridden using the 'aspect' property. Fixes: #499008