Answer the question
In order to leave comments, you need to log in
Relay from HLS to RTSP?
The source file is an m3u8 file that contains links to ts-fragments of the broadcast and is dragged from one popular resource (without downloading it from there).
It is necessary to transcode to rtsp and spit out a link for the client. How to do it? ffmpeg reads packets endlessly and even flush_packets doesn't stop it.
ffmpeg -re -i https://server/playlist.m3u8?extra=6O3qK_54vxgC -f rtsp -fflags flush_packets -max_delay 2 -muxdelay 0.1 -hls_flags delete_segments rtsp://localhost:9999/stream
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question