GNOME Bugzilla – Bug 680093
[0.11] playbin: aspect ratio gets messed up with ximagesink/xvimagesink
Last modified: 2012-07-24 10:09:11 UTC
gst-launch-1.0 uri=http://people.freedesktop.org/~tpm/samples/bbcnews2.m2t However, gst-launch-1.0 file:///home/tpm/bbcnews2.m2t ! tsdemux ! mpeg2dec ! videoscale ! videoconvert ! xvimagesink and variations work fine. Totem using playbin and cluttersink also works fine.
Even simpler way to make it fail : gst-launch-1.0 videotestsrc ! video/x-raw,width=360,height=270,pixel-aspect-ratio=4/3 ! xvimagesink force-aspect-ratio=True The resulting video should be displayed as widescreen (360x270 with a PAR of 4/3, results in a DAR of 16/9). Trying the same thing with 0.10 results in a properly displayed (widescreen) video.
commit 9572ec0481e57de688c9307ec3fad256fee110f9 Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Tue Jul 24 12:02:34 2012 +0200 xvimagesink: calculate target rectangle correctly Use the negotiated size and PAR to center the image into the target window. See https://bugzilla.gnome.org/show_bug.cgi?id=680093
Above fix fixes the playbin error. The reason why it doesn't happen with an equivalent manual launch line is because the error was only triggered when force-aspect-ratio is set to TRUE on the video sink, which playbin does.