mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #8703] Calculate output audio bitrate from output channel count #11830
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/jellyfin/jellyfin/pull/8703
State: closed
Merged: No
384kbps is unnecessarily high for stereo output with our encoders and sending data over network is expensive. This commit introduces logic for calculating output bitrate based on output channel count, like this:
That means transcoded stereo output in hls is going to be at most 256kbps, mono 128kbps, surround 640kbps, etc.
The second commit adds VBR mode calculation from the output bitrate based on expected upper-bound average bitrate for high-quality audio. This is user-configurable and disabled by default.
Continued from https://github.com/jellyfin/jellyfin/pull/8113