[Freeswitch-users] Opus codec issue

Brian West brian at freeswitch.org
Sat Sep 27 03:48:38 MSD 2014


Not trying to be a dick about it or anything, the topic is one of those
myths like Big Foot or the Loch Ness Monster... its great for reporting but
has nothing factual to back it up. :P

On Fri, Sep 26, 2014 at 6:37 PM, jonathan augenstine <jaugenstine at gmail.com>
wrote:

> Brian,
>
> Thank you for your thoughtful analysis.
>
> Jonathan
>
> On Fri, Sep 26, 2014 at 4:10 PM, Brian West <brian at freeswitch.org> wrote:
>
>> If you could actually measure it, I'm fairly sure it won't matter and I'm
>> pretty sure a codec like OPUS wouldn't be one that you could record native
>> due to stateful information being in the bit stream.  The time its taken
>> for us to exchange these emails is many times more than it would cost you
>> to play the wav files in the first place.  I think G722 may suffer the same
>> problem.
>>
>> On Fri, Sep 26, 2014 at 5:41 PM, jonathan augenstine <
>> jaugenstine at gmail.com> wrote:
>>
>>> Brian,
>>>
>>> Are you saying that playing a file that is in wav format to an inbound
>>> call that has an opus codec has little or no CPU impact?  If so, do you
>>> happen to have any data showing that?
>>>
>>> Jonathan
>>>
>>> On Fri, Sep 26, 2014 at 3:29 PM, Brian West <brian at freeswitch.org>
>>> wrote:
>>>
>>>> Yes but the time spent on this will never be recovered, there is no
>>>> gain, no loss, and no reason to do so.
>>>>
>>>> On Fri, Sep 26, 2014 at 4:47 PM, jonathan augenstine <
>>>> jaugenstine at gmail.com> wrote:
>>>>
>>>>> Brian,
>>>>>
>>>>> It is a project requirement.  They want to have the audio files
>>>>> available in the format of the codec of the incoming calls.
>>>>>
>>>>> Jonathan
>>>>>
>>>>> On Fri, Sep 26, 2014 at 2:20 PM, Brian West <brian at 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 at 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 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
>>>>>>
>>>>>>
>>>>>> _________________________________________________________________________
>>>>>> 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
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _________________________________________________________________________
>>>>> 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
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> 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
>>>>
>>>
>>>
>>> _________________________________________________________________________
>>> 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
>>
>> _________________________________________________________________________
>> 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
>>
>
>
> _________________________________________________________________________
> 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/20140926/d4879569/attachment-0001.html 


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