[jitsi-users] Jitsi Meet H264 Encodings, VIdeo bitrate and Custom frame rate


#1

Hi,

Anyone can point me where one can force Video encoding, Video bitrate, and custom frame rate?. or at least a hint where to look and search.

We have dev system running all built-in apps as okay ( youtube live stream, sip calling, youtube share as well as desktop share in both chrome and firefox).

The only concern is bandwidth per participant. It goes up to 1.5Mbps per stream.

Current settings which have some affect:
startBitrate: "128",
resolution: 360,

Settings which have no affect:
framerate: 15,
maxFps: "15",
minFrameRate: 15,
maxFrameRate: 20,

Seems like videobridge is locked to 30fps and VP8 video encoding

cat /var/log/jitsi/jvb.log

<payload-type id="100" name="VP8" clockrate="90000">
<payload-type id="107" name="h264" clockrate="90000" channels="1">

Thanks,
Ivan

Ivan Antic
ITAF

Frans Van Ryhovelaan 325 - 9000 Gent
Leuvensesteenweg 677 - 1930 Zaventem
Haifastraat 6 - 2030 Antwerpen
Wingenesteenweg 19C - 8750 Zwevezele
Durmitorska 1 - 11000 Beograd (Serbia)
Jovana Subotica 1 - 21000 Novi Sad (Serbia)

T +32 9 277 9000
F +32 9 234 15 56
ivan.antic@itaf.eu

This message and any files attached to it are legally privileged and intended for the exclusive use of the individual(s) or organisations to whom they are addressed. If you are not the intended recipient, please notify the sender by replying to this message and delete the message any any attachments from your system. Any unauthorised use or disclosure of the contents of this message is strictly prohibited and may be unlawful.

Although ITAF has taken reasonable precautions to ensure no viruses are present in this email, ITAF cannot accept responsibility for any loss or damage arising from the use of this email or attachments.


#2

Hi Ivan,

Hi,

Anyone can point me where one can force Video encoding, Video bitrate, and custom frame rate?. or at least a hint where to look and search.

You’ll have to hack your way around lib-jitsi-meet, as these are not configurable.

We have dev system running all built-in apps as okay ( youtube live stream, sip calling, youtube share as well as desktop share in both chrome and firefox).

The only concern is bandwidth per participant. It goes up to 1.5Mbps per stream.

This is intentional and cannot be changed currently.

Current settings which have some affect:
startBitrate: "128",
resolution: 360,

Yes, these are settings for a given participant.

Settings which have no affect:
framerate: 15,
maxFps: "15",
minFrameRate: 15,
maxFrameRate: 20,

Those are not actual configuration options.

Seems like videobridge is locked to 30fps and VP8 video encoding

That’s correct. H264 doesn’t work quite well yet (can you confirm George?).

Cheers,

···

On May 23, 2017, at 14:42, Ivan Antic <ivan.antic@itaf.eu> wrote:

--
Saúl


#3

Thank you for the hints!

Nice I got it working 15fps on camera/video switch for starters.

...

