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
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
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@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
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@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@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
_________________________________________________________________________ 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
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@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@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@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
_________________________________________________________________________ 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
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@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@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@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@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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
Brian, Thank you for your thoughtful analysis. Jonathan On Fri, Sep 26, 2014 at 4:10 PM, Brian West <brian@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@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@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@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@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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
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@gmail.com> wrote:
Brian,
Thank you for your thoughtful analysis.
Jonathan
On Fri, Sep 26, 2014 at 4:10 PM, Brian West <brian@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@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@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@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@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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
It's not necessarily the same format. The codec is the same, but the container may be different. fs_encode gives you just the raw data without a container afaik. It should be playable with mod_native_file. opusenc might be putting it in an ogg container format (or other). On 26 September 2014 22:47, jonathan augenstine <jaugenstine@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@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
_________________________________________________________________________ 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
Steve, That was my thought, but the file would not stream. I can review and test again, but trying to stream that file was unsuccessful. Jonathan On Fri, Sep 26, 2014 at 3:33 PM, Steven Ayre <steveayre@gmail.com> wrote:
It's not necessarily the same format. The codec is the same, but the container may be different. fs_encode gives you just the raw data without a container afaik. It should be playable with mod_native_file. opusenc might be putting it in an ogg container format (or other).
On 26 September 2014 22:47, jonathan augenstine <jaugenstine@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@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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
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
participants (4)
-
Brian West
-
Guillermo Ruiz Camauer
-
jonathan augenstine
-
Steven Ayre