videmixer: add a example showing how to use the child properties

Show how to position and set the alpho of the videos on gst-launch.
This commit is contained in:
Stefan Kost 2010-08-16 17:23:58 +03:00
parent f83f7fafad
commit 1c47115b8e

View file

@ -29,7 +29,6 @@
* supported. The src pad will have the same colorspace as the sinks. * supported. The src pad will have the same colorspace as the sinks.
* No colorspace conversion is done. * No colorspace conversion is done.
* *
*
* Individual parameters for each input stream can be configured on the * Individual parameters for each input stream can be configured on the
* #GstVideoMixerPad. * #GstVideoMixerPad.
* *
@ -65,6 +64,9 @@
* videotestsrc ! \ * videotestsrc ! \
* video/x-raw-yuv,format=\(fourcc\)I420, framerate=\(fraction\)5/1, width=320, height=240 ! mix. * video/x-raw-yuv,format=\(fourcc\)I420, framerate=\(fraction\)5/1, width=320, height=240 ! mix.
* ]| A pipeline to test I420 * ]| A pipeline to test I420
* |[
* gst-launch videotestsrc pattern="snow" ! video/x-raw-yuv, framerate=\(fraction\)10/1, width=200, height=150 ! videomixer name=mix sink_1::xpos=20 sink_1::ypos=20 sink_1::alpha=0.5 ! ffmpegcolorspace ! xvimagesink videotestsrc ! video/x-raw-yuv, framerate=\(fraction\)10/1, width=640, height=360 ! mix.
* ]| Set position and alpha on the mixer using #GstVideoMixerPad properties.
* </refsect2> * </refsect2>
*/ */