- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you for sharing the details. We are checking on this internally, will get back to you with an update.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you so much for the detailed information!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page