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

what is the maximum bitrate can be set to amf h264 encoder? #298

Open
skymelody opened this issue Mar 15, 2022 · 6 comments
Open

what is the maximum bitrate can be set to amf h264 encoder? #298

skymelody opened this issue Mar 15, 2022 · 6 comments
Labels

Comments

@skymelody
Copy link

I found that when the bitrate set to the encoder exceeds 200000000(200 * 1000 * 1000), the bitrate of the final output h264 file may be incorrect(the bit rate of output file is too small). I am not sure whether it is a bug or not.

This problem can be easily reproduced by the sample "TranscodeHW.exe"

./TranscodeHW.exe -input input.h264 -output output.h264 -width 1920 -height 1080 -usage transcoding -rateControlMethod vbr -targetBitrate 209715200
209715200 is 20010241024

The output file's bit rate is only 9472 kb/s

Operating System: Windows 11 21H2 22000.556
GPU: AMD Radeon(TM) Vega8 Graphics
GPU Driver Version: 26.20.14048.5000

@skymelody skymelody changed the title what is the maximum bitrate can be set in amf h264 encoder? what is the maximum bitrate can be set to amf h264 encoder? Mar 15, 2022
@rhutsAMD
Copy link
Collaborator

The maximum bitrate is determined by the driver and is specific to your hardware. Please check the logs as the TranscodeHW sample should produce errors which are likely returning AMF_OUT_OF_RANGE. There is a suggested range for the target bitrate in the Encode API docs, however, it does not account for all the different driver and hardware configurations. While it may be true in some cases, it is not true for all cases since the actual maximum bitrate is determined by the driver and hardware.

@BarabashkaD
Copy link

@rhutsAMD
I found that for H264 success to set more that 100MBit/sec
however for H.265 its limited to 100MBit/sec
is it make sense ?

@rhutsAMD
Copy link
Collaborator

What is your GPU model and which API are you using? (Vulkan / DX).

@BarabashkaD
Copy link

@rhutsAMD I have 6900XT in developing machine

@rhutsAMD
Copy link
Collaborator

Thanks for identifying your GPU. Which API are you using? This could be DX9 / DX11 / DX12 / Vulkan.

@BarabashkaD
Copy link

BarabashkaD commented Mar 17, 2022 via email

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