Public bug reported:

# HandBrakeCLI VAAPI Assertion Failure Bug Report

## Summary
HandBrakeCLI (dpkg build, version 1.7.2+ds1-1build2) crashes with an assertion 
failure in the VAAPI encoder, even when attempting to force software encoding 
with `HB_USE_VAAPI=0`.

## Error
```
HandBrakeCLI: ./_studio/mfx_lib/shared/src/mfx_h264_encode_vaapi.cpp:1557: 
virtual mfxStatus 
MfxHwH264Encode::VAAPIEncoder::CreateAuxilliaryDevice(VideoCORE*, GUID, mfxU32, 
mfxU32, bool): Assertion `0x00000000 == vaSts' failed.
```

## System
- VAAPI version: 1.20.0
- Driver: Intel iHD driver for Intel(R) Gen Graphics - 24.1.0
- libva version: 2.12.0
- HandBrakeCLI: 1.7.2+ds1-1build2 (from Ubuntu/Debian package)

## Steps to Reproduce
1. Install handbrake-cli from dpkg
2. Run HandBrakeCLI with any input file and x264 encoder
3. (Optional) Set `export HB_USE_VAAPI=0` to attempt to force software encoding
4. Observe crash with assertion failure

## What Was Expected
- Setting `HB_USE_VAAPI=0` should disable VAAPI and allow software encoding to 
proceed.

## What Actually Happens
- HandBrakeCLI attempts VAAPI initialization regardless of `HB_USE_VAAPI=0` and 
crashes with the assertion failure above.

## Workarounds Attempted
- Setting `HB_USE_VAAPI=0` (both as a command prefix and as an exported 
variable) does **not** prevent the crash.
- Unsetting `LIBVA_DRIVER_NAME` does **not** prevent the crash.
- The only workaround is to use a different build (Flatpak, Snap, or source) or 
a different tool (e.g., ffmpeg).

## Recommendations for Maintainers
- Update to a newer HandBrake version (1.9.x is current)
- Ensure that `HB_USE_VAAPI=0` disables VAAPI as intended
- Add proper error handling for VAAPI initialization failures
- Consider disabling VAAPI by default in the package until resolved

## Recommendations for Users
- The workaround of setting `HB_USE_VAAPI=0` is **not effective** in the dpkg 
build as of this report.
- Use Flatpak, Snap, or build from source for a working HandBrakeCLI.
- Alternatively, use ffmpeg for transcoding tasks.

** Affects: handbrake (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2114679

Title:
  VAAPI Assertion Failure

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/handbrake/+bug/2114679/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to