1

I am building a c application for receiving RTSP audio (16bit, Linear PCM). I have completed the RTSP handshakes and getting RTP audio data from server (TCP transport, UDP is not possible in my case, firewall limitation). For parsing the audio data (PCM) from RTP payload what should i do. i have tried to remove the RTP header from received packet (First 12 bytes), but the audio i got have continuous jitter. Is there any example codes or an methods for parsing the payload from RTP packet.

Anjo John
  • 533
  • 1
  • 5
  • 7

1 Answers1

0

Are you sure you fully respect the header specification?

Decoding audio frames can be tricky, I recommend using FFMPEG libraries.

Some good examples can be found on Stack Overflow.

Community
  • 1
  • 1
Mathieu Rodic
  • 6,637
  • 2
  • 43
  • 49