社区
VoIP
帖子详情
哪位大侠能够给我详细解释RTP/RTCP中SSRC和CNAME的使用
thegreatone
2014-09-12 03:10:43
如题,想请各位给详细讲解SSRC和CNAME,譬如,在一个音视频会议中,如果和一个人进行音视频通话中,那么音频和视频的SSRC和CNAME是不是一样的;如果是和多个人进行呢?另外,一个人参加多个音视频会议,这个时候SSRC和CNAME?
...全文
3534
5
打赏
收藏
哪位大侠能够给我详细解释RTP/RTCP中SSRC和CNAME的使用
如题,想请各位给详细讲解SSRC和CNAME,譬如,在一个音视频会议中,如果和一个人进行音视频通话中,那么音频和视频的SSRC和CNAME是不是一样的;如果是和多个人进行呢?另外,一个人参加多个音视频会议,这个时候SSRC和CNAME?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
太上绝情
2017-05-10
打赏
举报
回复
1
ssrc代表一路数据流的id,这个id是一个全局唯一的整数,通常来说这个ssrc应该由服务器来分配以保持唯一。 cname代表一个客户端的id,一个客户端可能会有多路数据流,通常来说至少一路音频一路视频,如果有两个摄像头就会有两路视频流。这几路数据流的ssrc都不一致,但是他们的cname是一致的,用来表示他们是哪个客户端的数据。用处:例如服务端做一些统计的时候就可以统计出一个客户端的整体流量。
david-yue
2014-12-29
打赏
举报
回复
SSRC表示表示每个RTP连接的同步源,不同的RTP连接的SSRC一般设定不一致,即使如果设置一致必然存在冲突的可能,需要解决冲突。对于一个RTP连接,音频和视频的SSRC一般设定不一致,但是CNAME可以设定一致。多方会议,音视频的SSRC也不能相等,CNAME可以相等。
一枪尽骚丶魂
2014-12-26
打赏
举报
回复
额,楼上好像很厉害的感觉呢
云梦谭
2014-09-18
打赏
举报
回复
仔细看看RFC3550,就明白了
RFC3550
中
文版 (
RTP
/
RTC
P)
本文描述
RTP
(real-time transport protocol),实时传输协议。
RTP
在多点传送(多播) 或单点传送(单播)的网络服务上,提供端对端的网络传输功能,适合应用程序传输实时数据, 如:音频,视频或者仿真数据。
RTP
没有为实时服务提供资源预留的功能,也不能保证QoS (服 务质量)。数据传输功能由一个控制协议(
RTC
P)来扩展,通过扩展,可以用一种方式对数据 传输进行监测控制,该协议(
RTC
P)可以升级到大型的多点传送(多播)网络,并提供最小限 度的控制和鉴别功能。
RTP
和
RTC
P 被设计成和下面的传输层和网络层无关。协议支持
RTP
标 准的转换器和混合器的
使用
。 本文的大多数内容和旧版的RFC1889 相同。在线路里传输的数据包格式没有改变,唯一的改变 是
使用
协议的规则和控制算法。为了最小化传输,发送
RTC
P 数据包时超过了设定的速率,而 在这时,很多的参与者同时加入了一个会话,在这样的情况下,一个新加入到(用于计算的可升 级的)计时器算法
中
的元素是最大的改变。 目录(Table of Contents) 1. 引言 (Introduction) 1 1 术语(Terminology) 2
RTP
使用
场景(
RTP
Use Scenarios) 2 1 简单多播音频会议( Simple Multicast Audio Conference) 2 2 音频和视频会议(Audio and Video Conference) 2 3 混频器和转换器(Mixers and Translators) 2 4 分层编码(Layered Encodings) 3 定义(Definitions) 4 字节序,校正和时间格式(Byte Order, Alignment, and Time Format) 5
RTP
数据传输协议(
RTP
Data Transfer Protocol) 5 1
RTP
固定头域(
RTP
Fixed Header Fields) 5 2 多路复用
RTP
会话(Multiplexing
RTP
Sessions) 5 3
RTP
头的配置文件
详细
变更(Profile-Specific Modifications to the
RTP
Header) 5 3 1
RTP
报头扩展(
RTP
Header Extension) 6
RTP
控制协议(
RTP
Control Protocol)--
RTC
P 6 1
RTC
P包格式(
RTC
P Packet Format) 6 2
RTC
P传输间隔(
RTC
P Transmission Interval) 6 2 1 维护会话成员数目(Maintaining the number of session members) 6 3
RTC
P包的发送与接收规则(
RTC
P Packet Send and Receive Rules) 6 3 1 计算
RTC
P 传输间隔(Computing the
RTC
P Transmission Interval ) 6 3 2 初始化(Initialization) 6 3 3 接收
RTP
或
RTC
P (非BYE)包(Receiving an
RTP
or Non-BYE
RTC
P Packet) 6 3 4 接收
RTC
P (BYE)包(Receiving an
RTC
P BYE Packet) 6 3 5
SSR
C 计时失效(Timing Out an
SSR
C ) 6 3 6 关于传输计时器的到期(Expiration of Transmission Timer) 6 3 7 传输一个 BYE 包(Transmitting a BYE Packet) 6 3 8 更新we_sent (Updating we_sent) 6 3 9 分配源描述带宽(Allocation of Source Description Bandwidth ) 6 4 发送方和接收方报告(Sender and Receiver Reports) 6 4 1 SR:发送方报告的
RTC
P包(SR: Sender report
RTC
P packet) 6 4 2 RR:接收方报告的
RTC
P 包(RR: Receiver Report
RTC
P Packet) 6 4 3 扩展发送方和接收方报告(Extending the Sender and Receiver Reports ) 6 4 4 分析发送方和接收方报告(Analyzing Sender and Receiver Reports ) 6 5 SDES:源描述
RTC
P包(SDES: Source description
RTC
P packet) 6 5 1
CNAME
:规范终端标识符的SDES 数据项(
CNAME
: Canonical End-Point Identifier SDES Item) 6 5 2 NAME:用户名的SDES 数据项(NAME: User name SDES item) 6 5 3 EMAIL:电子邮件地址的SDES 数据项(EMAIL: Electronic Mail Address SDES Item) 6 5 4 PHONE:电话号码的SDES 数据项(PHONE: Phone Number SDES Item) 6 5 5 LOC:地理用户地址的SDES 数据项(LOC: Geographic User Location SDES Item) 6 5 6 TOOL:应用程序或工具名字的SDES 数据项(TOOL: Application or Tool Name SDES Item) 6 5 7 NOTE:通知/状态的SDES 数据项(NOTE: Notice/Status SDES Item) 6 5 8 PRIV:私有扩展的SDES 数据项(PRIV: Private Extensions SDES Item) 6 6 BYE:Goodbye
RTC
P 包(BYE: Goodbye
RTC
P packet) 6 7 APP:定义应用程序的
RTC
P 包(APP: Application-Defined
RTC
P Packet) 7
RTP
转换器和混频器(
RTP
Translators and Mixers) 7 1 概述(General Description ) 7 2 在转换器
中
的
RTC
P 数据处理(
RTC
P Processing in Translators) 7 3 在混频器
中
的
RTC
P 数据处理(
RTC
P Processing in Mixers ) 7 4 级联混频器(Cascaded Mixers) 8
SSR
C 标识符的分配和
使用
(
SSR
C Identifier Allocation and Use) 8 1 冲突概率(Probability of Collision ) 8 2 冲突解决和循环检测(Collision Resolution and Loop Detection) 8 3 在分层编码
中
使用
(Use with Layered Encodings) 9 安全(Security ) 9 1 机密性(Confidentiality) 9 2 身份验证和消息完整性(Authentication and Message Integrity ) 10 拥塞控制(Congestion Control) 11 网络和传输协议之上的
RTP
(
RTP
over Network and Transport Protocols) 12 协议常量摘要(Summary of Protocol Constants) 12 1
RTC
P 包类型(
RTC
P Packet Types) 12 2 SDES 类型(SDES Types) 13
RTP
概况和负载格式
详细
说明 (
RTP
Profiles and Payload Format Specifications) 14 安全考虑(Security Considerations) 15 IANA 考虑(IANA Considerations) 16 知识产权声明(Intellectual Property Rights Statement) 17 鸣谢(Acknowledgments) 附录A 算法(Algorithms) 附录A 1
RTP
数据头有效性检查(
RTP
Data Header Validity Checks ) 附录A 2
RTC
P 数据头有效性检查(
RTC
P Header Validity Checks) 附录A 3 确定
RTP
包预期数目和丢失数目(Determining Number of Packets Expected and Lost) 附录A 4 生成SDES
RTC
P包(Generating
RTC
P SDES Packets) 附录A 5 解析
RTC
P SDES 包(Parsing
RTC
P SDES Packets) 附录A 6 生成32位随机标识符(Generating a Random 32-bit Identifier 附录A 7 计算
RTC
P 传输间隔(Computing the
RTC
P Transmission Interval) 附录A 8 估测两次到达间隔的抖动(Estimating the Interarrival Jitter) 附录B 与RFC1889 不同之外(Changes from RFC 1889) 参考书目(References) 标准化引用(Normative References ) 资料性引用(Informative References) 作者地址 完整的版权声明
RFC3550_
RTP
:实时应用程序传输协议
目录(Table of Contents) 1. 引言 (Introduction) 1 1 术语(Terminology) 2
RTP
使用
场景(
RTP
Use Scenarios) 2 1 简单多播音频会议( Simple Multicast Audio Conference) 2 2 音频和视频会议(Audio and Video Conference) 2 3 混频器和转换器(Mixers and Translators) 2 4 分层编码(Layered Encodings) 3 定义(Definitions) 4 字节序,校正和时间格式(Byte Order, Alignment, and Time Format) 5
RTP
数据传输协议(
RTP
Data Transfer Protocol) 5 1
RTP
固定头域(
RTP
Fixed Header Fields) 5 2 多路复用
RTP
会话(Multiplexing
RTP
Sessions) 5 3
RTP
头的配置文件
详细
变更(Profile-Specific Modifications to the
RTP
Header) 5 3 1
RTP
报头扩展(
RTP
Header Extension) 6
RTP
控制协议(
RTP
Control Protocol) --
RTC
P 6 1
RTC
P包格式(
RTC
P Packet Format) 6 2
RTC
P传输间隔(
RTC
P Transmission Interval) 6 2 1 维护会话成员数目(Maintaining the number of session members) 6 3
RTC
P包的发送与接收规则(
RTC
P Packet Send and Receive Rules) 6 3 1 计算
RTC
P传输间隔(Computing the
RTC
P Transmission Interval) 6 3 2 初始化(Initialization) 6 3 3 接收
RTP
或
RTC
P(非BYE)包(Receiving an
RTP
or Non-BYE
RTC
P Packet) 6 3 4 接收
RTC
P(BYE)包(Receiving an
RTC
P BYE Packet) 6 3 5
SSR
C计时失效(Timing Out an
SSR
C) 6 3 6 关于传输计时器的到期(Expiration of Transmission Timer) 6 3 7 传输一个 BYE 包(Transmitting a BYE Packet) 6 3 8 更新we_sent(Updating we_sent) 6 3 9 分配源描述带宽(Allocation of Source Description Bandwidth) 6 4 发送方和接收方报告(Sender and Receiver Reports) 6 4 1 SR:发送方报告的
RTC
P包(SR: Sender report
RTC
P packet) 6 4 2 RR:接收方报告的
RTC
P包(RR: Receiver Report
RTC
P Packet) 6 4 3 扩展发送方和接收方报告(Extending the Sender and Receiver Reports ) 6 4 4 分析发送方和接收方报告(Analyzing Sender and Receiver Reports ) 6 5 SDES:源描述
RTC
P包(SDES: Source description
RTC
P packet) 6 5 1
CNAME
:规范终端标识符的SDES数据项(
CNAME
: Canonical End-Point Identifier SDES Item) 6 5 2 NAME:用户名的SDES数据项(NAME: User name SDES item) 6 5 3 EMAIL:电子邮件地址的SDES数据项(EMAIL: Electronic Mail Address SDES Item) 6 5 4 PHONE:电话号码的SDES数据项(PHONE: Phone Number SDES Item) 6 5 5 LOC:地理用户地址的SDES数据项(LOC: Geographic User Location SDES Item) 6 5 6 TOOL:应用程序或工具名字的SDES数据项(TOOL: Application or Tool Name SDES Item) 6 5 7 NOTE:通知/状态的SDES数据项(NOTE: Notice/Status SDES Item) 6 5 8 PRIV:私有扩展的SDES数据项(PRIV: Private Extensions SDES Item) 6 6 BYE:Goodbye
RTC
P包(BYE: Goodbye
RTC
P packet) 6 7 APP:定义应用程序的
RTC
P包(APP: Application-Defined
RTC
P Packet) 7
RTP
转换器和混频器(
RTP
Translators and Mixers) 7 1 概述(General Description ) 7 2 在转换器
中
的
RTC
P数据处理(
RTC
P Processing in Translators) 7 3 在混频器
中
的
RTC
P数据处理(
RTC
P Processing in Mixers ) 7 4 级联混频器(Cascaded Mixers) 8
SSR
C标识符的分配和
使用
(
SSR
C Identifier Allocation and Use) 8 1 冲突概率(Probability of Collision ) 8 2 冲突解决和循环检测(Collision Resolution and Loop Detection) 8 3 在分层编码
中
使用
(Use with Layered Encodings) 9 安全(Security ) 9 1 机密性(Confidentiality) 9 2 身份验证和消息完整性(Authentication and Message Integrity) 10 拥塞控制(Congestion Control) 11 网络和传输协议之上的
RTP
(
RTP
over Network and Transport Protocols) 12 协议常量摘要(Summary of Protocol Constants) 12 1
RTC
P 包类型(
RTC
P Packet Types) 12 2 SDES 类型(SDES Types) 13
RTP
概况和负载格式
详细
说明 (
RTP
Profiles and Payload Format Specifications) 14 安全考虑(Security Considerations) 15 IANA考虑(IANA Considerations) 16 知识产权声明(Intellectual Property Rights Statement) 17 鸣谢(Acknowledgments) 附录 A 算法(Algorithms) 附录 A 1
RTP
数据头有效性检查(
RTP
Data Header Validity Checks ) 附录 A 2
RTC
P数据头有效性检查(
RTC
P Header Validity Checks) 附录 A 3 确定
RTP
包预期数目和丢失数目(Determining Number of Packets Expected and Lost) 附录 A 4 生成SDES
RTC
P包(Generating
RTC
P SDES Packets) 附录 A 5 解析
RTC
P SDES包(Parsing
RTC
P SDES Packets) 附录 A 6 生成32位随机标识符(Generating a Random 32-bit Identifier 附录 A 7 计算
RTC
P传输间隔(Computing the
RTC
P Transmission Interval) 附录 A 8 估测两次到达间隔的抖动(Estimating the Interarrival Jitter) 附录 B 与RFC1889不同之外(Changes from RFC 1889) 参考书目(References) 标准化引用(Normative References ) 资料性引用(Informative References) 作者地址 完整的版权声明
FFmpeg4.3开发系列之12:RTSP+Live555直播点播详解
我将带领大家全面分析RTSP+LIVE555,实现摄像头直播功能。 您将亲自动手来操练,搭建环境、学习理论,分析总结:RTSP+
RTP
/
RTC
P+X264+LIVE555 具体包括包括如下:RTSP协议讲解
RTP
/
RTC
P协议讲解
使用
DirectShow读取本地摄像头数据,存储为yuv格式
使用
X264进行编码,将yuv数据编码为h264码流扩展Live555,实现自定义的摄像头数据源VideoSource和
RTP
Sink实现摄像头直播,
使用
VLC拉流 -------------------------梅老师从事音视频与流媒体行业18年;曾在永新视博、
中
科大洋、百度、美国Harris广播事业部等公司就职,经验丰富;曾亲手主导广电直播全套项目,精通h.264/h.265/aac,曾亲自参与百度app上的网页播放器等实战产品。
rfc3550
RTP
协议
中
文版本
目录(Table of Contents) 1. 引言 (Introduction) 1 1 术语(Terminology) 2
RTP
使用
场景(
RTP
Use Scenarios) 2 1 简单多播音频会议( Simple Multicast Audio Conference) 2 2 音频和视频会议(Audio and Video Conference) 2 3 混频器和转换器(Mixers and Translators) 2 4 分层编码(Layered Encodings) 3 定义(Definitions) 4 字节序,校正和时间格式(Byte Order, Alignment, and Time Format) 5
RTP
数据传输协议(
RTP
Data Transfer Protocol) 5 1
RTP
固定头域(
RTP
Fixed Header Fields) 5 2 多路复用
RTP
会话(Multiplexing
RTP
Sessions) 5 3
RTP
头的配置文件
详细
变更(Profile-Specific Modifications to the
RTP
Header) 5 3 1
RTP
报头扩展(
RTP
Header Extension) 6
RTP
控制协议(
RTP
Control Protocol) --
RTC
P 6 1
RTC
P包格式(
RTC
P Packet Format) 6 2
RTC
P传输间隔(
RTC
P Transmission Interval) 6 2 1 维护会话成员数目(Maintaining the number of session members) 6 3
RTC
P包的发送与接收规则(
RTC
P Packet Send and Receive Rules) 6 3 1 计算
RTC
P传输间隔(Computing the
RTC
P Transmission Interval) 6 3 2 初始化(Initialization) 6 3 3 接收
RTP
或
RTC
P(非BYE)包(Receiving an
RTP
or Non-BYE
RTC
P Packet) 6 3 4 接收
RTC
P(BYE)包(Receiving an
RTC
P BYE Packet) 6 3 5
SSR
C计时失效(Timing Out an
SSR
C) 6 3 6 关于传输计时器的到期(Expiration of Transmission Timer) 6 3 7 传输一个 BYE 包(Transmitting a BYE Packet) 6 3 8 更新we_sent(Updating we_sent) 6 3 9 分配源描述带宽(Allocation of Source Description Bandwidth) 6 4 发送方和接收方报告(Sender and Receiver Reports) 6 4 1 SR:发送方报告的
RTC
P包(SR: Sender report
RTC
P packet) 6 4 2 RR:接收方报告的
RTC
P包(RR: Receiver Report
RTC
P Packet) 6 4 3 扩展发送方和接收方报告(Extending the Sender and Receiver Reports ) 6 4 4 分析发送方和接收方报告(Analyzing Sender and Receiver Reports ) 6 5 SDES:源描述
RTC
P包(SDES: Source description
RTC
P packet) 6 5 1
CNAME
:规范终端标识符的SDES数据项(
CNAME
: Canonical End-Point Identifier SDES Item) 6 5 2 NAME:用户名的SDES数据项(NAME: User name SDES item) 6 5 3 EMAIL:电子邮件地址的SDES数据项(EMAIL: Electronic Mail Address SDES Item) 6 5 4 PHONE:电话号码的SDES数据项(PHONE: Phone Number SDES Item) 6 5 5 LOC:地理用户地址的SDES数据项(LOC: Geographic User Location SDES Item) 6 5 6 TOOL:应用程序或工具名字的SDES数据项(TOOL: Application or Tool Name SDES Item) 6 5 7 NOTE:通知/状态的SDES数据项(NOTE: Notice/Status SDES Item) 6 5 8 PRIV:私有扩展的SDES数据项(PRIV: Private Extensions SDES Item) 6 6 BYE:Goodbye
RTC
P包(BYE: Goodbye
RTC
P packet) 6 7 APP:定义应用程序的
RTC
P包(APP: Application-Defined
RTC
P Packet) 7
RTP
转换器和混频器(
RTP
Translators and Mixers) 7 1 概述(General Description ) 7 2 在转换器
中
的
RTC
P数据处理(
RTC
P Processing in Translators) 7 3 在混频器
中
的
RTC
P数据处理(
RTC
P Processing in Mixers ) 7 4 级联混频器(Cascaded Mixers) 8
SSR
C标识符的分配和
使用
(
SSR
C Identifier Allocation and Use) 8 1 冲突概率(Probability of Collision ) 8 2 冲突解决和循环检测(Collision Resolution and Loop Detection) 8 3 在分层编码
中
使用
(Use with Layered Encodings) 9 安全(Security ) 9 1 机密性(Confidentiality) 9 2 身份验证和消息完整性(Authentication and Message Integrity) 10 拥塞控制(Congestion Control) 11 网络和传输协议之上的
RTP
(
RTP
over Network and Transport Protocols) 12 协议常量摘要(Summary of Protocol Constants) 12 1
RTC
P 包类型(
RTC
P Packet Types) 12 2 SDES 类型(SDES Types) 13
RTP
概况和负载格式
详细
说明 (
RTP
Profiles and Payload Format Specifications) 14 安全考虑(Security Considerations) 15 IANA考虑(IANA Considerations) 16 知识产权声明(Intellectual Property Rights Statement) 17 鸣谢(Acknowledgments) 附录 A 算法(Algorithms) 附录 A 1
RTP
数据头有效性检查(
RTP
Data Header Validity Checks ) 附录 A 2
RTC
P数据头有效性检查(
RTC
P Header Validity Checks) 附录 A 3 确定
RTP
包预期数目和丢失数目(Determining Number of Packets Expected and Lost) 附录 A 4 生成SDES
RTC
P包(Generating
RTC
P SDES Packets) 附录 A 5 解析
RTC
P SDES包(Parsing
RTC
P SDES Packets) 附录 A 6 生成32位随机标识符(Generating a Random 32-bit Identifier
rfc3550
rtp
协议
中
文版本
目录(Table of Contents) 1. 引言 (Introduction) 1 1 术语(Terminology) 2
RTP
使用
场景(
RTP
Use Scenarios) 2 1 简单多播音频会议( Simple Multicast Audio Conference) 2 2 音频和视频会议(Audio and Video Conference) 2 3 混频器和转换器(Mixers and Translators) 2 4 分层编码(Layered Encodings) 3 定义(Definitions) 4 字节序,校正和时间格式(Byte Order, Alignment, and Time Format) 5
RTP
数据传输协议(
RTP
Data Transfer Protocol) 5 1
RTP
固定头域(
RTP
Fixed Header Fields) 5 2 多路复用
RTP
会话(Multiplexing
RTP
Sessions) 5 3
RTP
头的配置文件
详细
变更(Profile-Specific Modifications to the
RTP
Header) 5 3 1
RTP
报头扩展(
RTP
Header Extension) 6
RTP
控制协议(
RTP
Control Protocol) --
RTC
P 6 1
RTC
P包格式(
RTC
P Packet Format) 6 2
RTC
P传输间隔(
RTC
P Transmission Interval) 6 2 1 维护会话成员数目(Maintaining the number of session members) 6 3
RTC
P包的发送与接收规则(
RTC
P Packet Send and Receive Rules) 6 3 1 计算
RTC
P传输间隔(Computing the
RTC
P Transmission Interval) 6 3 2 初始化(Initialization) 6 3 3 接收
RTP
或
RTC
P(非BYE)包(Receiving an
RTP
or Non-BYE
RTC
P Packet) 6 3 4 接收
RTC
P(BYE)包(Receiving an
RTC
P BYE Packet) 6 3 5
SSR
C计时失效(Timing Out an
SSR
C) 6 3 6 关于传输计时器的到期(Expiration of Transmission Timer) 6 3 7 传输一个 BYE 包(Transmitting a BYE Packet) 6 3 8 更新we_sent(Updating we_sent) 6 3 9 分配源描述带宽(Allocation of Source Description Bandwidth) 6 4 发送方和接收方报告(Sender and Receiver Reports) 6 4 1 SR:发送方报告的
RTC
P包(SR: Sender report
RTC
P packet) 6 4 2 RR:接收方报告的
RTC
P包(RR: Receiver Report
RTC
P Packet) 6 4 3 扩展发送方和接收方报告(Extending the Sender and Receiver Reports ) 6 4 4 分析发送方和接收方报告(Analyzing Sender and Receiver Reports ) 6 5 SDES:源描述
RTC
P包(SDES: Source description
RTC
P packet) 6 5 1
CNAME
:规范终端标识符的SDES数据项(
CNAME
: Canonical End-Point Identifier SDES Item)
VoIP
1,394
社区成员
567
社区内容
发帖
与我相关
我的任务
VoIP
VOIP相关技术探讨专区
复制链接
扫一扫
分享
社区描述
VOIP相关技术探讨专区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章