shapewipe: Force the input to AYUV to prevent negotiation failures in videomixer

The second videotestsrc chain might produce YUY2 because everything is
accepted downstream before the first shapewipe chain gets negotiated.
This commit is contained in:
Sebastian Dröge 2010-09-21 19:13:07 +02:00
parent a1890f8d44
commit e20663bf89

View file

@ -79,7 +79,7 @@ main (gint argc, gchar ** argv)
pipeline_string = pipeline_string =
g_strdup_printf g_strdup_printf
("videotestsrc ! video/x-raw-yuv,width=640,height=480 ! shapewipe name=shape border=0.05 ! videomixer name=mixer ! ffmpegcolorspace ! autovideosink filesrc location=%s ! typefind ! decodebin2 ! ffmpegcolorspace ! videoscale ! queue ! shape.mask_sink videotestsrc pattern=snow ! video/x-raw-yuv,width=640,height=480 ! queue ! mixer.", ("videotestsrc ! video/x-raw-yuv,format=(fourcc)AYUV,width=640,height=480 ! shapewipe name=shape border=0.05 ! videomixer name=mixer ! ffmpegcolorspace ! autovideosink filesrc location=%s ! typefind ! decodebin2 ! ffmpegcolorspace ! videoscale ! queue ! shape.mask_sink videotestsrc pattern=snow ! video/x-raw-yuv,format=(fourcc)AYUV,width=640,height=480 ! queue ! mixer.",
argv[1]); argv[1]);
pipeline = gst_parse_launch (pipeline_string, NULL); pipeline = gst_parse_launch (pipeline_string, NULL);