Re: [Freeswitch-users] Convert pcap file to wav file
good night sir , i replaced R by Y i have this problem [image: Images intégrées 1] the file contains rtp named g711.pcap ,you will find it attached and the script to execute to convert this pcap to wav is : ssrc=$(tshark -n -r /home/amani/projet/PFE/g711.pcap -Y rtp -T fields -e rtp.ssrc -Eseparator=, | sort -u | awk 'FNR ==1 {print}') sudo tshark -n -r /home/amani/projet/PFE/g711.pcap -Y rtp -Y "rtp.ssrc == $ssrc" -T fields -e rtp.payload | tee payloads for payload in `cat payloads`; do IFS=:; for byte in $payload; do printf "\\x$byte" >> /home/amani/projet/PFE/g711.raw; done; done sox -t raw -r 8000 -v 4 -c 1 -e mu-law /home/amani/projet/PFE/g711.raw /home/amani/projet/PFE/g711.wav can you please sir execute it ? and tell me where is the problem ? thank you best regards 2016-03-30 22:16 GMT+01:00 amani mansour <amani.mansour2@gmail.com>:
good night sir , i replaced R by Y i have this problem [image: Images intégrées 1]
the file contains rtp named g711.pcap ,you will find it attached
and the script to execute to convert this pcap to wav is : ssrc=$(tshark -n -r /home/amani/projet/PFE/g711.pcap -Y rtp -T fields -e rtp.ssrc -Eseparator=, | sort -u | awk 'FNR ==1 {print}') sudo tshark -n -r /home/amani/projet/PFE/g711.pcap -Y rtp -Y "rtp.ssrc == $ssrc" -T fields -e rtp.payload | tee payloads for payload in `cat payloads`; do IFS=:; for byte in $payload; do printf "\\x$byte" >> /home/amani/projet/PFE/g711.raw; done; done sox -t raw -r 8000 -v 4 -c 1 -e mu-law /home/amani/projet/PFE/g711.raw /home/amani/projet/PFE/g711.wav
can you please sir execute it ? and tell me where is the problem ? thank you best regards amani
participants (1)
-
amani mansour