mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
alpha: Fix sample pipeline
Use the zorder pad property to make sure the semitransparent video is on top of the background. https://bugzilla.gnome.org/show_bug.cgi?id=762809
This commit is contained in:
parent
a4d64b5caa
commit
d089cd5a12
1 changed files with 6 additions and 5 deletions
|
@ -30,12 +30,13 @@
|
||||||
*
|
*
|
||||||
* Sample pipeline:
|
* Sample pipeline:
|
||||||
* |[
|
* |[
|
||||||
* gst-launch-1.0 videotestsrc pattern=smpte75 ! alpha method=green ! \
|
* gst-launch-1.0 videotestsrc pattern=snow ! mixer.sink_0 \
|
||||||
* videomixer name=mixer ! videoconvert ! autovideosink \
|
* videotestsrc pattern=smpte75 ! alpha method=green ! mixer.sink_1 \
|
||||||
* videotestsrc pattern=snow ! mixer.
|
* videomixer name=mixer sink_0::zorder=0 sink_1::zorder=1 ! \
|
||||||
|
* videoconvert ! autovideosink
|
||||||
* ]| This pipeline adds a alpha channel to the SMPTE color bars
|
* ]| This pipeline adds a alpha channel to the SMPTE color bars
|
||||||
* with green as the transparent color and mixes the output with
|
* with green as the transparent color and overlays the output on
|
||||||
* a snow video stream.
|
* top of a snow video stream.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue