GNOME Bugzilla – Bug 681308
videotestsrc: different image with different videoformat
Last modified: 2012-10-17 12:01:10 UTC
It is easy to reproduce: with this pipe i get one image: gst-launch-1.0 -v videotestsrc ! 'video/x-raw, format=I420' ! videoconvert ! autovideosink with this two i get other: gst-launch-1.0 -v videotestsrc ! autovideosink gst-launch-1.0 -v videotestsrc ! 'video/x-raw, format=RGB' ! tee name=t ! videoconvert ! 'video/x-raw, format=I420' ! videoconvert ! autovideosink .t ! queue ! videoconvert ! autovideosink the colors on bottom part of image are different.
Your last pipeline is not correct, has a syntax error. Should be > gst-launch-1.0 -v videotestsrc ! 'video/x-raw, format=RGB' ! tee name=t ! queue ! videoconvert ! 'video/x-raw, format=I420' ! videoconvert ! autovideosink t. ! queue ! videoconvert ! autovideosink I can't reproduce the problem here though, could you attach a screenshot maybe?
Created attachment 220519 [details] screenshot
Which videosink is used here? Could you try with a different one? Does it also happen when encoding to a JPEG file for example?
I can reproduce it with autovideosink, ximagesink and "jpegenc ! filesinc". The left one is rgb and right is i420
This is with up-to-date git master of -base?
yes. latest update was yesterday. today i was not able to do an update. are there any relevant changes? I just reproduce it it with gst-0.10 on my stable machine with this pipes: gst-launch-0.10 videotestsrc num-buffers=1 ! video/x-raw-rgb ! ffmpegcolorspace ! video/x-raw-yuv ! jpegenc ! filesink location=1.jpeg gst-launch-0.10 videotestsrc num-buffers=1 ! video/x-raw-yuv ! jpegenc ! filesink location=2.jpeg
I can reproduce this with 1.0.x: $ gst-launch-1.0 videotestsrc num-buffers=1 ! video/x-raw,format=RGB ! videoconvert ! video/x-raw,format=I420 ! jpegenc ! filesink location=1.jpeg $ gst-launch-1.0 videotestsrc num-buffers=1 ! video/x-raw,format=I420 ! jpegenc ! filesink location=2.jpeg $ eog 1.jpeg 2.jpeg & then press right/left arrow to switch between images. The blue squares (bottom left and third from the left at the bottom) have different shades of blue. Don't know which element is at fault here.
This is not a bug. The colors are supposed to be different for each colorspace (yes I spend a day figuring this out).