GStreamer Core Plugins 0.10 Plugins Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
"has-chain" gboolean : Read / Write / Construct "has-sink-loop" gboolean : Read / Write / Construct "last-message" gchar* : Read "num-src-pads" gint : Read "silent" gboolean : Read / Write / Construct "pull-mode" GstTeePullMode : Read / Write / Construct "alloc-pad" GstPad* : Read / Write
Split data to multiple pads. Branching the data flow is useful when e.g. capturing a video where the video is shown on the screen and also encoded and written to a file. Another example is playing music and hooking up a visualisation module.
One needs to use separate queue elements (or a multiqueue) in each branch to provide separate threads for each branch. Otherwise a blocked dataflow in one branch would stall the other branches.
1 |
gst-launch filesrc location=song.ogg ! decodebin2 ! tee name=t ! queue ! autoaudiosink t. ! queue ! audioconvert ! goom ! ffmpegcolorspace ! autovideosink |
plugin |
coreelements |
author |
Erik Walthinsen <omega@cse.ogi.edu>, Wim Taymans <wim@fluendo.com> |
class |
Generic |
"has-chain"
property"has-chain" gboolean : Read / Write / Construct
If the element can operate in push mode.
Default value: TRUE
"has-sink-loop"
property"has-sink-loop" gboolean : Read / Write / Construct
If the element should spawn a thread (unimplemented and deprecated).
Default value: FALSE
"last-message"
property"last-message" gchar* : Read
The message describing current status.
Default value: NULL
"num-src-pads"
property"num-src-pads" gint : Read
The number of source pads.
Allowed values: >= 0
Default value: 0
"silent"
property"silent" gboolean : Read / Write / Construct
Don't produce last_message events.
Default value: TRUE
"pull-mode"
property"pull-mode" GstTeePullMode : Read / Write / Construct
Behavior of tee in pull mode.
Default value: Never activate in pull mode