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

How to set temporal layer bitrate with CBR mode & AMFVideoEncoderVCE_SVC encoder? #292

Open
jieytan opened this issue Jan 18, 2022 · 0 comments

Comments

@jieytan
Copy link

jieytan commented Jan 18, 2022

Hi.

Say i want to set 2 layers. The total bitrate is 3M. And ratio T0:T1 is 6:4.

Since there is no detailed document. I tested on the sample code. (I config TranscodeHW to get h264 file, and use SVCSplitter to analyse the file.)

Here are some the questions:

  1. Firstly, I found if i want total bitrate to be 3M, i will have to set "TL0.QL0.TargetBitrate"+"TL1.QL0.TargetBitrate" to be 6M, which is layers * target bitrate.
    Is this conclusion right?

  2. Secondly. since the tests data(↓) shows no pattern, I still don't know how to get the right T0:T1 ratio. Please help me out.

(Here are the data:

m_pEncoder->SetProperty(L"TL0.QL0.TargetBitrate", 5000000);
m_pEncoder->SetProperty(L"TL1.QL0.TargetBitrate", 1000000);
output:
T0:T1=17 : 1

m_pEncoder->SetProperty(L"TL0.QL0.TargetBitrate", 4000000);
m_pEncoder->SetProperty(L"TL1.QL0.TargetBitrate", 2000000);
output:
T0:T1=3.3

m_pEncoder->SetProperty(L"TL1.QL0.TargetBitrate", 3000000);
m_pEncoder->SetProperty(L"TL0.QL0.TargetBitrate", 3000000);
output:
T0:T1=1.5

m_pEncoder->SetProperty(L"TL0.QL0.TargetBitrate", 2000000);
m_pEncoder->SetProperty(L"TL1.QL0.TargetBitrate", 4000000);
output:
T0:T1=0.72

m_pEncoder->SetProperty(L"TL0.QL0.TargetBitrate", 1000000);
m_pEncoder->SetProperty(L"TL1.QL0.TargetBitrate", 5000000);
output:
T0:T1=0.29)

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

No branches or pull requests

1 participant