Community
cancel
Showing results for 
Search instead for 
Did you mean: 
81 Views

MFXEncodeFrameAsync fails with MFX_ERR_GPU_HANG

Hi,

Currently I'm working for an application, where it does both decoding as well as encoding. Decoding is working fine.

In Encoding, after intialization, querySurfaces and encoderInit is done.

I'm trying to call "MFXVideoENCODE_EncodeFrameAsync" to encode each frame.

For for the first time, I observed the SyncPoint holds appropriate value which acts as an out-parameter for "EncodeFrameAsync" API.

After that in-order to Synchronize called ("MFXVideoCORE_SyncOperation API), to wait until encoded frame is ready, where I observed the status as "MFX_ERR_GPU_HANG(-21)" .

For the sub-sequent frames I observed the status as "MFX_ERR_GPU_HANG(-21)" from "EncodeFrameAsync" API. So I'm unable to perform sync operation.

Please help me to resolve this issue.

Details :

CodecType : MPEG2

Enviroment : Linux

Media SDK version : 1.28

 

0 Kudos
1 Reply
Mark_L_Intel1
Moderator
81 Views

Hi Charan,

Apologized for late response. Is this issue still persist?

For error like CPU HANG, once it happens, it can't be resolved by the follow up operations.

I can't see your whole sequence so I have not clue what happened. To solve the problem quickly, I suggest you to reproduce this issue with our sample code, these sample can be found in release package and also in the following online repo.

https://github.com/Intel-Media-SDK/MediaSDK/tree/master/samples

You can have a quick look at the sample document to learn details:

https://github.com/Intel-Media-SDK/MediaSDK/tree/master/doc/samples

Let me know if this helps.

Mark

Reply