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!
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
3. Go to
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!