How to playback G729 audio streams

After you captured the audio stream using Wireshark, you want to playback the RTP stream.  Unfortunately, Wireshark can only decode G711 streams but the stream that you captured is G729. Follow the steps below to playback G729 streams

1- Open the capture in Wireshark, 

2- If you do not see the RTP packets (G729) , you might need to select the UDP packets -> right click and select Decode As… -> RTP (in the scrolling menu)

3- The rtp packets should now show up as G729.

4- Go to “Statistics -> RTP -> Show All Streams”. Select the desired stream and press “Analyze”.

5- Select “Save Payload…”. Save options are Format = .raw and Channel = forward. Name file sample.raw. The file should now be saved on your PC in RAW format.

6- Convert the .raw file to .pcm format using the Open G.729 decoder.

Syntax: va_g729_decoder.exe sample.raw sample.pcm.raw

Or for Linux: wine va_g729_decoder.exe sample.raw sample.pcm.raw

7- Open Audacity and select “Project -> Import Raw File…”.

8- Select the sample.pcm.raw file and choose 

  • Signed 16-bit pc
  • No endianness
  • 1 channel (mono)
  • Start offset: 0
  • Amount to import: 100%
  • Sample rate: 8000

 

 

 

9 Responses to “How to playback G729 audio streams”


  1. 1 Tejender March 14, 2009 at 11:53 am

    This really works & wonderful to see results.

  2. 2 voipsupport.dude April 3, 2009 at 3:45 pm

    Art,

    This is good stuff, thanks.

  3. 3 Stefan November 4, 2009 at 6:03 am

    Thanx so much, we were looking for this for a long time

  4. 4 Salahuddin Ahmed December 24, 2009 at 3:19 am

    Really Cool Article….

    Thanks So much…

  5. 5 Goudy January 26, 2010 at 8:18 am

    Funciona muy bien, gracias.
    Works fine, thank you.

  6. 6 sg May 26, 2010 at 12:48 am

    Thanks so much for the instruction on importing the pcm file into audacity. Finally get this work after trying so long.

  7. 7 helio August 12, 2010 at 2:55 am

    Tnx!

    I’ve been trying for long time and it worked perfectly!

  8. 8 Blake McKeeby March 25, 2011 at 11:21 am

    Thanks! This was incredibly helpful.

  9. 9 Mike February 3, 2012 at 8:19 am

    It worked perfectly, Thank you!


Leave a comment




a

June 2008
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Visitors to my site

RSS Malek Tips

  • An error has occurred; the feed is probably down. Try again later.

RSS How-To-Geek tips

  • An error has occurred; the feed is probably down. Try again later.