Rtp stream synchronization

眉间皱痕 提交于 2020-01-16 09:05:14

问题


I am working on a project where in I need to sync rtp streams. Here, I am making use of RTCP SR to synchronize.. Eg: For first stream I receive 6 rtp packets then I receive RTCP SR packet, as I know the time RTCP SR packet arrival, I subtract the RTP timestamp of this RTCP SR packet with the first rtp packets of stream and get the difference. Then I divide this by the difference which is monotonic between two rtp packets, say 160 for AMR and 320 for AMR-WB. Now, after the division I multiply the number by packetization time. This gives me the milliseconds I need to substract from RTCP SR time to get the time interval for first RTP packet of the stream.

Is this the correct way to calculate start times of rtp streams or am I missing something that I didn't count while deciding start time.????

Any detailed explanation will be very helpful for me.

来源:https://stackoverflow.com/questions/56873563/rtp-stream-synchronization

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!