Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use H265 QSV #354

Open
facesandaces opened this issue Jun 1, 2024 · 3 comments
Open

Unable to use H265 QSV #354

facesandaces opened this issue Jun 1, 2024 · 3 comments
Labels

Comments

@facesandaces
Copy link

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

  • OS: TerraMaster
  • OS version: 5
  • CPU: Intel N4505
  • Docker version:
  • Device model: F2-223
  • Browser/OS: Firefox

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
Copy link
Author

No suggestions?

@adolfotregosa
Copy link

same over here. N5095

encqsvInit: MFXVideoENCODE_Init failed (-3)

@adolfotregosa
Copy link

adolfotregosa commented Aug 3, 2024

ok

Last working version is v23.11.2
v23.11.3 Breaks H265 at least for these types of iGPU.

@jlesage Can you please check ?
@facesandaces use this in the meanwhile - what ever method you use to pull docker image use the following
-> jlesage/handbrake:v23.11.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants