SDP(session description protocol)时间基准解析

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/glw0223/article/details/88951292

SDP(session description protocol)时间基准解析

一个sdp举例如下:

v=0
o=- 0 0 IN IP4 127.0.0.1
s=noname
c=IN IP4 127.0.0.1
t=0 0
a=tool:YouKu Media Server
m=video 0 RTP/AVP 96
c=IN IP4 127.0.0.1
a=rtpmap:96 H264/90000
m=audio 0 RTP/AVP 97
c=IN IP4 127.0.0.1
a=rtpmap:97 MPEG4-GENERIC/48000/2
a=fmtp:97 profile-level-id=1;mode=AAC-hbr;constantDuration=1024;sizelength=13;indexlength=3;indexdeltalength=3; config=0223
  • 90000:视频的采样基准,影响rtp头里的时间戳。
    = t v i d e o 90000 t v i d e o 视频时间戳=t_{video}*90000,t_{video}单位是秒
  • 48000:音频的采样基准,影响rtp头里的时间戳。
    = t a u d i o 48000 t a u d i o 视频时间戳=t_{audio}*48000,t_{audio}单位是秒

猜你喜欢

转载自blog.csdn.net/glw0223/article/details/88951292