I do the same thing with G729 files.  I have an outbound IVR that calls on G729 and plays its prompts from pre-encoded files.  This way I don't need G729 licenses (I just use the mod_g729 passthru) and I can put a lot more calls in one box since I do not need to transcode G729.

Regards,

Guillermo

On Fri, Sep 26, 2014 at 6:20 PM, Brian West <brian@freeswitch.org> wrote:
Why are you trying to create raw opus files in the first place?

On Fri, Sep 26, 2014 at 2:44 PM, jonathan augenstine <jaugenstine@gmail.com> wrote:
I have been working with WebRTC and utilizing the opus codec.  The sound quality on calls is great.  I have been encountering some file issues however and want to get some input on how to best proceed.  When the call is has both ends in Opus, or if Freeswitch is transcoding the call has no issues.  The only issues I encounter are the following.

1. fs_encode fails to create a valid opus file
When fs_encode executes, you do see mod_opus load successfully.  However, the file that is created cannot be read by opus.org utilities, specifically opusinfo.

The command line I use is:
fs_encode -l mod_opus infile.wav outfile.opus

2. Streaming a file that is encoded in opus format fails
If I encode a file using opus.org tools, opusenc, I have a valid opus file and I am able to open it with other audio applications.  If I call into freeswitch and try to stream out that file, there is no error reported in the console logs, but the audio heard is garbled.

Basically the mod_opus appears to work but reading, writing files appears to have an issue.

My questions.
1. Is there anything I might have configured incorrectly?
2. What information can I grab to help troubleshoot this issue?

Jonathan


_________________________________________________________________________
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


_________________________________________________________________________
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



--
Guillermo Ruiz Camauer