codec Transcoding

217 views
Skip to first unread message

Linux Teki

unread,
Sep 11, 2019, 1:26:19 AM9/11/19
to meetecho-janus
Hi All,

I have a janus setup using sip plugin to make sip-webrtc audio call and I have a scenario, where my browser uses only opus codec and my asterisk using only ilbc codec. So how can we make an audio to work  in this scenrio? As I read from google we can do this by codec trans-coding(codec conversion) but I am not sure where and how I can implement this. 

Can someone help me out on this please?


Regards,
Aravind

Mirko Brankovic

unread,
Sep 11, 2019, 2:07:25 AM9/11/19
to meetecho-janus
By libc you are referring to AAC?
I'm sure Astsrisk is supporting Opus and high likely able to transcode from Opus to AAC

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meetecho-janus/b4725676-a734-42b0-a48f-79f8b28bb72e%40googlegroups.com.

Linux Teki

unread,
Sep 11, 2019, 3:09:12 AM9/11/19
to meetecho-janus

Hi Mirko, 

I am not sure what AAC is, however i am using iLBC audio codec on my asterisk server. Also, i didn't find AAC codec in my asterisk server.

I'm sure Astsrisk is supporting Opus and high likely able to transcode from Opus to AAC?

yeah, the latest version of asterisk is supporting opus, but i am using a bit old version of asterisk(1.2v) in which there was no opus support. Although there is g711 codec on both ends,  due to bandwidth constraint i'm not able to use that. so i'm opted for iLBC.


Regards,
Arvind

Mirko Brankovic

unread,
Sep 11, 2019, 4:34:28 AM9/11/19
to Linux Teki, meetecho-janus
If you are worried about bandwidth then it is best to use Opus.
So when comparing:
iLBC  - Fixed bitrate (15.2 kbit/s for 20 ms frames, 13.33 kbit/s for 30 ms frames)
G729 - Fixed bit rate (8 kbit/s 10 ms frames)

I don't see G729 in SDP offer from Chrome, so not sure if it supports it at all, but asterisk and freeswitch surely can,
But opus can go even twice lower than iLBC in narrowband mode.

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.


--
Regards,
Mirko

Lorenzo Miniero

unread,
Sep 11, 2019, 4:43:17 AM9/11/19
to meetecho-janus
We don't do transcoding in the SIP plugin and never will. Either add Opus to your super-old Asterisk version (we have an old patch for that: https://github.com/meetecho/asterisk-opus ) or have the Opus/iLBC transcoding happen somewhere else.

Lorenzo


Il giorno mercoledì 11 settembre 2019 10:34:28 UTC+2, Mirko Brankovic ha scritto:
If you are worried about bandwidth then it is best to use Opus.
So when comparing:
iLBC  - Fixed bitrate (15.2 kbit/s for 20 ms frames, 13.33 kbit/s for 30 ms frames)
G729 - Fixed bit rate (8 kbit/s 10 ms frames)

I don't see G729 in SDP offer from Chrome, so not sure if it supports it at all, but asterisk and freeswitch surely can,
But opus can go even twice lower than iLBC in narrowband mode.

On Wed, Sep 11, 2019 at 9:09 AM Linux Teki <aravin...@gmail.com> wrote:

Hi Mirko, 

I am not sure what AAC is, however i am using iLBC audio codec on my asterisk server. Also, i didn't find AAC codec in my asterisk server.

I'm sure Astsrisk is supporting Opus and high likely able to transcode from Opus to AAC?

yeah, the latest version of asterisk is supporting opus, but i am using a bit old version of asterisk(1.2v) in which there was no opus support. Although there is g711 codec on both ends,  due to bandwidth constraint i'm not able to use that. so i'm opted for iLBC.


Regards,
Arvind

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janus+unsubscribe@googlegroups.com.


--
Regards,
Mirko

Alexandre GOUAILLARD

unread,
Sep 11, 2019, 5:02:37 AM9/11/19
to Lorenzo Miniero, meetecho-janus
G729 is not supported by chrome and they publicly said they would not support it (even though it is now public domain).

On Wed, Sep 11, 2019 at 10:43 AM Lorenzo Miniero <lmin...@gmail.com> wrote:
We don't do transcoding in the SIP plugin and never will. Either add Opus to your super-old Asterisk version (we have an old patch for that: https://github.com/meetecho/asterisk-opus ) or have the Opus/iLBC transcoding happen somewhere else.

Lorenzo


Il giorno mercoledì 11 settembre 2019 10:34:28 UTC+2, Mirko Brankovic ha scritto:
If you are worried about bandwidth then it is best to use Opus.
So when comparing:
iLBC  - Fixed bitrate (15.2 kbit/s for 20 ms frames, 13.33 kbit/s for 30 ms frames)
G729 - Fixed bit rate (8 kbit/s 10 ms frames)

I don't see G729 in SDP offer from Chrome, so not sure if it supports it at all, but asterisk and freeswitch surely can,
But opus can go even twice lower than iLBC in narrowband mode.

On Wed, Sep 11, 2019 at 9:09 AM Linux Teki <aravin...@gmail.com> wrote:

Hi Mirko, 

I am not sure what AAC is, however i am using iLBC audio codec on my asterisk server. Also, i didn't find AAC codec in my asterisk server.

I'm sure Astsrisk is supporting Opus and high likely able to transcode from Opus to AAC?

yeah, the latest version of asterisk is supporting opus, but i am using a bit old version of asterisk(1.2v) in which there was no opus support. Although there is g711 codec on both ends,  due to bandwidth constraint i'm not able to use that. so i'm opted for iLBC.


Regards,
Arvind

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.


--
Regards,
Mirko

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meetecho-janus/98e20609-ff3e-48f6-a3b2-559dacc391df%40googlegroups.com.


--
Alex. Gouaillard, PhD, PhD, MBA
------------------------------------------------------------------------------------
President - CoSMo Software Consulting, Singapore
------------------------------------------------------------------------------------

Mirko Brankovic

unread,
Sep 11, 2019, 8:51:20 AM9/11/19
to meetecho-janus
Yeah, silicone valley wars :D



--
Regards,
Mirko
Reply all
Reply to author
Forward
0 new messages