| Top |
| gchar * | location | Read / Write |
| gint | index | Read / Write |
| GstMultiFileSinkNext | next-file | Read / Write |
| gboolean | post-messages | Read / Write |
| guint | max-files | Read / Write |
| guint64 | max-file-size | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GstObject ╰── GstElement ╰── GstBaseSink ╰── GstMultiFileSink
Write incoming data to a series of sequentially-named files.
The filename property should contain a string with a %d placeholder that will be substituted with the index for each filename.
If the “post-messages” property is TRUE, it sends an application message named
"GstMultiFileSink" after writing each
buffer.
The message's structure contains these fields:
gchar *
"filename":
the filename where the buffer was written.
gint
"index":
the index of the buffer.
GstClockTime
"timestamp":
the timestamp of the buffer.
GstClockTime
"stream-time":
the stream time of the buffer.
GstClockTime
"running-time":
the running_time of the buffer.
GstClockTime
"duration":
the duration of the buffer.
guint64
"offset":
the offset of the buffer that triggered the message.
guint64
"offset-end":
the offset-end of the buffer that triggered the message.
1 2 |
gst-launch-1.0 audiotestsrc ! multifilesink gst-launch-1.0 videotestsrc ! multifilesink post-messages=true filename="frame%d" |
File splitting modes.
“location” property“location” gchar *
Location of the file to write.
Flags: Read / Write
Default value: NULL
“index” property“index” gint
Index to use with location property to create file names. The index is incremented by one for each buffer written.
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“next-file” property“next-file” GstMultiFileSinkNext
When to start a new file.
Flags: Read / Write
Default value: New file for each buffer
“post-messages” property“post-messages” gboolean
Post a message on the GstBus for each file.
Flags: Read / Write
Default value: FALSE
“max-files” property“max-files” guint
Maximum number of files to keep on disk. Once the maximum is reached, old files start to be deleted to make room for new ones.
Flags: Read / Write
Default value: 0