Convert rtsp-stream into http stream

感情迁移 提交于 2019-12-19 10:32:01

问题


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



来源:https://stackoverflow.com/questions/41836137/convert-rtsp-stream-into-http-stream

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!