3
votes

I have an IP camera streaming video through RTSP, and I am able to pick up the stream in VLC (rtsp://192.168.1.50:554/live.sdp). What I need now is a way to show this stream in a Flash application I am developing (probably through the FLVPlayback component?). This means I need a way to "convert" or transcode the RSTP stream to a format supported by Flash, live.

I searched around but couldn't find any conclusive answers... Should I use VLC to transcode the video stream? Something with Adobe Media Server? Is ffmpeg an option here? I have no clue where to start or which option is most suited in this case. Anyone have an idea?

5

5 Answers

1
votes

Using VLC, you can transcode the stream on the fly using the command:

cvlc -vvv rtsp://xxx.xxx.xxx.xxx:554/vga.sdp :sout='#transcode{vcodec=h264,scale=0,acodec=none,deinterlace}:http{mux=ffmpeg{mux=flv},dst=127.0.0.1:8090/toFlashPlayer.flv}'

I use this to push an RTSP stream to Flowplayer embedded in a page on my local Apache server, and it works very well. There are other options available for controlling network caching, video and audio bitrate, as well as frame rate - Examples available HERE.

Hope this helps!

Mason

0
votes

You can use erlyvideo streaming server to convert RTSP to RTMP. Flash can handle that natively. (http://erlyvideo.org/)

0
votes

I use Wowza and Unreal Media Server for this purpose. These servers not only can output your RTSP camera content to RTMP (Flash), but also to MPEG-TS and other formats for other players.

0
votes

As I know, Unreal Media Server support UMS, MS-WMSP- RTMP and more, this mean you can use this one for your project. You can take a look with this one http://www.umediaserver.net/umediaserver/index.html

Regards.

0
votes

There is a player which supports RTSP built for flash called Locomote Video Player. Disclaimer: I am the author

It supports RTSP over TCP, RTSP over HTTP, RTMP in all its forms as well as mp4 and flv streaming.

It's open source and contributions are welcome.