From 203a0636e9c0690a9e1f4edc6d1b06d9971c03b3 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Tue, 5 Mar 2013 15:26:15 +0100 Subject: [PATCH] Add pixel-aspect-ratio=1/1 to force the rescaling --- gst-custom-player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.1.4