ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
25.14k stars 5.31k forks source link

HLS segment files in mp4 #4110

Open jj-matos opened 1 month ago

jj-matos commented 1 month ago

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 commented 1 month ago

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?

suzp1984 commented 1 month ago

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.

lukf12 commented 1 month ago

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