[jitsi-dev] Force Stereo and High Bitrate in Jitsi Meet?


#1

Hi!

Apologies if this isn't the right list to post this question.

I have an installation of jitsi-meet on Ubuntu, but I'm struggling to find
a solution to force stereo audio.

So far I've tried adding combinations of URL parameters, similar to how
apprtc handles it (e.g. https://apprtc.appspot.com/params.html) but I'm
still getting mono. Is it possible to pass similar URL parameters to
jitsi.si?

My use case is a stereo music signal that I am trying to send over WebRTC
at the highest possible bitrate, so I'm fine with specifying a minimum
bitrate in the Opus encoder (not sure if this is possible).

Any hints on how I could go about this? Is there a place to change the
default Opus settings used? I'm guessing it's in the videobridge, but for
the life of me can't figure out where or what to change. Thanks for any
pointers you can spare. I'm tearing my hair out trying to get this working!


#2

Hi Christian,

Hi!

Apologies if this isn't the right list to post this question.

This is the right place!

I have an installation of jitsi-meet on Ubuntu, but I'm struggling to find a solution to force stereo audio.

So far I've tried adding combinations of URL parameters, similar to how apprtc handles it (e.g. https://apprtc.appspot.com/params.html) but I'm still getting mono. Is it possible to pass similar URL parameters to jitsi.si <http://jitsi.si>?

My use case is a stereo music signal that I am trying to send over WebRTC at the highest possible bitrate, so I'm fine with specifying a minimum bitrate in the Opus encoder (not sure if this is possible).

Any hints on how I could go about this? Is there a place to change the default Opus settings used? I'm guessing it's in the videobridge, but for the life of me can't figure out where or what to change. Thanks for any pointers you can spare. I'm tearing my hair out trying to get this working!

You can enable it by adding "#config.stereo=true" to the URL, or adding "stereo: true" in config.js. Note that right now this option does NOT affect the p2p mode, so make sure you're connected through the bridge (set config.p2p.enabled=false). Feel free to open an issue on github if you want to use stereo with p2p.

I don't think we provide a way to set any bitrate parameters for audio, but WebRTC seems to automatically increase it to ~70kbps when stereo is enabled.

I'm curious to hear what your experience with stereo will be.

Regards,
Boris

···

On 28/01/2018 18:52, Christian Grewell wrote:


#3

Awesome, thanks Boris! I'll make these changes and even post a example .wav
file comparing the quality. I'll gladly open an issue on Github as well,
maybe I can even try and solve it :slight_smile:

···

On Mon, Jan 29, 2018 at 2:29 PM, Boris Grozev <boris@jitsi.org> wrote:

Hi Christian,

On 28/01/2018 18:52, Christian Grewell wrote:

Hi!

Apologies if this isn't the right list to post this question.

This is the right place!

I have an installation of jitsi-meet on Ubuntu, but I'm struggling to
find a solution to force stereo audio.

So far I've tried adding combinations of URL parameters, similar to how
apprtc handles it (e.g. https://apprtc.appspot.com/params.html) but I'm
still getting mono. Is it possible to pass similar URL parameters to
jitsi.si <http://jitsi.si>?

My use case is a stereo music signal that I am trying to send over WebRTC
at the highest possible bitrate, so I'm fine with specifying a minimum
bitrate in the Opus encoder (not sure if this is possible).

Any hints on how I could go about this? Is there a place to change the
default Opus settings used? I'm guessing it's in the videobridge, but for
the life of me can't figure out where or what to change. Thanks for any
pointers you can spare. I'm tearing my hair out trying to get this working!

You can enable it by adding "#config.stereo=true" to the URL, or adding
"stereo: true" in config.js. Note that right now this option does NOT
affect the p2p mode, so make sure you're connected through the bridge (set
config.p2p.enabled=false). Feel free to open an issue on github if you want
to use stereo with p2p.

I don't think we provide a way to set any bitrate parameters for audio,
but WebRTC seems to automatically increase it to ~70kbps when stereo is
enabled.

I'm curious to hear what your experience with stereo will be.

Regards,
Boris

--

Christian Grewell | 葛瑞田

Assistant Arts Professor, Interactive Media + Business

Partner, Program on Creativity + Innovation

Associate Director, Program Management

http://creativityandinnovation.shanghai.nyu.edu/

Room 950 / 1025
1555 Century Ave., Pudong
Shanghai, China 200122
Phone: +86 021 2059 5890
Cell: +86 186 1656 8844

shanghai.nyu.edu


#4

Hey Christian,

It's probably not stereo or codec bitrate that's trashing your music audio. It's probably the speech-specific processing. I've added these to my config.js and get mp3 quality music:

    stereo: true,
    disableAP: true,
    disableAEC: true,
    disableNS: true,
    disableAGC: true,
    disableHPF: true,

You can probably leave auto gain control (AGC) to false for your application. I had some weird issue with a particular mic that was fixed with that line. You'll want to keep in mind that when processing is off, you'll probably get some intense echo if people are talking over the music. I turned on push-to-talk to mitigate this.

John

···

________________________________
From: dev <dev-bounces@jitsi.org> on behalf of Christian Grewell <christian@nyu.edu>
Sent: Sunday, January 28, 2018 11:02 PM
To: Boris Grozev
Cc: Jitsi Developers
Subject: Re: [jitsi-dev] Force Stereo and High Bitrate in Jitsi Meet?

Awesome, thanks Boris! I'll make these changes and even post a example .wav file comparing the quality. I'll gladly open an issue on Github as well, maybe I can even try and solve it :slight_smile:

On Mon, Jan 29, 2018 at 2:29 PM, Boris Grozev <boris@jitsi.org<mailto:boris@jitsi.org>> wrote:
Hi Christian,

On 28/01/2018 18:52, Christian Grewell wrote:
Hi!

Apologies if this isn't the right list to post this question.

This is the right place!

I have an installation of jitsi-meet on Ubuntu, but I'm struggling to find a solution to force stereo audio.

So far I've tried adding combinations of URL parameters, similar to how apprtc handles it (e.g. https://apprtc.appspot.com/params.html) but I'm still getting mono. Is it possible to pass similar URL parameters to jitsi.si<http://jitsi.si> <http://jitsi.si>?

My use case is a stereo music signal that I am trying to send over WebRTC at the highest possible bitrate, so I'm fine with specifying a minimum bitrate in the Opus encoder (not sure if this is possible).

Any hints on how I could go about this? Is there a place to change the default Opus settings used? I'm guessing it's in the videobridge, but for the life of me can't figure out where or what to change. Thanks for any pointers you can spare. I'm tearing my hair out trying to get this working!

You can enable it by adding "#config.stereo=true" to the URL, or adding "stereo: true" in config.js. Note that right now this option does NOT affect the p2p mode, so make sure you're connected through the bridge (set config.p2p.enabled=false). Feel free to open an issue on github if you want to use stereo with p2p.

I don't think we provide a way to set any bitrate parameters for audio, but WebRTC seems to automatically increase it to ~70kbps when stereo is enabled.

I'm curious to hear what your experience with stereo will be.

Regards,
Boris

--
[https://docs.google.com/a/nyu.edu/uc?id=0ByAuFpDdXkvES3RfeHlWcXM5dkk&export=download]

Christian Grewell | 葛瑞田

Assistant Arts Professor, Interactive Media + Business

Partner, Program on Creativity + Innovation

Associate Director, Program Management

http://creativityandinnovation.shanghai.nyu.edu/

Room 950 / 1025
1555 Century Ave., Pudong
Shanghai, China 200122
Phone: +86 021 2059 5890
Cell: +86 186 1656 8844

shanghai.nyu.edu<http://shanghai.nyu.edu/>

You're receiving this message because you're a member of the john@goor.us<https://outlook.office365.com/owa/john@goor.us/groupsubscription.ashx?realm=goor.us&source=EscalatedMessage&action=conversations> group. If you don't want to receive any messages or events from this group, stop following it in your inbox<https://outlook.office365.com/owa/john@goor.us/groupsubscription.ashx?realm=goor.us&source=EscalatedMessage&action=unsubscribe>.

View group conversations<https://outlook.office365.com/owa/john@goor.us/groupsubscription.ashx?realm=goor.us&source=EscalatedMessage&action=conversations> | View group files<https://outlook.office365.com/owa/john@goor.us/groupsubscription.ashx?realm=goor.us&source=EscalatedMessage&action=files>