Spinlogic / AMR-WB_extractor

Extracts AMR / AMR-WB frames from RTP inside PCAP files and builds a .amr file that complies with the storage format in RFC4867
MIT License
14 stars 12 forks source link

generated audio from EVS codec pcapng file is not playing anything. #4

Open subodhsingh1 opened 1 month ago

subodhsingh1 commented 1 month ago

WARNING: PcapNg: invalid comment option WARNING: PcapNg: invalid comment option WARNING: more PcapNg: invalid comment option Number of packets read from pcap: 2845 Codec: evs, Total: 2845 , Valid: 1770 , Bad: 0

subodhsingh1 commented 1 month ago

i have used command -> python pcap_parser.py -i mdlogg.pcapng -o audio.wav -c evs -f ietf

Spinlogic commented 1 month ago

what version of scapy are you using?. I cannot find this warning in the current one (search for term "warning") In any case, to investigate this issues I need the pcap trace and, anyway, this is old code that I can hardly maintain. I do not actually work in VoLTE anymore. You are most welcome to contribute.

subodhsingh1 commented 1 month ago

looks like scapy 2.5.0 version.

Spinlogic commented 1 month ago

This script extracts audio from payload. The coding of this audio is the one of the original payload (evs in your case). If you want to convert to wav, you have to do that yourself with ffmpeg or a similar tool.

with command -> python pcap_parser.py -i mdlogg.pcapng -o audio.3ga -c evs -f ietf

you can probably play the audio.3ga file on VLC (if it still supports 3gpp formats).