Save voicemail in opus format
Hello. I want to save voicemail in opus codec so that client could listen it without transcoding. I set extension to opus instead of wav. Freeswitch started to write file with opus extension and it content of the file looks diffrent than wav. But I can playback this file even with unloaded mod_opus. VLC cannot play this file. How can this be explained? -- Kamil Nigmatullin Skype: kamil.nigmatullin
I will try to summarize to avoid previous conversations on this topic. Supporting the recording and playback of opus format files is difficult to impossible. This issue stems from the fact that opus is a stateful codec. This translates into the reality that attempting to simply inject the opus bitstream into a current call can result in a mismatch of the parameters giving an inaudible playback. The stateful codecs not only vary from call to call but can change within the same call. I have already gone down this road and it is a dead-end. Jonathan On Thu, Nov 20, 2014 at 11:38 AM, Kamil Nigmatullin < kamil.nigmatullin@gmail.com> wrote:
Hello. I want to save voicemail in opus codec so that client could listen it without transcoding.
I set extension to opus instead of wav. Freeswitch started to write file with opus extension and it content of the file looks diffrent than wav. But I can playback this file even with unloaded mod_opus. VLC cannot play this file.
How can this be explained?
-- Kamil Nigmatullin Skype: kamil.nigmatullin
_________________________________________________________________________ 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-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 understand that. But opus is more like static codec in FS. If you will see source code of mod_opus there is an initial parameters hardcoded in module. and I bet it is not being changed during the call. Ok. What is the format that was recorded in file with opus extension? Why does it play with unloaded mod_opus? 2014-11-21 2:27 GMT+06:00 jonathan augenstine <jaugenstine@gmail.com>:
I will try to summarize to avoid previous conversations on this topic. Supporting the recording and playback of opus format files is difficult to impossible. This issue stems from the fact that opus is a stateful codec. This translates into the reality that attempting to simply inject the opus bitstream into a current call can result in a mismatch of the parameters giving an inaudible playback. The stateful codecs not only vary from call to call but can change within the same call. I have already gone down this road and it is a dead-end.
Jonathan
On Thu, Nov 20, 2014 at 11:38 AM, Kamil Nigmatullin < kamil.nigmatullin@gmail.com> wrote:
Hello. I want to save voicemail in opus codec so that client could listen it without transcoding.
I set extension to opus instead of wav. Freeswitch started to write file with opus extension and it content of the file looks diffrent than wav. But I can playback this file even with unloaded mod_opus. VLC cannot play this file.
How can this be explained?
-- Kamil Nigmatullin Skype: kamil.nigmatullin
_________________________________________________________________________ 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-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-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
-- Kamil Nigmatullin Tel: 77272323748 mob: 7 (707) 2517003 Skype: kamil.nigmatullin
participants (2)
-
jonathan augenstine
-
Kamil Nigmatullin