-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Adjust default knee_offset for bt2390 tonemapper #473
Adjust default knee_offset for bt2390 tonemapper #473
Conversation
@gnattu Found a similar overflow issue in |
No, previous fix only applies to p010, and actually 420p10 overflowing makes more sense than it only happens to p010 and now I have a sample to verify my theory. |
Also that particular sample is super broken. It is declaring tv range for dolby vision profile 5 which should always use full range. It seems like we need to do overwrite on input range as well because such broken files exists. It actually is not that bright and should not trigger overflow when the range is corrected: But I'm going to add safety check in 420p10 code paths just in case |
Can you check if the full range flag in the RpuHeader is not propagated to the AVFrame? I have many Profile 5 videos that are not marked as full range. |
It does not matter what the DoVi metadata says because the IPT-PQ-C2 colorspace that Dolby is using does not have limited range quantizations at all, it always uses full 10 bit 0-1023 with no reserved values, and if the metadata says otherwise it only means that file is mastered poorly and providing incorrect information. For this particular file the |
The ideal place to fix this is in AVCodec. There is no way to get the RpuHeader before decoding the DOVI NAL. But this is beyond our use case and just following this flag in the tonemap filter should good enough. |
73c0e82
to
d30bce8
Compare
Signed-off-by: nyanmisaka <[email protected]>
Instead of the range reported by the container/codec. Signed-off-by: nyanmisaka <[email protected]>
Signed-off-by: nyanmisaka <[email protected]>
Signed-off-by: nyanmisaka <[email protected]>
Signed-off-by: nyanmisaka <[email protected]>
d30bce8
to
5b25427
Compare
Changes
bl_video_full_range_flag
for DoVi videoX265_BUILD
>= 213Issues