Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert rtsp video stream to http stream

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.

like image 709
lostInTransit Avatar asked Mar 03 '10 11:03

lostInTransit


People also ask

How do I stream RTSP over HTTP?

Enable the "Tunnel RTP and RTSP over HTTP" option and set the appropriate port used for the RTSP stream (PORT). After that, when using VLC as a client the streaming will be requested to be HTTP tunneled.

How do I open RTSP stream in browser?

Method 1 – RTMPconnect( "rtmp://192.168.88.59/live" ,obj); var subscribeStream:NetStream = new NetStream(nc); subscribeStream. play( "rtsp://192.168.88.5/live.sdp" );

Is RTSP an HTTP?

RTSP uses the same concepts as basic HTTP, which makes it easily compatible with existing HTTP networks. The protocol also allows for a great deal of flexibility. Clients can request the features they want to use in an effort to find out if the media server supports them.


2 Answers

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/

like image 174
mla Avatar answered Sep 21 '22 06:09

mla


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

vlc -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}"
like image 21
Manu Avatar answered Sep 20 '22 06:09

Manu