Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: QP_I not works on h264 #512

Closed
MemeTao opened this issue Oct 23, 2024 · 3 comments
Closed

[Question]: QP_I not works on h264 #512

MemeTao opened this issue Oct 23, 2024 · 3 comments
Labels

Comments

@MemeTao
Copy link

MemeTao commented Oct 23, 2024

Question 1: How to set qp_i for h264?

I set QP_I to 22, but the QP value of output frame not equal to 22:
image
here is my code:

set_avc_property(amf_encoder_, QP_I, 22);
amf_encoder_->Init();   // rc = AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_CBR;

and i get qp value:

  uint64_t average_qp = 0;
  pkt->GetProperty(AMF_VIDEO_ENCODER_STATISTIC_AVERAGE_QP, &average_qp);

Windows 11 && AMD Radeon RX 6950 XT.

Question 2: There are min_qp_i and max_qp_i in hevc, but not h264

@lextra2
Copy link

lextra2 commented Oct 23, 2024

rc = AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_CBR

Have you tried using
AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_CONSTANT_QP

@MikhailAMD
Copy link
Collaborator

Yes, fixed QP is for CQP rate control method.
h264 only have AMF_VIDEO_ENCODER_MIN_QP and AMF_VIDEO_ENCODER_MAX_QP, no separation by frame type.

@MemeTao MemeTao closed this as completed Oct 24, 2024
@MemeTao
Copy link
Author

MemeTao commented Oct 24, 2024

Thanks for replay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants