Search code examples
windowsffmpegstreamingvlcrtsp

Convert rtsp-stream into http stream


Often discussed but so far never working on windows with the current versions of vlc or ffmpeg.

These are my stream's properties:

enter image description here

How to do it with vlc or ffmpeg?

I tried a lot. Way too much to list.


Solution

  • I use this to convert a remote RTSP source to a local HLS streaming with ffmpeg and it works ok:

    ffmpeg -i "rtsp://yourRtspStreamSource" -hls_time 3 -hls_wrap 10 "yourOutputDir/streaming.m3u8"
    

    Also I use -t and -stimeout options to control the timeout of that proccess.

    More info about HLS ffmpeg in docs: https://ffmpeg.org/ffmpeg-formats.html#hls-1