Search code examples
gstreamer

Is it possible to set initial index of splitmuxsink?


I have setup gstreamer with few pipes (with help of RidgRun GSTd & gst-interpipe). First pipe realize snapshots with multifilesink with max-files and could setup starting index=start_index. Second pipe realize record with splitmuxsink and max-files & max-size-time

GStreamer 1.10.4

gstd v.0.7.0

multifilesink name=snapshot_sink index=${start_index} max-files=20 location=pic_%04d.jpg

splitmuxsink name=rec_file_sink location=rec_%03d.mpg max-size-time=60000000000 send-keyframe-requests=true max-files=5 muxer=mpegtsmux

The problem is that if I restart gstreamer (respectively gstd) the indexes are reset. If I start recording in second pipe index begins from 000. I could setup starting index in multifilesink pipe I couldn't find same for splitmuxsink. Any ideas ?


Solution

  • How about the start-index property

    https://gstreamer.freedesktop.org/documentation/multifile/splitmuxsink.html?gi-language=c#splitmuxsink:start-index