After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 678124 - multifilesink: add support for time based file switching
multifilesink: add support for time based file switching
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other All
: Normal enhancement
: 1.5.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-06-14 19:21 UTC by Stefano
Modified: 2015-05-29 16:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stefano 2012-06-14 19:21:37 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.

Regards,
Blue
Comment 1 Tim-Philipp Müller 2015-05-29 16:29:16 UTC
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