GNOME Bugzilla – Bug 678124
multifilesink: add support for time based file switching
Last modified: 2015-05-29 16:29:16 UTC
I found on different forums that people trying to realize something like a time based file change.
Could be useful that multifilesink support a time base file change (for example a new file every 20 minutes or 1 hour) other than max-file-size actually implemented.
It could be also useful in this case to have a timestamp based index for generated file.
There's a max-duration mode now and a max-file-duration property for time-based switching:
next-file : When to start a new file
flags: readable, writable
Enum "GstMultiFileSinkNext" Default: 0, "buffer"
(0): buffer - New file for each buffer
(1): discont - New file after each discontinuity
(2): key-frame - New file at each key frame (Useful for MPEG-TS segmenting)
(3): key-unit-event - New file after a force key unit event
(4): max-size - New file when the configured maximum file size would be exceeded with the next buffer or buffer list
(5): max-duration - New file when the configured maximum file duration would be exceeded with the next buffer or buffer list
max-file-size : Maximum file size before starting a new file in max-size mode
Unsigned Integer64. Range: 0 - 18446744073709551615 Default: 2147483648
max-file-duration : Maximum file duration before starting a new file in max-size mode
Unsigned Integer64. Range: 0 - 18446744073709551615 Default: 18446744073709551615
aggregate-gops : Whether to aggregate GOPs and process them as a whole without splitting
Boolean. Default: false