RTSP to RTMP streaming

会有一股神秘感。 提交于 2019-11-27 05:29:14

问题


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?


回答1:


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




回答2:


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.




回答3:


There's a couple of options, but by far the most common is Wowza server, which will digest the RTSP and then output RTMP.




回答4:


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.




回答5:


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

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