dev_notes to audio performance issue

This commit is contained in:
zam 2025-02-27 23:44:18 +01:00
parent 9961ace4cc
commit b68f8eac5f

69
doc/dev_notes.md Normal file
View file

@ -0,0 +1,69 @@
### Logo customizing
Should be put like https://github.com/jitsi-contrib/installers/blob/main/templates/jitsi/usr/share/jitsi-meet/static/branding.json
### video performance issues
[jitsi Helm]: (https://github.com/jitsi-contrib/jitsi-helm)
[Howto override settings-config.js]: (https://github.com/jitsi-contrib/jitsi-helm/blob/a1e029371ed519cda7abde0c616fd92e117eddef/values.yaml#L58)
[10_config]: (https://github.com/jitsi/docker-jitsi-meet/blob/9016f15add8836277201d081c2a67a96ff6c9548/web/rootfs/etc/cont-init.d/10-config#L126)
Helpful basics:
* [jitsi Helm]
* [Howto override settings-config.js]
* [10_config]
```
Issue:
eventually low performance cpu settings (clientside, VM?) keeps troubling in audio performance (delays, also interruption) //Todo: jitsi in VM?
```
- something read about: put `config.js` in `/usr/share/jitsi-meet` - in pod at `/config/config.js`
https://jitsi-club.gitlab.io/jitsi-self-hosting/en/01-deployment-howto/03-tuning/ controversial to [10_config]
- [AV1 jitsi]: https://jitsi.org/blog/av1-and-more-how-does-jitsi-meet-pick-video-codecs/
[AV1 jitsi]
Blog, 17.12.2024
Should be discussed:
```In a Jitsi conference, the client and JVB work in tandem to ensure efficient video streaming. This involves an ongoing exchange of sender and receiver video constraints.
Receiver Constraints:
Each participant sends constraints (e.g., desired resolution and priority) to the JVB for the video streams they want to receive. These constraints are influenced by the participants current layout (e.g., larger tiles for active speakers).
Sender Constraints:
JVB aggregates these constraints and communicates the required video resolutions to the senders. This ensures a participant only sends higher-resolution streams (e.g., 720p) if at least one other participant views them in a sufficiently large tile.
```
"evtentually" there are competing requests from different client-server tasks that differ in `resolution` <-> `videoQuality`
-> //Todo: Check logs, grafana?
- What about ff. custom settings, done by gec
https://repo.prod.meissa.de/meissa/c4k-jitsi/commit/f4fe85907db422206833ee95796f2b4bcec375a9
c4k-jitsi/infrastructure/web/image/resources/settings-config.js, lines 567-end:
```js
// CUSTOM ADJUSTMENTS
config.disableThirdPartyRequests = true;
config.channelLastN = 8;
config.enableLayerSuspension = true; // https://jitsi-club.gitlab.io/jitsi-self-hosting/en/01-deployment-howto/03-tuning/#recommended_enable_layer_suspension
```
- https://github.com/jitsi/jitsi-videobridge/issues/1396
eventually no memory leak, but how is cpu & memory performance of JVB pod, are there any abnormalities if audio issue occurs?
- Testserver needed
1. Are there any changes made to config, after adding ff. to `src/main/resources/jitsi/web-config-envs-cm.yaml`
```yml
VIDEOQUALITY: "480"
VIDEOQUALITY_AV1: "480" ## AV1 is primary default codec, throttling/performance described in [AV1_jitsi]
AUDIO_QUALITY_OPUS_BITRATE: "null" ##set default variable bitrate - beware, noice cancelling, auto level noise, etc., would be turned off
```
https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-configuration/#videoquality
https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-configuration/#audioquality
//Todo{low prio}: Maybe we should kick out h.264 ??
2. `config.js` in `/usr/share/jitsi-meet` -> Todo: Result?
3. Should default setting 720p `resolution` & `videoQuality` do the job ?? described as default value, eventually that's well tested on jitsi development side.
https://jitsi-club.gitlab.io/jitsi-self-hosting/en/01-deployment-howto/03-tuning/#recommended_limit_video_resolution
controversial to [AV1 jitsi]