Ethereal-users: Re: [Ethereal-users] Voice-RTP extraction from Ethereal

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: José Luis Gómez <e93814a@xxxxxxxxxx>
Date: Fri, 27 May 2005 16:32:34 +0200
Hello Anders,
I will have to learn how to handle the Wiki, as soon as possible I will try.

Regards
Jose

Anders Broman (AL/EAB) wrote:

Hi,
Could you be so kind as to add this informaton and any other relevant info to
http://wiki.ethereal.com/RTP_20statistics?action=highlight&value=rtpdump
Best regards
Anders

-----Original Message-----
From: ethereal-users-bounces@xxxxxxxxxxxx
[mailto:ethereal-users-bounces@xxxxxxxxxxxx]On Behalf Of José Luis Gómez
Sent: den 27 maj 2005 14:54
To: ethereal-users@xxxxxxxxxxxx
Subject: [Ethereal-users] Voice-RTP extraction from Ethereal


Hi all,
I've seen many messages about extracting audio from RTP traces. Actually Ethereal only allows to extract directly into AU if the payload is G.711 A or mu-laws, but the other usual codecs can not be used because of patents, licenses and so on.

The ITU-T publishes sources for encoding and decoding in different codecs from and to PCM. If you buy the spec + source codecs you can compile them; I've been able to decode G.723.1 quite easily:
- open the capture, decode as RTP and filter out the G.723.1
- select the stream and export it as rtpdump format
- run the RTPDUMP -F payload -f file.rtpdump -o file.bits
- run the decoder onto file.bits to obain the file.pcm
- import the file.pcm in, for example Goldwave, as PCM at 8000 bps, 16 bit mono signed format.

For G.729AB it's not as easy because the "bitstream" expected by the ITU-T decoder routing is quite complex (every individual bit is encoded as two bytes, 0x81-00 for 1 and 0x7F-00 for 0). I've modified the RTPDUMP source to parse the payload into this "bitstream" and succeeded, expect for the silence (annex B) periods which last shorter than expected (the bitrate for silences and voiced period differs, it can be 30ms rather than 20ms, that's the only explanation I have).

Regards
Jose

_______________________________________________
Ethereal-users mailing list
Ethereal-users@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-users

_______________________________________________
Ethereal-users mailing list
Ethereal-users@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-users