-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
cudacodec::VideoWriter
: Add 10 bit YUV420 and YUV444 encoding
#3860
cudacodec::VideoWriter
: Add 10 bit YUV420 and YUV444 encoding
#3860
Conversation
cudacodec::VideoWriter
: Add 10 bit YUV420 and YUV444 encoding
Test result for my 1080:
|
Thank you again for taking the time to test this on your local machine, I know CUDA is a pain. Regarding the error the 1080 doesn't support decoding of YUV444, see the Video Support Matrix. The error message
isn't more specific because there are numerous reasons a video source isn't supported and the actual reason is not returned by the Video Codec API. Support is checked by filling out the format information, calling |
Looking at the console output, the above is confusing. Establishing the chroma format in the demuxer is redundant as this is overwritten when the video is parsed. I suggest to remove this from
In addition to my previous comment I will update the error message to include the codec and chroma format. That is the new message for CUDA_Codec/YUVFormats.Transcode/2 will be
|
bfea856
to
b1838d4
Compare
b1838d4
to
6131706
Compare
Currently
cudacodec::VideoWriter
only encodes 8 bit YUV input. This PR adds the capacity to encode 10 bit YUV input as well.Discussed in this forum post.
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.