mediasoup源码分析 (二十一)sdp中profile-level-id 作用

目录

 

一、格式

二、作用


一、格式

SDP 中对于H264编码的协商 ,会有如下内容:

a=rtpmap:126 H264/90000
a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1

 表示H264 的playloadType=126,也可能是其他值。该类型的profile-level-id=42e01f。

二、作用

profile-level-id 用来设置H264的profile 和level值,profile越高压缩率越高。

具体格式如下:

42e01f 即0x42e01f是16进制的数,具体格式为 profile_idc(占8 bits)、profile_iop(占8 bits&

猜你喜欢

转载自blog.csdn.net/lcalqf/article/details/110943699