Skip to content

[Bug]: Enabling B-frames in FFMPEG hangs up with HQVBR #586

@pbaykalov

Description

@pbaykalov

Describe the bug
Enabling B-frames in FFMPEG hangs up with HQVBR on frame 1.
ffmpeg -hwaccel d3d11va -i in.mp4 -c:v h264_amf -usage transcoding -rc hqvbr -b 8M -preanalysis true -bf 3 out.mp4 - hangs up
ffmpeg -hwaccel d3d11va -i in.mp4 -c:v h264_amf -usage transcoding -rc cbr -b 8M -preanalysis true -bf 3 out.mp4 - works fine
ffmpeg -hwaccel d3d11va -i in.mp4 -c:v h264_amf -usage transcoding -rc hqvbr -b 8M -preanalysis true out.mp4 - works fine

To Reproduce
Steps to reproduce the behavior:

  1. ffmpeg -hwaccel d3d11va -i in.mp4 -c:v h264_amf -usage transcoding -rc cbr -b 8M -preanalysis true -bf 3 out.mp4
  2. Encoding hangs up indefinitely.

Setup (please complete the following information):

  • OS: W11 24H2
  • Driver Version 25.6.1
  • GPU 7900XTX
  • Encoder: ffmpeg 8.0.1

Debug Log (please upload or paste):
N/A

Expected behavior
Can't see why B-frames should not work with HQVBR specifically.

Screenshots
N/A

Additional context
I've set up HQVBR in OBS 32 successfully with B-frames enabled.

Metadata

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