wireshark - How can I convert the RTP payload containing SILK-encoded audio into a file? -


i have pcap of voip call involving silk. i'm able see in wireshark rtp payload. rtp headers can understand sample rate (e.g. 24 khz) , frame size (e.g. 20 ms). i'd extract rtp payload , generate file containing silk-encoded audio. the rtp payload format description can see in case of storage in file, each block of audio needs block header, specify sample rate , block size (because block size variable , can different on each frame).

how can generate file correct file header ("magic number") , add block header each block of audio?

i can use few different programming languages i'm interested in required algorithm, appreciate references code implementations (or perhaps existing tool?).

use pcaputil of pjproject: converts captured rtp packets in pcap file wav file or play audio device. can filter pcap file on source or destination ip or port, able deal srtp , supports codecs in pjmedia, including silk (have not tried myself).

examples:

pcaputil file.pcap output.wav  pcaputil -c aes_cm_128_hmac_sha1_80 -k vldonbsbgl2puqy+0pv7w/ugfpspkfevdpxgsxn3 file.pcap output.wav 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -