将rtsp-stream转换为http流

时间:2017-01-24 18:18:13

标签: windows ffmpeg streaming vlc rtsp

经常讨论,但到目前为止从未使用当前版本的vlc或ffmpeg在Windows上工作。

这些是我的流媒体资源:

enter image description here

如何使用vlc或ffmpeg?

我尝试了很多。列出的方式太多了。

1 个答案:

答案 0 :(得分:3)

我使用它将远程RTSP源转换为使用ffmpeg的本地HLS流,它可以正常工作:

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

我还使用-t-stimeout选项来控制该进程的超时。

有关HLS ffmpeg的更多信息,请参阅文档:https://ffmpeg.org/ffmpeg-formats.html#hls-1

相关问题