- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page