function switchVideo() { // eslint-disable-line no-unused-vars
    isVideo = !isVideo;
    if (localTracks[1]) {
        localTracks[1].dispose();
        localTracks.pop();
    }
    JitsiMeetJS.createLocalTracks(
            { devices: isVideo ? [ 'video' ] : [ 'desktop' ],maxFps:15 })
...

it's a custom web interface building for jitsi-videobridge

Thanks,
Ivan

Ivan Antic
ITAF

Frans Van Ryhovelaan 325 - 9000 Gent
Leuvensesteenweg 677 - 1930 Zaventem
Haifastraat 6 - 2030 Antwerpen
Wingenesteenweg 19C - 8750 Zwevezele
Durmitorska 1 - 11000 Beograd (Serbia)
Jovana Subotica 1 - 21000 Novi Sad (Serbia)

T +32 9 277 9000
F +32 9 234 15 56
ivan.antic@itaf.eu

···

----- Original Message -----
From: "Saúl Ibarra Corretgé" <scorretge@atlassian.com>
To: "users" <users@jitsi.org>
Sent: Monday, May 29, 2017 10:51:14 AM
Subject: Re: [jitsi-users] Jitsi Meet H264 Encodings, VIdeo bitrate and Custom frame rate

Hi Ivan,

On May 23, 2017, at 14:42, Ivan Antic <ivan.antic@itaf.eu> wrote:

Hi,

Anyone can point me where one can force Video encoding, Video bitrate, and custom frame rate?. or at least a hint where to look and search.

You’ll have to hack your way around lib-jitsi-meet, as these are not configurable.

We have dev system running all built-in apps as okay ( youtube live stream, sip calling, youtube share as well as desktop share in both chrome and firefox).

The only concern is bandwidth per participant. It goes up to 1.5Mbps per stream.

This is intentional and cannot be changed currently.

Current settings which have some affect:
startBitrate: "128",
resolution: 360,

Yes, these are settings for a given participant.

Settings which have no affect:
framerate: 15,
maxFps: "15",
minFrameRate: 15,
maxFrameRate: 20,

Those are not actual configuration options.

Seems like videobridge is locked to 30fps and VP8 video encoding

That’s correct. H264 doesn’t work quite well yet (can you confirm George?).

Cheers,

--
Saúl

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

This message and any files attached to it are legally privileged and intended for the exclusive use of the individual(s) or organisations to whom they are addressed. If you are not the intended recipient, please notify the sender by replying to this message and delete the message any any attachments from your system. Any unauthorised use or disclosure of the contents of this message is strictly prohibited and may be unlawful.

Although ITAF has taken reasonable precautions to ensure no viruses are present in this email, ITAF cannot accept responsibility for any loss or damage arising from the use of this email or attachments.


#4

Hi Saúl,

By edditing: /usr/share/jitsi-meet/libs# cat app.bundle.min.js

and adding maxFPs on line:

JitsiMeetJS.createLocalTracks({maxFps:15,devices:e.devices.slice(0),resolution:config.resolution,cameraDeviceId:"undefined"==typeof e.cameraDeviceId||null===e.cameraDeviceId?APP.settings.getCameraDeviceId():e.cameraDeviceId,micDeviceI ....

This will manage 15fps local tracks for regular, meet.jit.si interface like, no API no custom libs nor custom GUI.
Now, there is 154Kbps for 640x480 or 640x360 which is huge improvement.

next step would be to set 15fps for remote tracks.

check the attachment

Thanks,
Ivan

Ivan Antic
ITAF

Frans Van Ryhovelaan 325 - 9000 Gent
Leuvensesteenweg 677 - 1930 Zaventem
Haifastraat 6 - 2030 Antwerpen
Wingenesteenweg 19C - 8750 Zwevezele
Durmitorska 1 - 11000 Beograd (Serbia)
Jovana Subotica 1 - 21000 Novi Sad (Serbia)

T +32 9 277 9000
F +32 9 234 15 56
ivan.antic@itaf.eu

···

----- Original Message -----
From: "Ivan Antic" <ivan.antic@itaf.eu>
To: "users" <users@jitsi.org>
Sent: Tuesday, May 30, 2017 6:02:25 PM
Subject: Re: [jitsi-users] Jitsi Meet H264 Encodings, VIdeo bitrate and Custom frame rate

Thank you for the hints!

Nice I got it working 15fps on camera/video switch for starters.

...

function switchVideo() { // eslint-disable-line no-unused-vars
    isVideo = !isVideo;
    if (localTracks[1]) {
        localTracks[1].dispose();
        localTracks.pop();
    }
    JitsiMeetJS.createLocalTracks(
            { devices: isVideo ? [ 'video' ] : [ 'desktop' ],maxFps:15 })
...

it's a custom web interface building for jitsi-videobridge

Thanks,
Ivan

Ivan Antic
ITAF

Frans Van Ryhovelaan 325 - 9000 Gent
Leuvensesteenweg 677 - 1930 Zaventem
Haifastraat 6 - 2030 Antwerpen
Wingenesteenweg 19C - 8750 Zwevezele
Durmitorska 1 - 11000 Beograd (Serbia)
Jovana Subotica 1 - 21000 Novi Sad (Serbia)

T +32 9 277 9000
F +32 9 234 15 56
ivan.antic@itaf.eu

Ivan Antic
ITAF

Frans Van Ryhovelaan 325 - 9000 Gent
Leuvensesteenweg 677 - 1930 Zaventem
Haifastraat 6 - 2030 Antwerpen
Wingenesteenweg 19C - 8750 Zwevezele
Durmitorska 1 - 11000 Beograd (Serbia)
Jovana Subotica 1 - 21000 Novi Sad (Serbia)

T +32 9 277 9000
F +32 9 234 15 56
ivan.antic@itaf.eu

----- Original Message -----
From: "Saúl Ibarra Corretgé" <scorretge@atlassian.com>
To: "users" <users@jitsi.org>
Sent: Monday, May 29, 2017 10:51:14 AM
Subject: Re: [jitsi-users] Jitsi Meet H264 Encodings, VIdeo bitrate and Custom frame rate

Hi Ivan,

On May 23, 2017, at 14:42, Ivan Antic <ivan.antic@itaf.eu> wrote:

Hi,

Anyone can point me where one can force Video encoding, Video bitrate, and custom frame rate?. or at least a hint where to look and search.

You’ll have to hack your way around lib-jitsi-meet, as these are not configurable.

We have dev system running all built-in apps as okay ( youtube live stream, sip calling, youtube share as well as desktop share in both chrome and firefox).

The only concern is bandwidth per participant. It goes up to 1.5Mbps per stream.

This is intentional and cannot be changed currently.

Current settings which have some affect:
startBitrate: "128",
resolution: 360,

Yes, these are settings for a given participant.

Settings which have no affect:
framerate: 15,
maxFps: "15",
minFrameRate: 15,
maxFrameRate: 20,

Those are not actual configuration options.

Seems like videobridge is locked to 30fps and VP8 video encoding

That’s correct. H264 doesn’t work quite well yet (can you confirm George?).

Cheers,

--
Saúl

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

This message and any files attached to it are legally privileged and intended for the exclusive use of the individual(s) or organisations to whom they are addressed. If you are not the intended recipient, please notify the sender by replying to this message and delete the message any any attachments from your system. Any unauthorised use or disclosure of the contents of this message is strictly prohibited and may be unlawful.

Although ITAF has taken reasonable precautions to ensure no viruses are present in this email, ITAF cannot accept responsibility for any loss or damage arising from the use of this email or attachments.

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

This message and any files attached to it are legally privileged and intended for the exclusive use of the individual(s) or organisations to whom they are addressed. If you are not the intended recipient, please notify the sender by replying to this message and delete the message any any attachments from your system. Any unauthorised use or disclosure of the contents of this message is strictly prohibited and may be unlawful.

Although ITAF has taken reasonable precautions to ensure no viruses are present in this email, ITAF cannot accept responsibility for any loss or damage arising from the use of this email or attachments.

This message and any files attached to it are legally privileged and intended for the exclusive use of the individual(s) or organisations to whom they are addressed. If you are not the intended recipient, please notify the sender by replying to this message and delete the message any any attachments from your system. Any unauthorised use or disclosure of the contents of this message is strictly prohibited and may be unlawful.

Although ITAF has taken reasonable precautions to ensure no viruses are present in this email, ITAF cannot accept responsibility for any loss or damage arising from the use of this email or attachments.


#5

Hi Saúl,

By edditing: /usr/share/jitsi-meet/libs# cat app.bundle.min.js

and adding maxFPs on line:

JitsiMeetJS.createLocalTracks({maxFps:15,devices:e.devices.slice(0),resolution:config.resolution,cameraDeviceId:"undefined"==typeof e.cameraDeviceId||null===e.cameraDeviceId?APP.settings.getCameraDeviceId():e.cameraDeviceId,micDeviceI ....

This will manage 15fps local tracks for regular, meet.jit.si interface like, no API no custom libs nor custom GUI.
Now, there is 154Kbps for 640x480 or 640x360 which is huge improvement.

I’m glad it works for you! I believe we have plans to consider adding some stepped bandwidth saving mode, but nothing specific for the moment.

next step would be to set 15fps for remote tracks.

You shouldn’t need to do anything, if all participants load that bundle, they’d be opening their camera at 15fps so the bridge cannot invent new frames, it will send what it receives.

check the attachment

Oh, rounded avatars! I just died a little :stuck_out_tongue:

···

On May 31, 2017, at 11:05, Ivan Antic <ivan.antic@itaf.eu> wrote:

Thanks,
Ivan

Ivan Antic
ITAF

Frans Van Ryhovelaan 325 - 9000 Gent
Leuvensesteenweg 677 - 1930 Zaventem
Haifastraat 6 - 2030 Antwerpen
Wingenesteenweg 19C - 8750 Zwevezele
Durmitorska 1 - 11000 Beograd (Serbia)
Jovana Subotica 1 - 21000 Novi Sad (Serbia)

T +32 9 277 9000
F +32 9 234 15 56
ivan.antic@itaf.eu

----- Original Message -----
From: "Ivan Antic" <ivan.antic@itaf.eu>
To: "users" <users@jitsi.org>
Sent: Tuesday, May 30, 2017 6:02:25 PM
Subject: Re: [jitsi-users] Jitsi Meet H264 Encodings, VIdeo bitrate and Custom frame rate

Thank you for the hints!

Nice I got it working 15fps on camera/video switch for starters.

...

function switchVideo() { // eslint-disable-line no-unused-vars
   isVideo = !isVideo;
   if (localTracks[1]) {
       localTracks[1].dispose();
       localTracks.pop();
   }
   JitsiMeetJS.createLocalTracks(
           { devices: isVideo ? [ 'video' ] : [ 'desktop' ],maxFps:15 })
...

it's a custom web interface building for jitsi-videobridge

Thanks,
Ivan

Ivan Antic
ITAF

Frans Van Ryhovelaan 325 - 9000 Gent
Leuvensesteenweg 677 - 1930 Zaventem
Haifastraat 6 - 2030 Antwerpen
Wingenesteenweg 19C - 8750 Zwevezele
Durmitorska 1 - 11000 Beograd (Serbia)
Jovana Subotica 1 - 21000 Novi Sad (Serbia)

T +32 9 277 9000
F +32 9 234 15 56
ivan.antic@itaf.eu

Ivan Antic
ITAF

Frans Van Ryhovelaan 325 - 9000 Gent
Leuvensesteenweg 677 - 1930 Zaventem
Haifastraat 6 - 2030 Antwerpen
Wingenesteenweg 19C - 8750 Zwevezele
Durmitorska 1 - 11000 Beograd (Serbia)
Jovana Subotica 1 - 21000 Novi Sad (Serbia)

T +32 9 277 9000
F +32 9 234 15 56
ivan.antic@itaf.eu

----- Original Message -----
From: "Saúl Ibarra Corretgé" <scorretge@atlassian.com>
To: "users" <users@jitsi.org>
Sent: Monday, May 29, 2017 10:51:14 AM
Subject: Re: [jitsi-users] Jitsi Meet H264 Encodings, VIdeo bitrate and Custom frame rate

Hi Ivan,

On May 23, 2017, at 14:42, Ivan Antic <ivan.antic@itaf.eu> wrote:

Hi,

Anyone can point me where one can force Video encoding, Video bitrate, and custom frame rate?. or at least a hint where to look and search.

You’ll have to hack your way around lib-jitsi-meet, as these are not configurable.

We have dev system running all built-in apps as okay ( youtube live stream, sip calling, youtube share as well as desktop share in both chrome and firefox).

The only concern is bandwidth per participant. It goes up to 1.5Mbps per stream.

This is intentional and cannot be changed currently.

Current settings which have some affect:
startBitrate: "128",
resolution: 360,

Yes, these are settings for a given participant.

Settings which have no affect:
framerate: 15,
maxFps: "15",
minFrameRate: 15,
maxFrameRate: 20,

Those are not actual configuration options.

Seems like videobridge is locked to 30fps and VP8 video encoding

That’s correct. H264 doesn’t work quite well yet (can you confirm George?).

Cheers,

--
Saúl

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

This message and any files attached to it are legally privileged and intended for the exclusive use of the individual(s) or organisations to whom they are addressed. If you are not the intended recipient, please notify the sender by replying to this message and delete the message any any attachments from your system. Any unauthorised use or disclosure of the contents of this message is strictly prohibited and may be unlawful.

Although ITAF has taken reasonable precautions to ensure no viruses are present in this email, ITAF cannot accept responsibility for any loss or damage arising from the use of this email or attachments.

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

This message and any files attached to it are legally privileged and intended for the exclusive use of the individual(s) or organisations to whom they are addressed. If you are not the intended recipient, please notify the sender by replying to this message and delete the message any any attachments from your system. Any unauthorised use or disclosure of the contents of this message is strictly prohibited and may be unlawful.

Although ITAF has taken reasonable precautions to ensure no viruses are present in this email, ITAF cannot accept responsibility for any loss or damage arising from the use of this email or attachments.

This message and any files attached to it are legally privileged and intended for the exclusive use of the individual(s) or organisations to whom they are addressed. If you are not the intended recipient, please notify the sender by replying to this message and delete the message any any attachments from your system. Any unauthorised use or disclosure of the contents of this message is strictly prohibited and may be unlawful.

Although ITAF has taken reasonable precautions to ensure no viruses are present in this email, ITAF cannot accept responsibility for any loss or damage arising from the use of this email or attachments.

<Screenshot from 2017-05-31 10-44-44_15FPS.png>_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

--
Saúl