How to calculate the RTP Timestamp for each packet in an audio stream
问题 I read the RTP specification and I can't seem to get my head around the RTP Packet Timestamp. I tried to implement it in different ways in my server but I can't get the player to play it right. The "wrong" behaviour I'm having here is that ( I use VLC player to play the RTSP url to my server ) I find the logs of the player saying "buffer way too late" and "wrong PTS value" . Which means somehow that the audio frames arrives in a packets whose timestamp is not set right. I tried to implement