-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
New upstream version 7.0.2 #424
Conversation
uspp_filter_deps="gpl avcodec" | ||
Index: FFmpeg/libavfilter/vf_transpose_vt.c | ||
=================================================================== | ||
--- FFmpeg.orig/libavfilter/vf_transpose_vt.c |
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.
I'm going to make a version merges two of them. But this is good enough for now.
With 7.0.1+backported patches ffmpeg now correctly set the buffer attachments for videotoolbox and now the tonemap pipeline needs to be slightly modified because the old one works with some assumptions with wrong colors, and the HDR attachments is not properly removed doing tone-mapping to 10bit now. |
Is |
We need to override the |
Well interesting, |
These two fixes have been included in the backport patches. Is this possible related to the newly added SDK version check? |
The CGColorSpace generated from its provided buffer is wrong and creates an SDR colorspace. |
Is this also reproducible in the ffmpeg master branch? I saw your discussion on the mailing list and thought it was fixed. |
I identified the problem but I found that it is really funny. The whole sdk version checking drama is to get the attachments from the pixel buffer, but the attachments get from that buffer will always creates a non-HDR buffer. The very first implementation allocated another dedicated dictionary which only specifies the color primaries, the transfer function and the color matrix, which will properly create an HDR colorspace and make scale_vt happy. I need to submit this to the upstream I think. |
The good news is that, a framebuffer with properly set attachments brings slightly performance improvements over hwupload, instead of regression in earlier version. So maybe we can get rid of hwupload in jellyfin 10.10. |
Patch submitted to upstream: https://ffmpeg.org//pipermail/ffmpeg-devel/2024-August/331960.html |
defined but not used? static CFDictionaryRef vt_cv_buffer_copy_attachments(CVBufferRef buffer,
CVAttachmentMode attachment_mode) redundant braces? #if (TARGET_OS_OSX && __MAC_OS_X_VERSION_MAX_ALLOWED >= 100800) || \
(TARGET_OS_IOS && __IPHONE_OS_VERSION_MAX_ALLOWED >= 100000)
if (__builtin_available(macOS 10.8, iOS 10, *)) {
colorspace = CVImageBufferCreateColorSpaceFromAttachments(attachments);
}
#endif |
This can be used because the real cause is simpler than I originally thought.
|
The color primaries value is wrongly assigned to color transfer key and that's why the attachments copied from the pixel buffer will always create an SDR colorspace. After correcting this the original code works properly. |
|
Replaced by: https://ffmpeg.org//pipermail/ffmpeg-devel/2024-August/331962.html |
This version currently does not contain the nop |
I remembered it. Will re-add it as a separate patch since upstream will never accept it. |
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Merging to |
Vulkan patches are not yet ready.
Changes
Issues