[PR #11675] Fix quality parameter for vaapi_mjpeg #12969

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

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

State: closed
Merged: Yes


Hardware encoders have different expectations about quality input. VAAPI's mjpeg encoder excepts JPEG quality divided by QP2LAMBDA as input.

Changes

Maps the ffmpeg qscale to the QP2LAMBDA divided mjpeg quality value that vaapi_mjpeg expects.

Issues

See issue comment: https://github.com/jellyfin/jellyfin/issues/11556#issuecomment-2113327889

**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/11675 **State:** closed **Merged:** Yes --- Hardware encoders have different expectations about quality input. VAAPI's mjpeg encoder excepts JPEG quality divided by QP2LAMBDA as input. <!-- 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. --> Maps the ffmpeg qscale to the QP2LAMBDA divided mjpeg quality value that vaapi_mjpeg expects. **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # --> See issue comment: https://github.com/jellyfin/jellyfin/issues/11556#issuecomment-2113327889
OVERLORD added the pull-request label 2026-02-07 07:04:55 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#12969