jlesage / docker-handbrake

Docker container for HandBrake
MIT License
769 stars 90 forks source link

Unable to use H265 QSV #354

Open facesandaces opened 4 weeks ago

facesandaces commented 4 weeks ago

Current Behavior

When attempting to use H265 QSV, program throws error: MFXVideoENCODE_Init failed (-3)

Expected Behavior

For the H265 QSV encoder to successfully process files

Steps To Reproduce

Any use of H265 QSV

Environment

Container creation

docker run -d \ --name=handbrake \ --device=/dev/dri/ \ -e USER_ID=0 \ -e GROUP_ID=0 \ -p 5800:5800 \ -v /Volume3/public2/docker/handbrake/config:/config:rw \ -v /Volume3/public2/docker/Jellyfin/:/storage:ro \ -v /Volume3/public2/docker/MakeMKV:/watch:rw \ -v /Volume3/public2/docker/RIP:/output:rw \ jlesage/handbrake:latest

Container log

libva info: VA-API version 1.20.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
[15:43:57] hb_display_init: using VA driver 'iHD'
libva info: VA-API version 1.20.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
[15:43:57] encqsvInit: MFXVideoENCODE_Init failed (-3)
[15:43:57] encqsvInit: using encode-only via system memory path
[15:43:57] encqsvInit: H.265/HEVC (null) profile @ level (null)
[15:43:57] encqsvInit: TargetUsage 4 AsyncDepth 6
[15:43:57] encqsvInit: GopRefDist 8 GopPicSize 48 NumRefFrame 4 IdrInterval 0
[15:43:57] encqsvInit: BFramesMax 7 BRefType pyramid
[15:43:57] encqsvInit: RateControlMethod CQP with QPI 15 QPP 17 QPB 19
[15:43:57] Failure to initialise thread 'Quick Sync Video encoder (Intel Media SDK)'
[15:43:57] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[15:43:57] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[15:43:57] vfr: lost time: 0 (0 frames)
[15:43:57] vfr: gained time: 0 (0 frames) (0 not accounted for)
[15:43:57] dca-decoder done: 0 frames, 0 decoder errors
[15:43:57] hevc-decoder done: 0 frames, 0 decoder errors
[15:43:57] sync: got 0 frames, 150221 expected
[15:43:57] Finished work at: Sat Jun  1 15:43:57 2024

[15:43:57] libhb: work result = 3

Container inspect

No response

Anything else?

I have searched this topic fairly extensively and have already attempted to add lowpower=0 to the more video settings, and it makes no difference. H264 QSV video works as expected.

facesandaces commented 2 weeks ago

No suggestions?