ARM Intel QSV not working, but standalone Handbrake does

Hi,

Hopefully not something answered before, as I couldnt find anything on this.

I am running Truenas Comunity 25.10.2.1 with

  • Automatic Ripping Machine App Version: 2.23.2, Version: 1.1.7
  • Handbrake App Version: v26.03.3, Version: 2.3.7

Handbrake will use H.265 QSV 1080p (can see the GPU usage using sudo intel_gpu_top)

Same settings (passthrough checkbox ticked) and ARM crashes out (error at bottom of post).

GPU is Intel 630

After reading many webpages, I checked using the shell for QSV, using HandBrakeCLI --help | grep -A12 “Select video encoder”

Both say “qsv: is available on this system”

Handbrake has this line : “qsv_h264”… but ARM doesn’t, which I am guessing is the issue.

I’ve seen topics about installing libvpl by hand but also that it is not recommended for TrueNas apps.

Error from ARM is

ARM encountered a fatal error processing Thor. Check the logs for more details. Command ‘nice HandBrakeCLI -i /home/arm/media/raw/movie/movie_t02.mkv -o ‘/home/arm/media/transcode/movies/movie/movie_t02.mkv’ --preset “H.265 QSV 1080p” --subtitle scan -F --subtitle-burned --audio-lang-list eng --all-audio >> /home/arm/logs/movie.log 2>&1’ returned non-zero exit status 3.

Does anyone know how to fix this please? CPU transcoding is far too slow.

I have found more info in the logs… does this help?

Encoding: task 2 of 2, 0.00 %[19:56:13] decavcodec: requesting decoder downmix ‘stereo’ for track 1
[19:56:13] sync: expecting 181299 video frames
[19:56:13] encavcodecInit: H.265 (Intel Quick Sync Video)
[19:56:13] encavcodec: encoding with preset veryfast
ERROR: hb_qsv_apply_encoder_options: invalid pointer qsv_data->qsv_info=(nil)
ERROR: hwaccel: failed to create hwdevice
ERROR: Failure to initialise thread ‘FFMPEG encoder (libavcodec)’

[19:56:13] vfr: 0 frames output, 0 dropped
[19:56:13] vfr: lost time: 0 (0 frames)
[19:56:13] vfr: gained time: 0 (0 frames) (0 not accounted for)
[19:56:13] truehd-decoder done: 0 frames, 0 decoder errors
[19:56:13] ac3-decoder done: 0 frames, 0 decoder errors
[19:56:13] h264-decoder done: 0 frames, 0 decoder errors
[19:56:13] sync: got 0 frames, 181299 expected

Encoding: task 2 of 2, 0.00 %[19:56:13] Finished work at: Mon Apr 20 19:56:13 2026

[19:56:13] libhb: work result = 3

Encode failed (error 3).
HandBrake has exited.

Any updates with this issue? I’m having the same problem.

Welcome! Please provide details of your hardware, as it’s likely you’ll need kernel boot options to actually enable the Intel iGPU for transcoding.

Intel(R) Core™ i5-6600K CPU @ 3.50GHz

Intel DG2 [Arc A750] (rev 08)

Truenas Scale Goldeye

I can run GPU Encode from the Handbrake GUI but it fails in the CLI.I monitor GPU activity with Toparr. Besides the difference in fps throughput is 10x.

Is the xe kernel module loaded? Do you see a render device in /dev/dri?

truenas% ls -l /dev/dri
total 0
drwxr-xr-x 2 root root 80 Oct 21 12:11 by-path
crw-rw---- 1 root video 226, 0 Oct 21 12:11 card0
crw-rw---- 1 root render 226, 128 Oct 21 12:11 renderD128
truenas%

Are you making the /dev/dri path available to the app?

Do you see the render node inside the ARM container shell?

This is in the ARM shell.

ls -l /dev/dri
total 0
crw-rw---- 1 root video 226, 0 Oct 22 14:46 card0
crw-rw---- 1 root input 226, 128 Oct 22 14:46 renderD128

In the Ripper settings for HB_ARGS_DVD if I include --encoder qsv_h265 it fails. If I remove it it passes and completes. I get the same failures as renketsu above.

The only thing I can think of is the ARM app doesn’t have the required Intel libraries built-in. See Hardware Transcode Intel QSV · automatic-ripping-machine/automatic-ripping-machine Wiki.

Ok, something interesting. If I execute the command "HandbrakeCLI --help | grep -A12 “Select video encoder” in the Handbrake shell I get -
-e, --encoder Select video encoder:
svt_av1
svt_av1_10bit
qsv_av1
qsv_av1_10bit
ffv1
x264
x264_10bit
qsv_h264
x265
x265_10bit
x265_12bit
qsv_h265
HandBrake has exited.
So it sees the QSV encoder. If I run it in the ARM shell I get-
-e, --encoder Select video encoder:
svt_av1
svt_av1_10bit
ffv1
x264
x264_10bit
x265
x265_10bit
x265_12bit
mpeg4
mpeg2
VP8
VP9
HandBrake has exited.
Does not see the QSV encoder. What am I missing? I have Passthrough checked in both app setups.

According to the wiki link I have in post #10 of this thread:

Intel libvpl (newer CPUs and discrete GPUs)

Note, that the requirements for qsv with newer Intel CPUs are different from qsv with discrete GPUs.

Unfortunately, support for those isn’t completely figured out yet. You can follow the main issue (#909) or look for guides in issues or discussions. There are some working examples, but this still needs testing.

This may be a case where the ARM developers haven’t finished coding the support for your GPU yet.

Well that is strange. Why would there be two versions of the HandBrakeCLI? Both containers should be using the same CLI.

After reading a few other posts, it looks like ARM ships with an older Intel VPL stack. It needs to be updated to the latest stack. There is a Procedure but my install is in Truenas Scale so I don’t know how to update it.

You could contact @sonicaj who maintains the app to see if he could apply the procedure to the Catalog app.

Thanks, found more documentation that says the latest Intel Media SDK needs to be loaded and compiled.