fdsrc
Read data from a unix file descriptor.
To generate data, enter some data on the console followed by enter. The above mentioned pipeline should dump data packets to the console.
If the timeout property is set to a value bigger than 0, fdsrc will
generate an element message named GstFdSrcTimeout
if no data was received in the given timeout.
The message's structure contains one field:
-
guint64
timeout
: the timeout in microseconds that expired when waiting for data.
Example launch line
echo "Hello GStreamer" | gst-launch-1.0 -v fdsrc ! fakesink dump=true
A simple pipeline to read from the standard input and dump the data with a fakesink as hex ascii block.
Hierarchy
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstBaseSrc ╰──GstPushSrc ╰──fdsrc
Factory details
Authors: – Erik Walthinsen
Classification: – Source/File
Rank – none
Plugin – gstcoreelements
Package – GStreamer
Pad Templates
Properties
blocksize
“blocksize” guint
Size in bytes to read per buffer (-1 = default)
Flags : Read / Write
Default value : 4096
do-timestamp
“do-timestamp” gboolean
Apply current stream time to buffers
Flags : Read / Write
Default value : false
num-buffers
“num-buffers” gint
Number of buffers to output before sending EOS (-1 = unlimited)
Flags : Read / Write
Default value : -1
timeout
“timeout” guint64
Post a message after timeout microseconds
Flags : Read / Write
Default value : 0
typefind
“typefind” gboolean
Run typefind before negotiating (deprecated, non-functional)
Flags : Read / Write
Default value : false
The results of the search are