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