Skip to content

VAAPI Encoder Broken using MP4 Container w/ AMD GPU (Navi48) #7976

Open

Description

@sgothel

Problem Description

Using new VAAPI encoding (see #7467) with MP4 container target fails on AMD GPU (Navi48) while MKV container target works.

Filed by @galad87 here #7467 (comment)
Log test file: https://github.com/user-attachments/files/29406433/vaapi.mp4.log.txt
Codecs: H264, H265 and AV1, all on vaapi.

My reproduction excerpt.
Encoding fails w/ result = 4.

[mp4 @ 0x7f89d8579900] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 26610333 >= 26610333
ERROR: avformatMux: track 0, av_interleaved_write_frame failed with error 'Invalid argument'
[mp4 @ 0x7f89d8579900] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 26610333 >= 26610333
[18:38:09] worker Muxer waiting to die
...
[18:38:09] libhb: work result = 4

Encode failed (error 4).

Potentially related ffmpeg issue - but more specific to hevc_vaapi, while the issue filed here exists for all codecs.

Activity Log, Crash Log or any other details

see above and referenced log file.

What Operating System are you running?

GNU/Linux

What version of HandBrake are you running?

main branch

Where did you download HandBrake from?

github

Activity

  1. sgothel commented on Jul 14, 2026

    @sgothel
    ContributorAuthor

    @sr55 feel free to assign me for this, completing the work. You may put my status to 'contributor' as well.

    Type: Bug
    Milestone: Hope we can make it to the next version huh? When is that? September?

  2. added this to the 1.12.0 milestone on Jul 15, 2026
  3. sr55 commented on Jul 15, 2026

    @sr55
    Contributor

    Thanks

    There isn't a planned release at present so I wouldn't say there is a huge time pressure on it.

    Github Automatically has marked you as a contributor since you submitted code into the repo previously.

  4. LZeugirdor commented on Jul 17, 2026

    @LZeugirdor

    I'm running a RX 5600XT, looking forward to VAAPI acceleration. If I can help in any way in testing let me know.

  5. smdstudios commented on Sep 8, 2026

    @smdstudios

    AV1 works for me but H264 tells me "encoding failed" and the resulting video has desynced audio

  6. bradleysepos commented on Nov 20, 2026

    @bradleysepos
    Contributor

    Might be fixed by #8281, please test if you can.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions