Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert RTSP to RTMP stream [closed]

Tags:

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 can I convert RTSP to RTMP for the purpose of streaming it to streaming services?

like image 339
Namesniper Avatar asked Oct 24 '10 19:10

Namesniper


People also ask

Is RTSP better than RTMP?

RTSP: Performance Comparison. Both RTMP and RTSP are designed for efficient and low-latency streaming of video files. While RTMP is widely used by broadcasters, RTSP is mainly used for localized streaming from IP cameras.

Is RTSP faster than RTMP?

Traditional Video Streaming Protocols As shown above, RTMP delivers video at roughly the same pace as a cable broadcast — in just over five seconds. RTSP/RTP is even quicker at around two seconds.

Is RTSP still used?

But over time, HTTP-based technologies using an adaptive bitrate algorithm eclipsed RTSP and RTMP. Despite this, RTSP is still actively used in video surveillance today to capture the feed from IP cameras. It is important to note that RTSP for IP cameras and for television are two completely different protocols.

Is RTMP obsolete?

The “old” use of RTMP is practically dead. Pretty much anything involving RTMP delivery/streaming and Flash delivery/streaming is obsolete at this point with most browsers completely dropping support of RTMP delivery in 2021. However, RTMP is not dead.


2 Answers

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

like image 127
Kevin - Dhinesh babu Avatar answered Oct 02 '22 14:10

Kevin - Dhinesh babu


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.

like image 41
Namesniper Avatar answered Oct 02 '22 16:10

Namesniper