How would I go about converting a RTP stream from a pcap file to wav format with a command-line tool such as sox?


Here you go!
1. Enter RTP in the display filter in Wireshark when the capture is open.
2. Now select an RTP packet in any stream and click on the menu option Telephony.
3. Go to RTP>Stream Analysis and click on Save Payload button.
4. Change the format to .au and choose a name (lets say test.au) and location for your file.
5. Play it using your favorite audio player.
5. Run the following command to convert the .au file to .wav if you like .wav files better: sox test.au -V -t wav -b 16 -c 2 test.wav

Hope that helps!

  • 2
    Is it possible to do this completly via command line?
    – eKKiM
    Jul 12 '19 at 9:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.