GNOME Bugzilla – Bug 711003
videoscale: borders are filled with green when using NV12 pixelformat
Last modified: 2013-10-30 17:39:36 UTC
Hi, when using videoscale with add-borders=1 and the NV12 pixelformat the borders result filled in green. This is the test pipeline which shows the problem: gst-launch-1.0 videotestsrc ! video/x-raw,format=NV12,width=640,height=480 ! videoscale add-borders=1 ! video/x-raw,width=800,height=480,pixel-aspect-ratio=1/1 ! videoconvert ! autovideosink This is because the borders are not filled in black explicitly when NV12 is used, the attached patch fixes the issue, but maybe there is a better way to do it. BTW, I came across a similar issue with the rotate plugin: https://bugzilla.gnome.org/show_bug.cgi?id=710392 I can understand that the operation "filling a frame buffer in black" is not that simple as it appears when taking into account different pixel formats, so maybe a "library" way to fill frame buffers with a given color could be added to GStreamer. Just an idea, I don't have development time to spend on such a project right now. Thanks, Antonio
Created attachment 258290 [details] [review] videoscale: fix adding borders when NV12 is used
commit fdfc6baf14766e14918fdbc39bc18366e7f89c59 Author: Antonio Ospite <ospite@studenti.unina.it> Date: Mon Oct 28 12:36:04 2013 +0100 videoscale: fix adding borders when NV12 is used When the frame buffer is NV12 the borders are not added at all, fix that and fill them to black. https://bugzilla.gnome.org/show_bug.cgi?id=711003