Skip to content

QSV Hardware Encoding - HardwareFramesContext.Initialize() Error #150

Answered by Maizer
Maizer asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, just a quick update: I managed to figure out the issue I mentioned earlier.
It turns out the encCodec.HardwareConfigs method,doesn't actually retrieve the valid pixel formats supported by a specific hardware instance. These need to be fetched using the av_hwdevice_get_hwframe_constraints function.
I've pushed a PR with a fix for this. Please take a look when you get a chance.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@asticode
Comment options

Answer selected by Maizer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants