Convert rtsp-stream into http stream

2020-07-23 05:02发布

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.

1条回答
再贱就再见
2楼-- · 2020-07-23 05:43

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

查看更多
登录 后发表回答