GNOME Bugzilla – Bug 300305
videobox in YUV adds green instead of black if right=(odd number)
Last modified: 2005-06-30 11:06:49 UTC
this launch line shows a green line being added: gst-launch -v videotestsrc ! video/x-raw-yuv,width=720,height=576,format=\(fourcc\)YUY2,framerate=25.0 ! videoscale ! video/x-raw-yuv,width=263,height=192 ! ffmpegcolorspace ! videobox right=-1 ! xvimagesink this one shows a black border being added gst-launch -v videotestsrc ! video/x-raw-yuv,width=720,height=576,format=\(fourcc\)YUY2,framerate=25.0 ! videoscale ! video/x-raw-yuv,width=263,height=192 ! ffmpegcolorspace ! videobox right=-2 ! xvimagesink
some more pipelines, this time for I420: gst-launch -v videotestsrc ! video/x-raw-yuv,format=\(fourcc\)I420,width=324,height=240,framerate=5.0 ! videobox right=-2 ! xvimagesink is ok gst-launch -v videotestsrc ! video/x-raw-yuv,format=\(fourcc\)I420,width=324,height=240,framerate=5.0 ! videobox right=-1 ! xvimagesink is ok too. gst-launch -v videotestsrc ! video/x-raw-yuv,format=\(fourcc\)I420,width=323,height=240,framerate=5.0 ! videobox right=-1 ! xvimagesink adds a green line. gst-launch -v videotestsrc ! video/x-raw-yuv,format=\(fourcc\)I420,width=323,height=240,framerate=5.0 ! videobox right=-2 ! xvimagesink is fine too. So problem is when both width and correction are odd.
Are you sure it's videobox? gst-launch -v videotestsrc ! video/x-raw-yuv,width=263,height=192,format=\(fourcc\)I420,framerate=25.0 ! xvimagesink or gst-launch -v videotestsrc ! video/x-raw-yuv,width=720,height=576,format=\(fourcc\)YUY2,framerate=\(double\)25.0 ! videoscale ! video/x-raw-yuv,width=263,height=192 ! xvimagesink by itself adds a one pixel green line to the right as well here. Cheers -Tim
Dave already fixed videotestsrc, so considering fixed.