Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Stefan_S_2
Beginner
114 Views

MFXVideoENC_Query() always returns MFX_ERR_UNSUPPORTED

Jump to solution

Dear support,

I'm trying to use the MFXVideoENC_Query function to determine the maximum possible target bitrate for different video resolutions. Unfortunately, the function always returns MFX_ERR_UNSUPPORTED no matter what structures or attributes I feed in (I tried mode 1. and mode 2.).
Plattform is Intel i3-4330 / HD 6400 / Win10 x64 / MediaSDK 2016 / H.264 HW encode / API Version 1.20 / GPU driver version June 9th 2017.
The actual encoding works properly. 

As I understand from the Reference Manual the CodecId attribute (MFX_CODEC_AVC) is the only one must have parameter in the mfxVideoParam structure in order to receive a valid result. Can you advise how to get the MFXVideoENC_Query function to work as expected ?

Thank you,
Stefan.

0 Kudos
1 Solution
Anna_B_Intel
Employee
114 Views

Hi Stefan, 

You're using wrong function. MFXVideoENC_Query is a member of MFXVideoENC class that performs the first step of encoding process – motion estimation, intraprediction and mode decision. Most probably you need to use MFXVideoENCODE_Query from MFXVideoENCODE
class that performs the entire encoding pipeline from the input video frames to the output bitstream instead.

Best wishes, 

Anna 

 

View solution in original post

2 Replies
Anna_B_Intel
Employee
115 Views

Hi Stefan, 

You're using wrong function. MFXVideoENC_Query is a member of MFXVideoENC class that performs the first step of encoding process – motion estimation, intraprediction and mode decision. Most probably you need to use MFXVideoENCODE_Query from MFXVideoENCODE
class that performs the entire encoding pipeline from the input video frames to the output bitstream instead.

Best wishes, 

Anna 

 

View solution in original post

Stefan_S_2
Beginner
114 Views

Hi Anna,

using MFXVideoENCODE_Query() instead of MFXVideoENC_Query() solved it. This was a tough one, especially since both functions are using identical parameters.

Anyway, thanks for your help,
Stefan.

Reply