I have a .pcap-file with audio AVB streams (IEEE 1722a protocol). I would like to extract the audio data and put it in a .wav-file so that it can be played by a standard player. So I would first need to cut the payload of the AVB streams out of the .pcap-file (I think that should be easy as the offsets of these payloads can be calculated), then I have to put the different sequences together to one .wav-file (this should also be possible by adding the right header etc.).
Is there something like that existing for AVB streams? Which programming language would you use for that purpose?
asked 16 Feb '16, 06:42
As you've stated elsewhere that you've written your own dissector for ieee1722a v14, you should be able to use tshark to dump only the audio data as hex stream, using the appropriate field name as assigned by your dissector both for
for each packet containing six 24-bit samples.
Then, you would use your favourite programming language to post-process that data. Depending on the properties of the audio codec used (block-based or stream-based), it may be enough to compose the output file of a header followed by the data (like
I personally prefer
The above is enough only if the player you'll use to play the resulting file is able to handle the codec and your only task is to inform it which codec to use.
answered 16 Feb '16, 07:20