### Problem Description Using new VAAPI encoding (see https://github.com/HandBrake/HandBrake/pull/7467) with MP4 container target fails on AMD GPU (Navi48) while MKV container target works. Filed by @galad87 here https://github.com/HandBrake/HandBrake/pull/7467#issuecomment-4786277177 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. - https://gitlab.freedesktop.org/mesa/mesa/-/work_items/15529 - as mentioned above https://github.com/HandBrake/HandBrake/pull/7467#issuecomment-4786277177 ### Activity Log, Crash Log or any other details ```text 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
sgothel commentedon Jul 14, 2026
@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?
sr55 commentedon Jul 15, 2026
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.
LZeugirdor commentedon Jul 17, 2026
I'm running a RX 5600XT, looking forward to VAAPI acceleration. If I can help in any way in testing let me know.
smdstudios commentedon Sep 8, 2026
AV1 works for me but H264 tells me "encoding failed" and the resulting video has desynced audio
bradleysepos commentedon Nov 20, 2026
Might be fixed by #8281, please test if you can.