You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to have only one segment for a file for HLS? Or specify size in bytes for each segment just like duration?
For context, we have subtitle files those are less than 1MB for a 2 hour video. If we segment them into streams with default duration which is 10s (vod_segment_duration), clients do hundreds of requests in total to download all segments. Segmentation into streams works well for video files but small files cause hundreads of unnecessary requests.
If having only one segment or specifying segment size in bytes are not options, what can we do to have less segments? I think increasing vod_segment_duration might work but sounds a little bit tricky.
Thanks,
Murat.
The text was updated successfully, but these errors were encountered:
Yeah, this is correct, it makes sense to use larger segments for subtitles. I thought about supporting it long time ago, but never got to it...
If it really bothers you, you can probably work around it by using 2 locations - one location will have a vod_segment_duration of 10s (or whatever you want for video/audio), the other location will have vod_segment_duration of 60s (for example). You can use a regex on the subtitle location, so that it will capture only requests for subtitle index.m3u8/seg.vtt.
Hello.
Is it possible to have only one segment for a file for HLS? Or specify size in bytes for each segment just like duration?
For context, we have subtitle files those are less than 1MB for a 2 hour video. If we segment them into streams with default duration which is
10s
(vod_segment_duration
), clients do hundreds of requests in total to download all segments. Segmentation into streams works well for video files but small files cause hundreads of unnecessary requests.If having only one segment or specifying segment size in bytes are not options, what can we do to have less segments? I think increasing vod_segment_duration might work but sounds a little bit tricky.
Thanks,
Murat.
The text was updated successfully, but these errors were encountered: