-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mac-videotoolbox: Add Spatial AQ option (macOS 15) #11442
base: master
Are you sure you want to change the base?
mac-videotoolbox: Add Spatial AQ option (macOS 15) #11442
Conversation
Apparently we need Xcdoe 16 for this to work, which is getting removed from the |
1eb6fd5
to
0983707
Compare
0983707
to
479ba15
Compare
I'm not a macOS specialist so might want @PatTheMav to give this a look just as a double-check, but seems trivial/simple enough so I threw an approval on it. |
479ba15
to
3eb273a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this does indeed add a requirement to use Xcode 16 (which is fine in my book), then the lower version boundaries should be changed here as well:
obs-studio/cmake/macos/compilerconfig.cmake
Lines 24 to 25 in 52a0486
set(_obs_macos_minimum_sdk 14.2) # Keep in sync with Xcode | |
set(_obs_macos_minimum_xcode 15.1) # Keep in sync with SDK |
3eb273a
to
9a1534a
Compare
9a1534a
to
08df8d1
Compare
Updated the PR with the following changes:
The choice to disable it by default for ABR/CBR was made based on an extensive analysis involving VMAF scoring and subjective checks on a large number of test clips1. In all cases the encoder produced significantly better results if spatial AQ was disabled. One of the most noticeable issues when spatial AQ is enabled is that text often gets mangled: The choice to keep it enabled for CRF was made in order to not change anything for users using target quality modes, as having spatial AQ enabled bumps the output bitrate by 50-100%, which provides a corresponding quality increase. If we were to disable it by default for CRF we would also have to bump the target quality values a bit (7-8 points) to make up for it. Footnotes
|
08df8d1
to
d305634
Compare
d305634
to
f618813
Compare
I wonder if this is what made apples H264 utterly wreck wow content all the time (so much text). i basically am forced to use software encoder cause apples mangles it to hell and back. nice find either way :o |
Description
Adds support for the new spatial aq property introduced in macOS 15: https://developer.apple.com/documentation/videotoolbox/kvtcompressionpropertykey_spatialadaptiveqplevel?language=objc
Motivation and Context
Disabling spatial aq seems to improve video quality of screen content (such as games) by a decent bit.
How Has This Been Tested?
M1 Pro with FFmpeg patch applied for direct frame-accurate comparison of AOM video game compression test corpus.
Types of changes
Checklist: