-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for HLS? #37
Comments
Hi, live streaming HLS would involve muxing into TS (a container format which is completely missing from the codebase), also it would be necessary to dynamically generate and refresh .m3u8 file by the server (as the fragment-files will be generated on the fly). So this would be a pretty large effort. On the bright side, really low latencies are achievable with HLS. |
isn't HLS high latency only(>a few seconds)? and RTMP is low latency |
Hi, my requirements for low latency is that a frame should be playable when received (in a good case - with slicing - decoding can even start before the full frame has been downloaded). I have not tested how well today's browsers handle it, but I can't think of a good reason why they wouldn't. |
heard HLS has at least a few seconds of latency, because of generating the fragment and the m3u8. if it streams as a large MPEG-TS container, and it can be seen as just an HTTP stream. and shouldn't be called HLS. |
The m3u8 can be generated in advance, the files don't have to be there immediately, I don't know of a size limit that an .ts can be. You can call it HLS in a sense that any HLS-capable player should be able to play it. |
but if use m3u8 and fragment then there would be massive latency. .ts has no size limit I guess. since the TV is using MPEG-TS |
You can generate m3u8 without any knowledge of the stream, it can be static and just point to the stream's name. On the URL (pointed by the m3u8) the server can serve .ts as an endless file. This way no additional latency is introduced expect a relatively small buffer on the server side (let's say 24k). |
like someone read on the issues tread, i had success streaming pre-recorded video clips using stream-m (in webm and h264-flv) but still working on feeding the server with hardware h264/aac encoded live video.
Today i tested the idea to use HLS instead of rtpm, and seems it works.
This ffmpeg command:
ffmpeg -y -re -f mpegts -i /dev/video0 -c:v copy -c:a copy -f hls test.m3u8
generates a bunch of test#.ts files and a plain text file (named test.m3u8) that summarize the ts franctions and the order to playback.
VLC plays ok all the clips and also the m3u8 ... so the question is ... Could be an option to add HLS to stream-m?
cheers.
Federico
The text was updated successfully, but these errors were encountered: