GNOME Bugzilla – Bug 506659
[textoverlay] rendering error when using non-standard widths
Last modified: 2008-06-02 18:40:58 UTC
The gst_text_overlay_blit_yuv420 function incorrectly draws. To reproduce: gst-launch videotestsrc ! videoscale ! video/x-raw-yuv,width=796 ! clockoverlay ! ffmpegcolorspace ! autovideosink with a width of 800, the problem goes away Also commenting out line 956 in gsttextoverlay.c makes the problem go away for all widths, I am not sure what this line is supposed to do.
Created attachment 101934 [details] [review] this patch is only a quick workaround
This seems to fix it for me: 2008-06-02 Tim-Philipp Müller <tim.muller at collabora co uk> * ext/pango/Makefile.am: * ext/pango/gsttextoverlay.c: (gst_text_overlay_shade_y), (gst_text_overlay_blit_yuv420), (gst_text_overlay_push_frame): Use gstvideo functions to calculate strides and plane offsets. Fixes rendering issue ('ghost' images of the text on the chroma planes) with widths or heights that are not multiples of 8 (#506659 and probably also #485729). * tests/icles/test-textoverlay.c: (show_text), (test_textoverlay), (main): Test with odd height/width too. Please re-open if you still have issues with that fix applied.
*** Bug 485729 has been marked as a duplicate of this bug. ***