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.
3069 Discussions

oneVPL: FadeDetection and RepartitionCheckEnable with AVC codec cause MFX_ERR_UNSUPPORTED error (-3)

Max_Gud
New Contributor I
1,503 Views

Hello, I ran into a problem - enabling the FadeDetection and RepartitionCheckEnable parameters related to mfxExtCodingOption3, when encoding video with the AVC codec causes an Unsupported parameters error, with other codecs such as HEVC and AV1, there are no problems with these parameters.
This problem arose quite a long time ago.
oneVPL version - 2.9
Windows 11 22H2 with the latest updates
Devices - Intel Arc A380 and UHD770
Driver - latest beta version 4514

0 Kudos
1 Solution
AthiraM_Intel
Moderator
1,221 Views

Hi,


About RepartitionCheckEnable:


This feature is supported only on AVC VME Encoder ( https://github.com/intel/media-driver#components-and-features ), VDEnc/LowPower Encoder doesn't support it.


So, getting Unsupported error from VPL is expected - VPL check CAPS from Media Driver and handle it:

https://github.com/oneapi-src/oneVPL-intel-gpu/blob/dae1d8c25f21658c28c5b5668fd60464bb52585d/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_enc_common_hw.cpp#L4828


Intel Arc A380 is Alchemist(ATS-M / DG2) - https://www.intel.com/content/www/us/en/products/sku/227959/intel-arc-a380-graphics/specifications.html 


Starting from DG2/ATS-M only VDEnc encoders are supported - https://github.com/intel/media-driver#decodingencoding-features


About FadeDetection :


The similar as for RepartitionCheckEnable - FadeDecetion feature is unsupported on AVC VDEnc : https://github.com/oneapi-src/oneVPL-intel-gpu/blob/dae1d8c25f21658c28c5b5668fd60464bb52585d/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_enc_common_hw.cpp#L2428


Could you please let us know, why you want to enable RepartitionCheck feature (for which purpose). AVC Encoder will choose an optimal partitions even without this setting, most likely the results will be good even in default stage.


Also, in case of fade-in / fade-out scenario on the stream Weighted Prediction should be worked on AVC VDEnc side, please remove both FadeDetection and RepartitionCheckEnable setting, results of the Encoding should be good by default.


If you need any clarification, please get back to us.


Thanks



View solution in original post

6 Replies
AthiraM_Intel
Moderator
1,444 Views

Hi,

 

Thank you for posting in Intel Communities.

 

Could you please share the sample reproducer code you used and the exact steps you followed.

Also let us know the parameters you used in the code

 

 

Thanks


0 Kudos
Max_Gud
New Contributor I
1,428 Views

For ease of understanding the problem, I made an example based on hello-encode from the oneVPL repository. In the archive attached to the message you will find the source code, as well as the Release folder with the compiled project Project1.exe to launch. The startup parameters have been simplified, you only need to specify the input file using -i. When executed on the command line, the error number is displayed in the Encode Init STS line.

The steps at which the error occurs: initializing mfxExtCodingOption3 with the parameters FadeDetection and RepartitionCheckEnable with the value MFX_CODINGOPTION_ON and attaching mfxExtCodingOption3 to the encoding parameters.

In the source code in the file hello-encode.cpp you can see the listed steps in lines 141-154

0 Kudos
AthiraM_Intel
Moderator
1,288 Views

Hi,


Thank you for sharing the details. We are checking on this internally, will get back to you with an update.



Thanks


0 Kudos
AthiraM_Intel
Moderator
1,222 Views

Hi,


About RepartitionCheckEnable:


This feature is supported only on AVC VME Encoder ( https://github.com/intel/media-driver#components-and-features ), VDEnc/LowPower Encoder doesn't support it.


So, getting Unsupported error from VPL is expected - VPL check CAPS from Media Driver and handle it:

https://github.com/oneapi-src/oneVPL-intel-gpu/blob/dae1d8c25f21658c28c5b5668fd60464bb52585d/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_enc_common_hw.cpp#L4828


Intel Arc A380 is Alchemist(ATS-M / DG2) - https://www.intel.com/content/www/us/en/products/sku/227959/intel-arc-a380-graphics/specifications.html 


Starting from DG2/ATS-M only VDEnc encoders are supported - https://github.com/intel/media-driver#decodingencoding-features


About FadeDetection :


The similar as for RepartitionCheckEnable - FadeDecetion feature is unsupported on AVC VDEnc : https://github.com/oneapi-src/oneVPL-intel-gpu/blob/dae1d8c25f21658c28c5b5668fd60464bb52585d/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_enc_common_hw.cpp#L2428


Could you please let us know, why you want to enable RepartitionCheck feature (for which purpose). AVC Encoder will choose an optimal partitions even without this setting, most likely the results will be good even in default stage.


Also, in case of fade-in / fade-out scenario on the stream Weighted Prediction should be worked on AVC VDEnc side, please remove both FadeDetection and RepartitionCheckEnable setting, results of the Encoding should be good by default.


If you need any clarification, please get back to us.


Thanks



Max_Gud
New Contributor I
1,210 Views

Thank you so much for the detailed information!

0 Kudos
AthiraM_Intel
Moderator
1,195 Views

Hi,


Thanks for accepting our solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.



Thanks


0 Kudos
Reply