2013年7月27日 星期六

Gstreamer gst-launch multithreaded example (with tee element)

Pipeline example:



Command example:




Command example:
gst-launch videotestsrc ! ffmpegcolorspace ! tee name=t ! queue ! autovideosink t. ! queue ! autovideosink
Parse the command:
1) First part:
videotestsrc ! ffmpegcolorspace ! tee name=t !
2) Splited to:
queue ! autovideosink and t. ! queue ! autovideosink

tee name=t which mean is to create a new source pad which name is 't'.

Another example:
gst-launch-0.10 filesrc location=sample.mp4 ! qtdemux name=demuxer demuxer. ! queue ! faad ! audioconvert ! audioresample ! autoaudiosink demuxer. ! queue ! ffdec_h264 ! ffmpegcolorspace ! autovideosink





Reference:
http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+10%3A+GStreamer+tools
http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+7%3A+Multithreading+and+Pad+Availability

沒有留言:

張貼留言