Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.
3062 Discussions

Return sts=MFX_ERR_DEVICE_FAILED(-17), SynchronizeFirstTask when enable lowpower params.

simonshi
Beginner
1,212 Views

OS: ubuntu 20.04

kernel:  Intel Linux kernel 5.10

MediaSDK 2022q2

CPU Model: 1165G7 Tiger-lake

We use the YUV data needed by the encoder is filled in by myself. mem type is SYSTEM_MEMORY.  -17  error occurs frequently in the coding process.

MFXVideoSession::virtual mfxStatus SyncOperation(mfxSyncPoint syncp, mfxU32 wait) return -17, and couldn't return to normal, unless destroy and recreate.

If only 265 or 264 is encoded,  the problem does not reappear temporarily.

If both h.265 and h.264 is encoded, the problem is appear in a few minutes.

 

Because we would use at least 8 stream encoding we must open lowpower parameters to make sure all encoding process is quick enough.

 

The following is our sample_encode paramters:

/opt/intel/mediasdk/share/mfx/samples/_bin/sample_encode  h265  -gpucopy::on -i cnn.yuv -o test.h265 -nv12 -w 1920 -h 1080   -dstw 1920 -dsth 1080 -b 8000 -f 30 -fps 30 -hw -async 1 -lowpower:on -u speed    -timeout 6000 &
/opt/intel/mediasdk/share/mfx/samples/_bin/sample_encode  h265  -gpucopy::on -i cnn.yuv -o test.h265 -nv12 -w 1920 -h 1080   -dstw 1920 -dsth 1080 -b 8000 -f 30 -fps 30 -hw -async 1 -lowpower:on -u speed    -timeout 6000 &
/opt/intel/mediasdk/share/mfx/samples/_bin/sample_encode  h265  -gpucopy::on -i cnn.yuv -o test.h265 -nv12 -w 1920 -h 1080   -dstw 1920 -dsth 1080 -b 8000 -f 30 -fps 30 -hw -async 1 -lowpower:on -u speed    -timeout 6000 &
/opt/intel/mediasdk/share/mfx/samples/_bin/sample_encode  h265  -gpucopy::on -i cnn.yuv -o test.h265 -nv12 -w 1920 -h 1080   -dstw 1920 -dsth 1080 -b 8000 -f 30 -fps 30 -hw -async 1 -lowpower:on -u speed    -timeout 6000 &
/opt/intel/mediasdk/share/mfx/samples/_bin/sample_encode  h265  -gpucopy::on -i cnn.yuv -o test.h265 -nv12 -w 1920 -h 1080   -dstw 1920 -dsth 1080 -b 15000 -f 30 -fps 30 -hw -async 1 -lowpower:on -u speed   -timeout 6000 &
/opt/intel/mediasdk/share/mfx/samples/_bin/sample_encode  h265  -gpucopy::on -i cnn.yuv -o test.h265 -nv12 -w 1920 -h 1080   -dstw 1920 -dsth 1080 -b 15000 -f 30 -fps 30 -hw -async 1 -lowpower:on -u speed  -timeout 6000 &
/opt/intel/mediasdk/share/mfx/samples/_bin/sample_encode  h265  -gpucopy::on -i cnn.yuv -o test.h265 -nv12 -w 1920 -h 1080   -dstw 1920 -dsth 1080 -b 15000 -f 30 -fps 30 -hw -async 1 -lowpower:on -u speed   -timeout 6000 &
/opt/intel/mediasdk/share/mfx/samples/_bin/sample_encode  h265  -gpucopy::on -i cnn.yuv -o test.h265 -nv12 -w 1920 -h 1080   -dstw 1920 -dsth 1080 -b 15000 -f 30 -fps 30 -hw -async 1 -lowpower:on -u speed  -timeout 6000 &

 

You can see almost very time the h265 encoder with lowpower params drop this error.

0 Kudos
5 Replies
JyothisV_Intel
Moderator
1,163 Views

Hi,


Good day to you.


Thanks for posting in Intel Communities.


We tried replicating the issue from our side on the same Intel 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz processor system running Ubuntu 22.04.1 LTS and observed a similar error with the -lowpower:on flag. Additionally, we tried on multiple systems and were not able to get the -lowpower:on flag working.


We are working on this internally with our development team and will get back to you with an update.


Regards,

Jyothis V James



0 Kudos
simonshi
Beginner
1,153 Views

Thank you! James.

If Intel team have any update please reply the topic or send email to me.

0 Kudos
JyothisV_Intel
Moderator
864 Views

Hi,


Good day to you.


Sorry for the delay in getting back to you.


The HEVC/H.265 Microcontroller (HuC) functionality is not enabled in your system configuration. This is a firmware utilized by the iHD Intel Media Driver to offload media functions from CPU to GPU which comes with power and performance benefits and functionalities like scheduling and media offloading.


Kindly try enabling this functionality by setting the kernel module parameter: i915.enable_guc=2


If you wish to use Bitrate Control Methods (BRC), it is required to enable HuC. However, in the case of Constant QP(CQP), an advanced BR algorithm; loading HuC is not necessary because Video Motion Estimation (VME) engine is used instead of the VDENC video encoder engine.


Reference: https://01.org/linuxgraphics/downloads/firmware


If this clears your query, kindly click the “Accept as Solution” button to indicate that your issue is resolved. This will also help others with a similar issue.


Thanks and Regards,

Jyothis V James


0 Kudos
JyothisV_Intel
Moderator
824 Views

Hi,


Good day to you.


We have not received any update from you yet.


Is your issue resolved? If yes, kindly mark it as solution so that we can stop monitoring this thread. If not, do let us know so that we can assist you better.


Thanks and Regards,

Jyothis V James


0 Kudos
JyothisV_Intel
Moderator
805 Views

Hi,


Good day to you.


We have not heard back from you for the past ten business days. We assume your support request has been resolved and will no longer monitor this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.


Regards,

Jyothis V James


0 Kudos
Reply