Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between RTP or RTSP in a streaming server?

I'm thinking about developing a streaming server and I have the following question, do over RTSP (example url: rtsp://192.168.0.184/myvideo.mpg) or RTP (example url: rtp://192.168.0.184).

As I have understood, an RTSP server is mainly used for streaming of files that already exist, ie, not live. RTP server is used to broadcast.

Somebody correct me if I'm wrong, am I right?.

What I want to develop a server to broadcast live content on the computer screen, that is, which is displayed at the time that is broadcast in streaming.

like image 262
Lobo Avatar asked Nov 29 '10 11:11

Lobo


People also ask

Does RTSP use RTP?

Both H. 323 and RTSP use RTP as their standard means of actually delivering the multimedia data. This data-level compatibility makes efficient gateways between the protocols possible, since only control messages need to be translated.

When should RTP be used and when should RTSP be used?

It uses RTP for data transportation i.e. RTSP is used to control media transmission over RTP. Both RTP and RTCP uses UDP. RTSP uses RTP (over UDP) for stream and TCP for control. RTP/RTCP applications use UDP port numbers in the unprivileged range from 1024 to 65535.

What is a RTP server?

Real-time Transport Protocol (RTP) is a network standard designed for transmitting audio or video data that is optimized for consistent delivery of live data. It is used in internet telephony, Voice over IP and video telecommunication.

What is a RTSP streaming server?

Real Time Streaming Protocol (RTSP) is an application-level network communication system that transfers real-time data from multimedia to an endpoint device by communicating directly with the server streaming the data.


1 Answers

You are getting something wrong... RTSP is a realtime streaming protocol. Meaning, you can stream whatever you want in real time. So you can use it to stream LIVE content (no matter what it is, video, audio, text, presentation...). RTP is a transport protocol which is used to transport media data which is negotiated over RTSP.

You use RTSP to control media transmission over RTP. You use it to setup, play, pause, teardown the stream...

So, if you want your server to just start streaming when the URL is requested, you can implement some sort of RTP-only server. But if you want more control and if you are streaming live video, you must use RTSP, because it transmits SDP and other important decoding data.

Read the documents I linked here, they are a good starting point.

like image 144
Cipi Avatar answered Sep 28 '22 04:09

Cipi