Skip to content
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

Encode example does not work with MediaSDK API (1.35) #2

Open
lostmsu opened this issue Nov 7, 2023 · 2 comments
Open

Encode example does not work with MediaSDK API (1.35) #2

lostmsu opened this issue Nov 7, 2023 · 2 comments

Comments

@lostmsu
Copy link

lostmsu commented Nov 7, 2023

I changed the desired API version to 1.35 and it seemed to create a session.

I found out in 1.35 you can't just pass empty MfxVideoParams to MFXVideoENCODE_Query - it returns MfxStatus::NullPtr.

This change in query appears to fix that issue:
image

@FallingSnow
Copy link
Owner

FallingSnow commented Nov 12, 2023

Hmm, I've haven't tried too hard to get the "legacy" version working. Was changing that all it took to get it working?

@lostmsu
Copy link
Author

lostmsu commented Nov 12, 2023

Sorry, also needed to remove the explicit API version filter from the library code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants