Convert rtsp-stream into http stream

2020-07-23 05:52发布

问题:

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

These are my stream's properties:

How to do it with vlc or ffmpeg?

I tried a lot. Way too much to list.

回答1:

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