[PR #11246] fix: unset qmin and qmax for vt #12816

Closed
opened 2026-02-07 07:02:14 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/jellyfin/jellyfin/pull/11246

State: closed
Merged: Yes


Changes

We are using bitrate-based control, but VT will target qmax first, potentially making the video bitrate much higher than the limit when the limit is very low and the video resolution is very high. Unset it so that the bitrate is close to the target.

In this case, even the -maxrate setting will have no effect on the bitrate. It only reduces the performance, but the result bitrate is still much higher than the limit.

Other encoders potentially have same issue, but most of them is already patched in some other way, like very high qmax or using CBR.

Ideally, we should perform a video resolution downscale when the bitrate limit is too low for the resolution to preserve better visual quality. However, this use case could be very edgey, such as attempting to stream 4K60 video over a 5Mbps network, so probably not worth the effort.

Issues

**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/11246 **State:** closed **Merged:** Yes --- <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** <!-- Describe your changes here in 1-5 sentences. --> We are using bitrate-based control, but VT will target qmax first, potentially making the video bitrate much higher than the limit when the limit is very low and the video resolution is very high. Unset it so that the bitrate is close to the target. In this case, even the `-maxrate` setting will have no effect on the bitrate. It only reduces the performance, but the result bitrate is still much higher than the limit. Other encoders potentially have same issue, but most of them is already patched in some other way, like very high qmax or using CBR. Ideally, we should perform a video resolution downscale when the bitrate limit is too low for the resolution to preserve better visual quality. However, this use case could be very edgey, such as attempting to stream 4K60 video over a 5Mbps network, so probably not worth the effort. **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # -->
OVERLORD added the pull-request label 2026-02-07 07:02:14 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#12816