流服务器中的RTP或RTSP有什么区别? [英] What is the difference between RTP or RTSP in a streaming server?

查看:103
本文介绍了流服务器中的RTP或RTSP有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑开发流服务器,我有以下问题,可以通过RTSP(示例网址:rtsp://192.168.0.184/myvideo.mpg)或RTP(示例网址:rtp://192.168.0.184)进行.

据我所知,RTSP服务器主要用于流式传输已存在的文件,即不存在的文件. RTP服务器用于广播.

如果我错了,有人纠正我,对吗?

我想开发一种服务器来在计算机屏幕上广播实时内容,即在流式传输时显示的内容.

解决方案

您遇到了问题... RTP 是一种传输协议,用于传输通过RTSP协商的媒体数据. /p>

您使用RTSP来控制RTP上的媒体传输.您可以使用它来设置,播放,暂停,拆除视频流...

因此,如果希望服务器在请求URL时才开始流式传输,则可以实现某种仅RTP的服务器.但是,如果要获得更多控制权,并且要流式传输实时视频,则必须使用RTSP,因为RTSP会传输SDP和其他重要的解码数据.

在这里阅读我链接的文档,它们是一个很好的起点.

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.

解决方案

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.

这篇关于流服务器中的RTP或RTSP有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