| | 13 | |
| | 14 | '''How can I extract audio from the recorded .pcap files?''' |
| | 15 | |
| | 16 | It is possible to extract audio using [http://xenion.reactive-search.com/?page_id=7 rtpbreak], sox and lame (for mp3). |
| | 17 | |
| | 18 | First, the conversion of each channel in the raw: |
| | 19 | |
| | 20 | {{{ |
| | 21 | rtpbreak -W -r longfilename_of_rtpproxy_record.a.rtp |
| | 22 | rtpbreak -W -r longfilename_of_rtpproxy_record.o.rtp |
| | 23 | }}} |
| | 24 | |
| | 25 | Then mix in the format wavpcm stereo: |
| | 26 | |
| | 27 | {{{ |
| | 28 | sox --combine merge -r 8k -A rtp.0.0.raw -r 8k -A rtp.1.0.raw -t wavpcm -s out.wav |
| | 29 | }}} |
| | 30 | |
| | 31 | and, finally, converting to mp3: |
| | 32 | |
| | 33 | {{{ |
| | 34 | lame out.wav out.mp3 |
| | 35 | }}} |