AMF icon indicating copy to clipboard operation
AMF copied to clipboard

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

Open skymelody opened this issue 3 years ago • 6 comments

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 avatar Mar 15 '22 08:03 skymelody

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.

rhutsAMD avatar Mar 15 '22 15:03 rhutsAMD

@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 ?

BarabashkaD avatar Mar 15 '22 19:03 BarabashkaD

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

rhutsAMD avatar Mar 16 '22 21:03 rhutsAMD

@rhutsAMD I have 6900XT in developing machine

BarabashkaD avatar Mar 17 '22 09:03 BarabashkaD

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

rhutsAMD avatar Mar 17 '22 13:03 rhutsAMD

DX11

On Thu, 17 Mar 2022 at 15:59 Roman @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/GPUOpen-LibrariesAndSDKs/AMF/issues/298#issuecomment-1070956975, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPWQZ4YFJPHFWL5KNM47DDVAM3C7ANCNFSM5QX5AFJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

BarabashkaD avatar Mar 17 '22 14:03 BarabashkaD