Community
cancel
Showing results for 
Search instead for 
Did you mean: 
svutran
Novice
859 Views

Per CU QP support for HEVC

Jump to solution

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
548 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
852 Views

Hi Tran,


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


Mark


svutran
Novice
814 Views

Hi @Mark_L_Intel1 ,

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

Thanks

Mark_L_Intel1
Moderator
807 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


svutran
Novice
785 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?

Mark_L_Intel1
Moderator
750 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


svutran
Novice
744 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.

Mark_L_Intel1
Moderator
739 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
Novice
729 Views

Thanks Mark for your help

svutran
Novice
713 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

Mark_L_Intel1
Moderator
689 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


svutran
Novice
682 Views

Thanks for the reply Mark.

I will start a new thread.

 

Mark_L_Intel1
Moderator
549 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

Reply