[Freeswitch-users] Using fs_encode on G722 audio produces half speed wav file

Brian West brian at freeswitch.org
Thu Oct 9 04:12:31 MSD 2014


I would bet that may be a buglet, since G722 is clocked at 8k but really a
16k codec, Can you file a JIRA on that?

On Wed, Oct 8, 2014 at 6:15 PM, Michael Collins <msc at freeswitch.org> wrote:

> For those of you familiar with the fs_encode tool I have a question - I
> can run it on a G722 raw file (such as is produced when using tshark to
> extract the RTP stream) and it produces a perfect wav file at exactly half
> speed.
>
> I'm using basic syntax:
> #>fs_encode raw_audio.G722 output.wav
>
> Looking at fs_encode's options I tried using -r to specify the sampling
> rate, but that seems to apply to the input on the codec and anything other
> than 8000 produces an error.
>
> Has anyone used fs_encode to decode G722 (or any other exotic codec) with
> success? I appreciate your input.
>
> -MC
>
> P.S. - doing #>sox slow_audio.wav normal_audio.wav speed 2.0 will "fix"
> the file, so I'm not totally dead in the water. I was just curious if I was
> possibly not using fs_encode properly. :)
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.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
>



-- 

*Brian West*
brian at freeswitch.org


*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141008/68a4eded/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list