Opus codec error

Hi,

I’m trying to play an audio in format .opus but the background application of the dialplan shows an error. the file exists and the codec module seems to be fine, can you give me a hand in case something goes wrong?

; Dialplan Error
– Executing [19@clients:2] BackGround(“PJSIP/1002-00000020”, “/tmp/response2-1613985073.20921_out”) in new stack
> 0x7faf780116f0 – Strict RTP learning after remote address set to: 192.168.72.239:40046
> 0x7faf780116f0 – Strict RTP switching to RTP target address 192.168.72.239:40046 as source
[2021-02-22 15:35:16.669] WARNING[21048][C-0000001b]: file.c:475 fn_wrapper: Unable to open format ogg_opus
[2021-02-22 15:35:16.669] WARNING[21048][C-0000001b]: file.c:1262 ast_streamfile: Unable to open /tmp/response2-1613985073.20921_out (format (alaw)): No such file or directory
[2021-02-22 15:35:16.670] WARNING[21048][C-0000001b]: pbx_builtins.c:1175 pbx_builtin_background: ast_streamfile failed on PJSIP/1002-00000020 for /tmp/response2-1613985073.20921_out
– Executing [19@clients:3] NoOp(“PJSIP/1002-00000020”, “FAILED”) in new stack
– Executing [19@clients:4] GotoIf(“PJSIP/1002-00000020”, “1?:continue”) in new stack

; Codec
CLI> module show like codec_opus.so
Module Description Use Count Status Support Level
codec_opus.so OPUS Coder/Decoder 0 Running extended
1 modules loaded

core show translation
(upload://aqTbZhvdPV3Rd7H7fP3rQitR70t.png)

Thank you very much in advance

excuse me, the image was not uploaded well

Translation times between formats (in microseconds) for one second of data
Source Format (Rows) Destination Format (Columns)

       ulaw  alaw   gsm  g726 g726aal2 slin8 slin12 slin16 slin24 slin32 slin44 slin48 slin96 slin192 lpc10  ilbc  g722 testlaw  opus
 ulaw     -  9150 15000 15000    15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000 15000 17250   15000 23000
 alaw  9150     - 15000 15000    15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000 15000 17250   15000 23000
  gsm 15000 15000     - 15000    15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000 15000 17250   15000 23000
 g726 15000 15000 15000     -    15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000 15000 17250   15000 23000

g726aal2 15000 15000 15000 15000 - 9000 17000 17000 17000 17000 17000 17000 17000 17000 15000 15000 17250 15000 23000
slin8 6000 6000 6000 6000 6000 - 8000 8000 8000 8000 8000 8000 8000 8000 6000 6000 8250 6000 14000
slin12 14500 14500 14500 14500 14500 8500 - 8000 8000 8000 8000 8000 8000 8000 14500 14500 14000 14500 14000
slin16 14500 14500 14500 14500 14500 8500 8500 - 8000 8000 8000 8000 8000 8000 14500 14500 6000 14500 14000
slin24 14500 14500 14500 14500 14500 8500 8500 8500 - 8000 8000 8000 8000 8000 14500 14500 14500 14500 14000
slin32 14500 14500 14500 14500 14500 8500 8500 8500 8500 - 8000 8000 8000 8000 14500 14500 14500 14500 14000
slin44 14500 14500 14500 14500 14500 8500 8500 8500 8500 8500 - 8000 8000 8000 14500 14500 14500 14500 14000
slin48 14500 14500 14500 14500 14500 8500 8500 8500 8500 8500 8500 - 8000 8000 14500 14500 14500 14500 6000
slin96 14500 14500 14500 14500 14500 8500 8500 8500 8500 8500 8500 8500 - 8000 14500 14500 14500 14500 14500
slin192 14500 14500 14500 14500 14500 8500 8500 8500 8500 8500 8500 8500 8500 - 14500 14500 14500 14500 14500
lpc10 15000 15000 15000 15000 15000 9000 17000 17000 17000 17000 17000 17000 17000 17000 - 15000 17250 15000 23000
ilbc 15000 15000 15000 15000 15000 9000 17000 17000 17000 17000 17000 17000 17000 17000 15000 - 17250 15000 23000
g722 15600 15600 15600 15600 15600 9600 17500 9000 17000 17000 17000 17000 17000 17000 15600 15600 - 15600 23000
testlaw 15000 15000 15000 15000 15000 9000 17000 17000 17000 17000 17000 17000 17000 17000 15000 15000 17250 - 23000
opus 23500 23500 23500 23500 23500 17500 17500 17500 17500 17500 17500 9000 17000 17000 23500 23500 23500 23500 -

The codec module only provides translation, it does not provide playback or recording of files. The format_ogg_opus module, as provided using the Opus support from Sangoma, provides playback of ogg files using the opus codec.

Thank you very much for the answer, I have checked the format_ogg_opus.so module and it seems to be fine.
CLI> module show like format_ogg_opus.so
Module Description Use Count Status Support Level
format_ogg_opus.so OGG/Opus audio 0 Running core
1 modules loaded

I also recharged it (unload/load)

And the contents of the file is an ogg container with opus codec?

you mean if the file has the extension .ogg?
If so, it is a .opus

No, I’m referring to the actual contents - what is in the file.

the audio is ogg_opus

If you execute the “file” application on it from the terminal, what is the output?

Hi,

I apologize. analyzing my system, one of my scripts will overwrite the content of the audios before executing the playback,

sorry for the loss of our time.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.