Skip to content

[Bug]: QVBR/HQVBR, quality and rate options seem ignored #536

Open
@markg85

Description

Describe the bug
Setting bitrate options or even -qvbr_quality_level 51 (the worst possible quality) seems completely ignored.

To Reproduce
This is the ffmpeg git build!

LD_LIBRARY_PATH=/home/mark/pkgbuilds/ffmpeg/upstream/build/lib \
./ffmpeg -hwaccel amf -hwaccel_device /dev/dri/renderD128 -init_hw_device amf=/dev/dri/renderD128 \
    -y -i ~/Videos/eso1706c.avi \
    -c:v hevc_amf \
    -usage high_quality \
    -rc qvbr \
    -qvbr_quality_level 51 \
    -minrate 1M \
    -maxrate 10M \
    -quality quality \
    -preset quality \
    -profile:v main10 \
    -profile_tier high \
    -preanalysis 1 -enforce_hrd 1 -filler_data 1 \
    -pix_fmt nv12 \
    -b:v 5M \
    -f matroska test.mkv

The video i'm trying this on (warning 2GB, 4k)!: https://cdn.eso.org/videos/ultra_hd_h265/eso1706c.mp4

Setup (please complete the following information):

  • OS: Linux
  • Driver Version: Current Git of this repo
  • GPU: 7900 XT
  • Which component has the issue: Encoder
  • Using ffmpeg Git (no custom patches)

Debug Log (please upload or paste):
No errors or warnings

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
N/A

Additional context
I tried various options to force bitrates. The -enforce_hrd 1 -filler_data 1 comes from another hint in another bug, it seems to not help at all.

Also, as an aside. Try the encoding line! Then look at the result. The video jumps back and forth! As this is a planetary illustration, it's easier to explain :) The planets jump back and forth in their orbit. That's not in the source! And that's not the case if you'd encode it with, say, vbr_peak. The rate issue is the one i'm reporting here but there is another issue hidden in this too.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions