How To Decode G729
How To Decode G729
org/HowToDecodeG729
G.729 is another commonly used codec used in Voice over IP. This procedure will allow you to decode
this type of stream. In order to run the procedure, you will first need to obtain the Open G.729 decoder,
available for free from VoiceAge http://www.voiceage.com/openinit_g729.php. Note that this
procedure works either under Windows or under Linux with Wine.
1. In Wireshark, use menu "Statistics -> RTP -> Show All Streams". Select the desired stream and
press "Analyze".
2. In the next dialog screen, press "Save Payload...". Save options are Format = .raw and Channel =
forward. Name file sample.raw.
3. Convert the .raw file to .pcm format using the Open G.729 decoder. Syntax:
va_g729_decoder.exe sample.raw sample.pcm. Or for Linux: wine va_g729_decoder.exe
sample.raw sample.pcm.
4. The .pcm file contains 16-bit linear PCM samples at 8000 Hz. Note that each sample is in Little-
Endian format. To convert to .au format, all you need to do is prepend the 24 byte au header, and
convert each PCM sample to network byte order (or Big-Endian). The following Perl Script will
do the trick.
CategoryHowTo