I’m using hlssink2
in GStreamer (gst-launch-1.0
and in code) to generate HLS segments, and I need the .ts
segment filenames to start from a specific index — for example:
segment_1200.ts, segment_1201.ts, ...
This is required because the HLS playlist is being fed into Jellyfin (I’m developing a ffmpeg wrapper script) that expects segment numbering to match the media timeline, when starting from a seek offset (e.g., 1 hour and 3 seconds HLS segment duration→ segment 3600 / 3 = 1200).
I’ve tried formatting the location
string like segment_%d.ts
, but I couldn’t find any parameter like start-index
in hlssink2
.
Is there a supported way to:
- Offset the segment numbering?
- Or modify the numbering logic in
hlssink2
?
If not, are there any recommended workarounds?
Thanks in advance!