Hello!

I tried to find a solution to convert rtp files to wav for version
rtpproxy < 1.2. I'm read scary stories about the creation
rtpproxy-module fpr sems :)

Fortunately, since version 1.2 came the parameter -P allows you to record 
rtp-traffic in a pcap.
Here is my decision to convert this to wav, using rtpbreak 
(http://xenion.reactive-search.com/?page_id=7), sox and lame (for mp3). Tested 
with debian etch.

First, the conversion of each channel in the raw:

rtpbreak -W -r longfilename_of_rtpproxy_record.a.rtp
rtpbreak -W -r longfilename_of_rtpproxy_record.a.rtp

Then mix in the format wavpcm stereo:

sox --combine merge -r 8k -A rtp.0.0.raw -r 8k -A rtp.1.0.raw -t wavpcm -s 
out.wav

and, finally, converting to mp3:

lame out.wav out.mp3

Thank you :-)


Shpinev Konstantin, http://callibry.net

_______________________________________________
Users mailing list
Users@rtpproxy.org
http://lists.rtpproxy.org/mailman/listinfo/users

Reply via email to