Convert rtsp video stream to http stream
Asked Answered
W

2

17

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.

Wersh answered 3/3, 2010 at 11:28 Comment(0)
T
14

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/

Treat answered 18/5, 2010 at 8:58 Comment(0)
P
4

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}"
Plasma answered 28/2, 2011 at 19:48 Comment(2)
I get this error: stream chain failed for `transcodesamplerate=44100:httpdst=0.0.0.0:9000'. what is the problem?Carton
@MortezaM. someone had the same question here. "Missing quotes. Your shell is mangling the command line arguments"Quibbling

© 2022 - 2024 — McMap. All rights reserved.