-
Notifications
You must be signed in to change notification settings - Fork 24
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
cbr and vbr always uses 20mbit for hevc #1
Comments
Thank you for the report. I also recognize this problem, but it is being difficult to figure out what is the problem, whether it is problem of my coding or it is current behavior of AMF/driver. It seems that the clean-up of AMF is going on. I'll wait for the next version of AMF to come up, and then start checking this issue. |
The problem is with Filler Data and Enforce HRD. Disable both and it should start working. Edit: I have reported this to AMD: GPUOpen-LibrariesAndSDKs/AMF#73 |
Thank you for the information. I'll add options to enable/disable filler data & hrd. |
こちら( GPUOpen-LibrariesAndSDKs/AMF#73 / #1 )に報告のあったように、 現状のAMFではこのオプションを使用するとHEVCエンコード時にレート制御が不安定になることから、 デフォルトではオフとする。
I have disabled Enforce HRD by default, but still it seems that the bitrate will not go to the target bitrate. I cannot tell this is the problem of my app, or the behavior of AMF. |
not sure, but: the crucial part is probably disabling filler data otherwise the encoder will probably always fill the bit rate up till it hits the max bit rate. |
I can take a look if you can point me at the file that determines what is set when. |
New version doesn't fix the issue.
I still end up with a constant 20MBit output,... Using a low resolution source the bit rate is lower, but the bitrate is totally ignored using different values 100/15000/200/500 all produce the same sized output. |
Line 1467 in 664ebb0
Filler Data seems to not default to off as far as i can see, so CBR will produce broken output. you can try and see if driver 17.2.1 fixes the issue. |
Updated to 17.2.1 (restarted system), but sadly: |
Filler Data is set by --filler option now, and default is set off. setting default setting param Line 1468 in dfc4f10
I have tested 17.2.1 driver, but ended up getting constant 20MBit output with HEVC VBR & CBR mode, same as Selur. I also notice getting warning from AMF
which I didn't get with 17.1.1 driver. So, filler data might be not working with 17.2.1? |
You are correct, 17.2.1 breaks that parameter - hopefully only temporarily.
|
Found the solution, HevcFillerData is a static (pre-Init()) property now. |
Good to hear looking forward for the next release to test. :) |
@rigaya The proper fix for this has now been found, see GPUOpen-LibrariesAndSDKs/AMF#80. Basically CBR also requires Peak Bitrate for Filler Data to work. |
When using --vbr or --cbr the output bit rate seems to be always 20000.
I first thought that was because I set the max-bitrate to 20000, but even when using cbr&maxbitrate 1500 the resulting file had a bit rate of 20000.
The text was updated successfully, but these errors were encountered: