-
Notifications
You must be signed in to change notification settings - Fork 53
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
InexactError when loading x265 video saved with lossy monochrome8
profile
#380
Comments
If you have fixes in mind for this or the other similar issue, VideoIO could do with more developers/maintainers :) |
I'm poking at it, but video encoding/decoding is a bit of a dark art. Happy to do some things, but unsure if I'll be doing enough to take that on fully. I think perhaps the issue is that the encoder wrote in the file that it was tv-scale 16-235 values, but what was saved was full range. So when it tries to convert the source range to the destination range, it subtracts e.g. 16 from 13 and tries to convert that to a UInt. I can think of a couple options that would help:
|
Looks like a problem with the logic of I think right now VideoIO assumes that users are not familiar with color spaces and that The conversion of |
Video saved with
Trying to re-load:
The text was updated successfully, but these errors were encountered: