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.

Per CU QP support for HEVC

svutran
New Contributor I
2,972 Views

Hi all,

I was reading the release notes for Media SDK 20.2.1 and there is something that confuses me regarding support for per-CU QP control for HEVC encoding. It is written under the "Known Limitations - HEVC encode" section that only a subset of extended buffer parameters are supported. In CodingOption3 buffer, EnableMBQP is not listed which technically means that Per CU QP is not supported for HEVC encode? However, further down in that same section, it is written "Per-LCU QP mode has the following limitations..." which also means that it is supported in a limited way.

In short, I just want to know if per-CU QP control is currently available with Intel Media SDK for HEVC encode.

Thanks in advance!

0 Kudos
1 Solution
Mark_L_Intel1
Moderator
2,661 Views

Hi Tran,


Just confirmed with developer, the updated document is in the following PR and will be merged:

https://github.com/Intel-Media-SDK/MediaSDK/pull/2398/files


Mark


View solution in original post

12 Replies
Mark_L_Intel1
Moderator
2,965 Views

Hi Tran,


Yes, I have confirmed your observation. Let me ask dev team for explanation, will update it later.


Mark


svutran
New Contributor I
2,927 Views

Hi @Mark_L_Intel1 ,

Do you have any news or update from the dev team?

Thanks

0 Kudos
Mark_L_Intel1
Moderator
2,920 Views

Hi Tran,


Yes, dev team confirmed we do support Per-LCU QP, this means all CUs in LCU(largest coding unit) have the same average QP.


I am still confirming the detail to the document on page 14 and 15 of RN you mentioned.


Mark


0 Kudos
svutran
New Contributor I
2,898 Views

Thanks for  your answer Mark.

In  that case, do you know how to activate the per-LC QP feature then if mfxExtCodingOption3::EnableMBQP is not available yet for HEVC Encode?

0 Kudos
Mark_L_Intel1
Moderator
2,863 Views

Hi Tran,


Sorry for the late response, I made a mistake and replied in wrong place.


Here is my post:

I believe this should be EnableMBQP field, did you try it yet?


I will double check with dev team although I am quite sure this is.


I also check LCU support doesn't have the size limitation.


Mark


0 Kudos
svutran
New Contributor I
2,857 Views

I did finally try it and it seems to be working.

It means there's a mismatch between the release note and the actual code for the mfxExtCodingOption3::EnableMBQP then. The release note makes it look like there is no support yet for EnableMBQP.

0 Kudos
Mark_L_Intel1
Moderator
2,852 Views

Thanks so much for using our product,


Yes, I have file the issue and I will make sure it is fixed.


Again, thanks for reporting this issue. This is a big help to our product.


Mark


svutran
New Contributor I
2,842 Views
0 Kudos
svutran
New Contributor I
2,826 Views

Hi Mark,

One more question about per LCU QP control. Now that I've got it working, I was wondering what kind of performance should I expect from that feature on HEVC?

I tried comparing H264 with and without EnableMBQP and I got the following throughput in 1280x720: 339 fps without EnableMBQP and 595 fps with EnableMBQP. We observe here a gain in throughput by activating EnableMBQP.

On the other hand, in H265, we have: 180 fps without EnableMBQP and it drops to 71 fps when activating EnableMBQP.

In short, is it normal that we are observing a significant performance drop in HEVC when activating  EnableMBQP while in H264 we gain throughput?

 

Environment information
OS: Ubuntu 20.04
CPU: Intel Core i9-9900K @ 3.60 GHz (Coffee Lake)
SDK and drivers:
- Intel Media SDK Version 20.2.1 (also tested on 20.4.pre)
- Media Driver 20.2.0
- Gmmlib 20.2.2
- libva 2.8.0
- libva-utils 2.8.0

0 Kudos
Mark_L_Intel1
Moderator
2,802 Views

Thanks so much for the testing,


This is helpful and also a good point. I will transfer the request to dev team.


Since this is out of the scope of original post, could you create this in a new post?


Thanks so much and apologize if this introduces any inconvenience.


Mark


0 Kudos
svutran
New Contributor I
2,795 Views

Thanks for the reply Mark.

I will start a new thread.

 

0 Kudos
Mark_L_Intel1
Moderator
2,662 Views

Hi Tran,


Just confirmed with developer, the updated document is in the following PR and will be merged:

https://github.com/Intel-Media-SDK/MediaSDK/pull/2398/files


Mark


Reply