shapewipe: Force the input to AYUV to prevent negotiation failures in videomixer
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 21 Sep 2010 17:13:07 +0000 (19:13 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 21 Sep 2010 17:15:22 +0000 (19:15 +0200)
The second videotestsrc chain might produce YUY2 because everything is
accepted downstream before the first shapewipe chain gets negotiated.

tests/examples/shapewipe/shapewipe-example.c

index 14df6dd..94f7175 100644 (file)
@@ -79,7 +79,7 @@ main (gint argc, gchar ** argv)
 
   pipeline_string =
       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]);
 
   pipeline = gst_parse_launch (pipeline_string, NULL);