[Freeswitch-users] Extract audio from PCAP

Michael Collins msc at freeswitch.org
Thu Mar 7 00:36:23 MSK 2013


Once you get the raw file out of the pcap do this:

sox -t ul -r 8000 -c 1 file.raw file.wav

That's assuming it's ulaw. Change "ul" to "al" if it's Alaw. If it's some
other codec then you'll need to figure out how to convert the raw to wav.
(That's where anthm's improvement of fs_encode is really handy.)

-MC

On Wed, Mar 6, 2013 at 1:16 PM, Avi Marcus <avi at avimarcus.net> wrote:

> Paul, yes, pcapsipdump is great.
> But now I want a .wav file out of that call, and wireshark crashes on
> certain files when trying to decode it... hence the question of other ways
> to extract it.
>
> -Avi
>
>
> On Wed, Mar 6, 2013 at 11:08 PM, Paul Cupis <paul at cupis.co.uk> wrote:
>
>> On 06/03/13 20:37, shouldbe q931 wrote:
>> > I am presuming that the pcap contains multiple "streams", so why not
>> > use a display filter to isolate and save each stream you are
>> > interested in,
>>
>> I believe that pcapsipdump can do this as well - take a pcap and create
>> per-call pcaps from it (SIP+RTP).
>>
>> Regards.
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130306/e31fe54b/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list