I have an IP camera which is streaming via RTSP and RTP. Ideally I would like to convert RTSP to RTMP to stream it to LiveStream or similar streaming services. Can anyone please let me know how may I convert RTSP to RTMP and then stream it to streaming services?
Using FFMPEG you can convert rtsp stream to rtmp
For Example
ffmpeg -i "[your rtsp link]" -f flv -r -s -an "[Your rtmp link]"
run the above syntax on ubuntu or linux os . it will convert your rtsp stream to rtmp stream
There's a couple of options, but by far the most common is Wowza server, which will digest the RTSP and then output RTMP.
After some extensive research, I have found that almost all RTSP->RTMP "solution" providers use Wowza 2 to convert RTSP->RTMP. Thats it. Once you tell them that you need anything else too, like to convert MPEG4 part 2 to MPEG4 part 10(H.264), they tell you that they cant do that.
Wowza 3, which will be released in October 2011, will have a transcoding module which which should be able to transcode the content in addition to RTSP->RTMP stream conversion.
other potential options are: VLCplayer mPlayer FFmpeg
I am still researching and will update this topic once I am done.
To summarize your options, you can use one of the following streaming servers: Wowza, Unreal Media Server, crtmpserver, erlyvideo. All of them will receive RTSP stream and re-stream it with RTMP.
You can also use Gstreamer for it. Just create a rtsp/rtp client (source), pipe it to mux optionally (If you need any transcode, you can append here) and sink to rtmp. Compared to VLC, the performance will be faster and it is free compared to Wowza.
来源:https://stackoverflow.com/questions/4010019/rtsp-to-rtmp-streaming