Convert rtsp video stream to http stream

∥☆過路亽.° 提交于 2019-12-20 09:06:21

问题


I have the rtsp URL for a live video stream which I would like to access as an HTTP stream. Can someone please tell me if there are any components out there which I can put on my server to do this?

I do not have any idea how I can implement this. Would appreciate a heads up.

Thanks.


回答1:


I would say that your best bet is to use either FFmpeg or VLC. Both are open source software and are widely used among hobbyists and also as a part of multiple different services. Also both can take in RTSP streams and create an HTTP stream (with live transcoding if needed).

FFmpeg's RTSP support has improved as of lately, but IMO VLC is way better at the moment (May 2010). Check the documentation on the web sites for experimenting with the command-line parameters for finding the required ones to match your needs. FFmpeg and VLC are very flexible and you can do a whole lot of stuff with them in addition to proxying from RTSP stream to HTTP.

FFmpeg: http://www.ffmpeg.org/

VLC: http://www.videolan.org/vlc/




回答2:


the command mentioned below takes in a rtsp stream and throws out a httpstream having a flv...

vlc.exe -I http -vv camURL :sout=#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}:http{mux=ffmpeg{mux=flv},dst=addr:availablePort}


来源:https://stackoverflow.com/questions/2370742/convert-rtsp-video-stream-to-http-stream

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