Zum Inhalt springen

Gstreamer One Liners: Unterschied zwischen den Versionen

Amir (Diskussion | Beiträge)
Amir (Diskussion | Beiträge)
Zeile 100: Zeile 100:
\ # Play video \
\ # Play video \
xvimagesink
xvimagesink
</pre>
== Greenbox ==
=== Realtime alpha blending with colorkey ===
<pre>
gst-launch-0.10 -v \
\ # V4l2: Open \
v4l2src device=/dev/video0 ! 'video/x-raw-yuv, format=(fourcc)YUY2, width=(int)640, height=(int)480, framerate=(fraction)15/2' ! \
\ # v4l2: Apply alpha \
ffmpegcolorspace ! alpha method=custom target-r=0 target-g=255 target-b=0 angle=40 ! \
\ # v4l2: mix \
videomixer name=mix ! \
\ # Mixer: display \
ffmpegcolorspace ! xvimagesink \
\ # Background: open \
filesrc location=bg.avi ! decodebin ! \
\ # Background: mix \
ffmpegcolorspace ! mix.
</pre>
</pre>


[[Kategorie:CLI]]
[[Kategorie:CLI]]