| Top |
| GstCaps * | caps | Read / Write |
| gint | index | Read / Write |
| gchar * | location | Read / Write |
| gboolean | loop | Read / Write |
| gint | start-index | Read / Write |
| gint | stop-index | Read / Write |
GObject
╰── GInitiallyUnowned
╰── GstObject
╰── GstElement
╰── GstBaseSrc
╰── GstPushSrc
╰── GstMultiFileSrc
Reads buffers from sequentially named files. If used together with an image decoder, one needs to use the “caps” property or a capsfilter to force to caps containing a framerate. Otherwise image decoders send EOS after the first picture. We also need a videorate element to set timestamps on all buffers after the first one in accordance with the framerate.
File names are created by replacing "%d" with the index using printf().
1 2 3 |
gst-launch-1.0 multifilesrc location="img.%04d.png" index=0 caps="image/png,framerate=\(fraction\)12/1" ! \ pngdec ! videoconvert ! videorate ! theoraenc ! oggmux ! \ filesink location="images.ogg" |
“index” property “index” gint
Index to use with location property to create file names. The index is incremented by one for each buffer read.
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“location” property “location” gchar *
Pattern to create file names of input files. File names are created by calling sprintf() with the pattern and the current index.
Flags: Read / Write
Default value: "%05d"
“loop” property “loop” gboolean
Whether to repeat from the beginning when all files have been read.
Flags: Read / Write
Default value: FALSE
“start-index” property “start-index” gint
Start value of index. The initial value of index can be set either by setting index or start-index. When the end of the loop is reached, the index will be set to the value start-index.
Flags: Read / Write
Allowed values: >= 0
Default value: 0