GPUOpen-LibrariesAndSDKs / AMF

The Advanced Media Framework (AMF) SDK provides developers with optimal access to AMD devices for multimedia processing
Other
598 stars 149 forks source link

[Bug]: PeakBitrate param not working propper #498

Open Johl7 opened 2 weeks ago

Johl7 commented 2 weeks ago

Describe the bug By setting PeakBitrate to a certain value in OBS it will behave as being the TargetBitrate, TargetBirate doesn't seem to be working

To Reproduce Steps to reproduce the behavior:

  1. In OBS(30.2.3), set the following parameter 'PeakBitrate=16000000' while having Target in the GUI, or putting it on the command line as 8000000(8mbps) Screenshot 2024-09-06 233632
  2. Initialize the Encoder
  3. The result will be PeakBitrate=TargetBitrate, while target does nothing

Setup (please complete the following information):

Expected behavior PeakBitrate not behaving as bein the Target

MikhailAMD commented 2 weeks ago

How did you conclude that the parameter is not working? Rate control mode is CBR so you may not see this by individual frame sizes.

Johl7 commented 2 weeks ago

when i set PeakB, it overrides Target, therefore the bitrate with CBR, for example, will always be equal and constant to the value set with PeakB..

Johl7 commented 2 weeks ago

Screenshot 2024-09-09 112614

Like here, CBR, Target is set to 8mbps and Peak to 16mbps.... output is constant at 16

MikhailAMD commented 2 weeks ago

OK, will check

Johl7 commented 1 week ago

Ok, many thanks!

Eckoa commented 6 days ago

Try setting b frames to 0 and see if the issue continues to happen. I've noticed b frames cause this to happen on my end.

You might also set preset to balanced as balanced is much lower load on the encoder (less than half the load of quality) and I at least couldn't tell the difference

Johl7 commented 5 days ago

Try setting b frames to 0 and see if the issue continues to happen. I've noticed b frames cause this to happen on my end.

You might also set preset to balanced as balanced is much lower load on the encoder (less than half the load of quality) and I at least couldn't tell the difference

Yeah, tried it with bfs disabled, same behavior... Peak=Target