Community
cancel
Showing results for 
Search instead for 
Did you mean: 
carial_2002
Beginner
51 Views

function MFXVideoENCODE_Init returned error

When I used MFXVideoENCODE_Init to initialize MFXEncoder, it returned error code (-17). I used the following parameter settings (mfxVideoParam):

mfx.FrameInfo:

FourCC: 842094158
Width: 1280
Height: 1440
CropX: 0
CropY: 0
CropW: 1280
CropH: 1440
FrameRateExtN: 30
FrameRateExtD: 1
AspectRatioW: 0
Aspect RatioH: 0
PicStruct: 1
ChromaFormat: 1

CodecId: 541283905
CodecProfile: 0
CodecLevel: 0
NumThread: 0
TargetUsage: 4
GopPicSize: 30
GopRefDist: 1
RateControlMethod: 1
TargetKbps: 3651

The stange thing is that when I changed the frame size to 640 (width) by 480 (height) or 1280 (width) by 720 (height), the function return value is MFX_ERR_NONE (0). I want to know if there is any limitation on image size? Can we use any image size as long as it can be divided by 16? Thanks.
0 Kudos
4 Replies
Nina_K_Intel
Employee
51 Views

Hello,

Can you please provide versions of Media SDK and graphics driver you are seeing the issue with? (I assume you are running on a SandyBridge based system)

Thanks,
Nina
Anthony_P_Intel
Employee
51 Views

Hi,
For encoding, I believe the maximum limits on image size are width=1920 and height=1200.

(see other thread here: http://software.intel.com/en-us/forums/showthread.php?t=83570&o=d&s=lr )

This would mean the height value of 1440 is beyond the capabilities of encoding.

-Tony
Nina_K_Intel
Employee
51 Views

That's true. But the expected behavior of Media SDK is to fall back to software implementation for scenarios unsupported by hardware, so something is definitely wrong here if an error code is returned (must be a warning). We will check on the latest SandyBridge driver. If you are using a specific version please let us know.

Thanks,
Nina
Nina_K_Intel
Employee
51 Views

Confirming that appropriate code - warning MFX_WRN_PARTIAL_ACCELERATION - is return by HW MSDK from driver15.22.52.2559 in this case.
Reply