[OpenSIPS-Users] RTPEngine - changing codec format parameters from default values when transcoding - OpenSIPS 3.1
Mark Allen
mark at allenclan.co.uk
Thu Sep 16 08:21:06 EST 2021
Just posting this to document the end result. The following line to
pass the transcoding parameters I wanted directly to the RTPEngine daemon
worked for me:
transcode-opus/48000/2/32000//stereo--0;useinbandfec--1;maxplaybackrate--16000;sprop-maxcapturerate--16000
NB - The '--' part means '=' and is there to avoid parsing errors in
RTPEngine
On Wed, 15 Sept 2021 at 10:58, Johan De Clercq <Johan at democon.be> wrote:
> No worries
>
> On Wed, Sep 15, 2021, 11:43 Mark Allen <mark at allenclan.co.uk> wrote:
>
>> Ah! Thanks Răzvan and Johan. I was thinking that the options described in
>> the OpenSIPS RTPEngine module documentation were the only ones
>> available, but I missed the key phrase...
>>
>> *When passing an option that OpenSIPS is not aware of, it will be
>> blindly sent to the rtpengine daemon to be processed.*
>>
>> ...I should be fine from here I think. Thanks for your help.
>>
>>
>> On Tue, 14 Sept 2021 at 14:29, Răzvan Crainea <razvan at opensips.org>
>> wrote:
>>
>>> I think the proper way to do it is
>>>
>>> `transcode-opus/48000/2/32000//maxplaybackrate--48000;stereo--0;useinbandfec--1;maxaveragebitrate--32000`
>>> Anyway, as Johan suggests, follow the rtpengine documentation, you will
>>> find more info there.
>>>
>>> Best regards,
>>>
>>> Răzvan Crainea
>>> OpenSIPS Core Developer
>>> http://www.opensips-solutions.com
>>>
>>> On 9/14/21 15:51, Mark Allen wrote:
>>> > Hi Răzvan
>>> >
>>> > OpenSIPS passes the commands to RTPengine as you supply them, so in
>>> > theory this should be supported. Did you try to set this up? Can
>>> you
>>> > provide any logs about this?
>>> >
>>> >
>>> > No. I'm not sure how I would specify this in the opensips.cfg
>>> > rtpengine_offer parameters. From the documentation for the
>>> > rptengine OpenSIPS module, it doesn't seem as if something like the
>>> > following is an option...
>>> >
>>> >
>>> >
>>> transcode-opus='opus/48000/2/32000//maxplaybackrate=48000;stereo=0;useinbandfec=1;maxaveragebitrate=32000'
>>>
>>> >
>>> >
>>> > ...however, if I have tried this in the code (with or without quotes)
>>> it
>>> > doesn't produce an error, either from OpenSIPS or rtpengine, but
>>> neither
>>> > does it do anything - Opus fmtp in the SDP is not changed. I guess I'm
>>> > looking for the correct OpenSIPS syntax to pass these parameters
>>> > successfully to rtpengine
>>> >
>>> >
>>> >
>>> > _______________________________________________
>>> > Users mailing list
>>> > Users at lists.opensips.org
>>> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>> >
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210916/dbc3f25c/attachment.html>
More information about the Users
mailing list