srs icon indicating copy to clipboard operation
srs copied to clipboard

HLS segment files in mp4

Open jj-matos opened this issue 1 year ago • 3 comments

In the documentation and configuration of HLS, it only seems possible to have segments in ts format. However, for example, Electra Player for Unreal, only works with mp4 segments. Is it possible for SRS to generate mp4 segments instead of ts segments for HLS streaming? Thank you for your clarification.

jj-matos avatar Jul 08 '24 13:07 jj-matos

I managed to change the segments names to end in mp4 in the conf file, but although the segments end up named .mp4, then doesn't work anywhere. Is there a way to make srs produce functional mp4 segments, in hls?

jj-matos avatar Jul 09 '24 15:07 jj-matos

SRS supported dash stream, which is fragmented mp4 stream. Is the Dash fulfill your requirement? About let HLS support fragmented mp4, SRS don't support it yet, but I think it should be not complicated to implement this feature, the source code can be reused base on the Dash.

suzp1984 avatar Jul 10 '24 05:07 suzp1984

I would also be interested in hls with mp4 instead of ts segments. Is it planned from someone to implement this as an option ? Best Lukas

lukf12 avatar Jul 19 '24 08:07 lukf12

SRS 7 supports HLS with fMP4.

winlinvip avatar Oct 26 '25 21:10 winlinvip