From: Antonio Ospite Date: Tue, 5 Mar 2013 14:26:15 +0000 (+0100) Subject: Add pixel-aspect-ratio=1/1 to force the rescaling X-Git-Url: https://git.ao2.it/experiments/gstreamer.git/commitdiff_plain/203a0636e9c0690a9e1f4edc6d1b06d9971c03b3 Add pixel-aspect-ratio=1/1 to force the rescaling --- diff --git a/gst-custom-player.py b/gst-custom-player.py index eef3f6b..cbeace2 100755 --- a/gst-custom-player.py +++ b/gst-custom-player.py @@ -45,7 +45,7 @@ class CustomVideoBin(gst.Bin): rescale = gst.element_factory_make("videoscale", "rescale") self.add(rescale) - caps = gst.Caps("video/x-raw-yuv,format=(fourcc)AYUV,width=%d,height=%d" % (WIDTH, HEIGHT)) + caps = gst.Caps("video/x-raw-yuv,format=(fourcc)AYUV,width=%d,height=%d,pixel-aspect-ratio=1/1" % (WIDTH, HEIGHT)) capsfilter = gst.element_factory_make("capsfilter", "filter") capsfilter.set_property("caps", caps) self.add(capsfilter)