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@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@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

FreeSWITCH-users mailing list
FreeSWITCH-users@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@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