将rtsp-stream转换为http流 [英] Convert rtsp-stream into http stream
本文介绍了将rtsp-stream转换为http流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
经常讨论,但到目前为止,从未在使用当前版本的vlc或ffmpeg的Windows上运行.
Often discussed but so far never working on windows with the current versions of vlc or ffmpeg.
这些是我的信息流的属性:
These are my stream's properties:
如何使用vlc或ffmpeg做到这一点?
How to do it with vlc or ffmpeg?
我尝试了很多.太多了.
I tried a lot. Way too much to list.
推荐答案
我使用它使用ffmpeg将远程RTSP源转换为本地HLS流,并且工作正常:
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"
我还使用-t
和-stimeout
选项来控制该过程的超时.
Also I use -t
and -stimeout
options to control the timeout of that proccess.
在文档中有关HLS ffmpeg的更多信息: https://ffmpeg.org/ffmpeg- format.html#hls-1
More info about HLS ffmpeg in docs: https://ffmpeg.org/ffmpeg-formats.html#hls-1
这篇关于将rtsp-stream转换为http流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文