Handbrake HEVC profile with presets fails when using hardware encoding

I only have QuickSync which you can see it’s available in the list below but handbrake always fails and mcebuddy defaults to ffmpeg but still does not use encoding. I have tried so many things to get this to work but i cannot. If i use the handbrake GUI it works but not in mcebuddy.
I’m at my wits end trying to figure out how to get this to work and any help would be greatly appriciated.
If it helps i have a HP Z2 SFF G4 Workstation with a i7-8700 CPU which does have Quicksync.
the Graphics is built-in UHD 630. Any more information that would assist in getting this working I can provide, thank you.

2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> IntelQuery checking for OpenCL and QuickSync support
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> Launching process C:\Program Files\MCEBuddy2x\handbrake\handbrakecli.exe
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> Process arguments -i null -o null
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> UI Session Admin Process : True
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> Starting process as a UISession process with Admin privileges. This requires atleast 1 user to be logged into the system (remote desktop or locally)
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> Setting process priority to Normal
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03] Compile-time hardening features are enabled
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> Cannot load nvEncodeAPI64.dll
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03] hb_init: starting libhb thread
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03] thread 1 started ("libhb")
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> HandBrake 1.3.3 (2020061300) - MinGW x86_64 - https://handbrake.fr
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> 12 CPUs detected
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> Opening null...
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03] CPU: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03]  - Intel microarchitecture Kaby Lake
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03]  - logical processor count: 12
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03] Intel Quick Sync Video support: yes
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03]  - Intel Media SDK hardware: API 1.35 (minimum: 1.3)
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03]  - H.264 encoder: yes
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03]     - preferred implementation: hardware (any) via D3D11
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03]     - preferred implementation: hardware (any) via D3D11
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03]     - capabilities (hardware):  bpyramid icq vsinfo opt1
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03] hb_scan: path=null, title_index=1
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> src/libbluray/disc/disc.c:323: failed opening UDF image null
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> src/libbluray/bluray.c:2585: nav_get_title_list(null\) failed
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03] bd: not a bd - trying as a stream/file instead
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> libdvdnav: Using dvdnav version 6.0.1
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> libdvdread: Encrypted DVD support unavailable.
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> libdvdread: Can't stat null
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> No such file or directory
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> libdvdread: Could not open null
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> libdvdnav: vm: failed to open/read the DVD
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03] dvd: not a dvd - trying as a stream/file instead
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03] hb_stream_open: open null failed
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03] scan: unrecognized file type
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> [12:56:03] libhb: scan thread found 0 valid title(s)
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> No title found.
2021-12-07T12:56:03 MCEBuddy.AppWrapper.IntelQuery --> HandBrake has exited.
--> Process exited with code 2
INFORMATION> 2021-12-07T12:56:05 MCEBuddy.AppWrapper.IntelQuery --> QuickSync encoding support available -> True
2021-12-07T12:56:05 MCEBuddy.AppWrapper.IntelQuery --> H.264 encoding support available -> True
2021-12-07T12:56:05 MCEBuddy.AppWrapper.IntelQuery --> H.265 encoding support available -> True
--> Checking presence and capabilities of NVidia nvENC Hardware encoder
2021-12-07T12:56:05 MCEBuddy.AppWrapper.NVidiaQuery --> Launching process C:\Program Files\MCEBuddy2x\nvidia\nvidiaQuery.exe
2021-12-07T12:56:05 MCEBuddy.AppWrapper.NVidiaQuery --> Process arguments 
2021-12-07T12:56:05 MCEBuddy.AppWrapper.NVidiaQuery --> UI Session Admin Process : True
2021-12-07T12:56:05 MCEBuddy.AppWrapper.NVidiaQuery --> Starting process as a UISession process with Admin privileges. This requires atleast 1 user to be logged into the system (remote desktop or locally)
2021-12-07T12:56:05 MCEBuddy.AppWrapper.NVidiaQuery --> Setting process priority to Normal
2021-12-07T12:56:05 MCEBuddy.AppWrapper.NVidiaQuery --> C:\Program Files\MCEBuddy2x\nvidia\nvidiaQuery.exe Starting...
2021-12-07T12:56:05 MCEBuddy.AppWrapper.NVidiaQuery -->  CUDA Device Query (Runtime API) version (CUDART static linking)
2021-12-07T12:56:05 MCEBuddy.AppWrapper.NVidiaQuery --> cudaGetDeviceCount returned 35
2021-12-07T12:56:05 MCEBuddy.AppWrapper.NVidiaQuery --> -> CUDA driver version is insufficient for CUDA runtime version
2021-12-07T12:56:05 MCEBuddy.AppWrapper.NVidiaQuery --> Result = FAIL
--> Process exited with code 1
WARNING> 2021-12-07T12:56:08 MCEBuddy.AppWrapper.NVidiaQuery --> nvENC NVidia driver not detected or driver is too old
--> NVidia CUDA available -> False
INFORMATION> --> NVidia nvENC encoding supported -> False
--> NVidia H.264 Hardware Encoder Detected : False
--> NVidia H.265 Hardware Encoder Detected : False
--> Checking presence and capabilities of AMD Hardware encoder
2021-12-07T12:56:08 MCEBuddy.AppWrapper.AMDQuery --> Launching process C:\Program Files\MCEBuddy2x\amd\AMDQuery.exe
2021-12-07T12:56:08 MCEBuddy.AppWrapper.AMDQuery --> Process arguments 
2021-12-07T12:56:08 MCEBuddy.AppWrapper.AMDQuery --> UI Session Admin Process : True
2021-12-07T12:56:08 MCEBuddy.AppWrapper.AMDQuery --> Starting process as a UISession process with Admin privileges. This requires atleast 1 user to be logged into the system (remote desktop or locally)
2021-12-07T12:56:08 MCEBuddy.AppWrapper.AMDQuery --> Setting process priority to Normal
2021-12-07T12:56:08 MCEBuddy.AppWrapper.AMDQuery --> AMF Failed to initialize
--> Process exited with code 1
WARNING> 2021-12-07T12:56:10 MCEBuddy.AppWrapper.AMDQuery --> AMD driver not detected or driver is not compatible
INFORMATION> --> AMD AMF encoding support available -> False
--> AMD Video Encoders available -> 
--> AMD Video Decoders available -> 
--> AMD H.264 Hardware Encoder Detected : False
--> AMD H.265 Hardware Encoder Detected : False
--> Detected hardware encoder capability ->
{
  "hardwareBrand": "Intel",
  "codecType": "Encoder",
  "hardwareCodecPresent": true,
  "h265Codec": true,
  "h264Codec": true
}
INFORMATION> 2021-12-07T12:56:10 MCEBuddy.Engine.Core --> Starting license check thread
2021-12-07T12:56:20 MCEBuddy.Engine.Core --> Loaded MCEBuddy engine settings
INFORMATION> --> Windows OS Version -> Microsoft Windows NT 10.0.19043.0 (WIN_10_2016_SERVER, Professional)
INFORMATION> --> Windows Platform -> 64 Bit
INFORMATION> --> MCEBuddy Build Platform -> 64 Bit
INFORMATION> --> MCEBuddy Build Version : 2.5.6.1
INFORMATION> --> MCEBuddy Build Date : 04/30/2021 16:24:00
INFORMATION> --> MCEBuddy Running as Service : True
INFORMATION> --> MCEBuddy License -> Premium
--> Locale Language -> ENG
2021-12-07T12:56:20 MCEBuddy.Engine.Core --> MCEBuddy engine settings -> CONVERSION TASK OPTIONS ==>
Task -> Utorrent 2 HEVC
Profile -> HEVC MP4
Source File -> 
Relative Source Path -> 
Destination Path -> 
Working Path -> D:\temp
Fallback Destination -> False
Skip ReProcessing -> False
Check Reprocessing History -> False
Auto Increment Filename -> False
Add to iTunes Library -> False
Add to WMP Library -> False
Max Width -> 1920
Quality Multipltier -> 1
FPS -> 
Auto DeInterlacing -> True
Prefer Hardware Encoding -> True
Use GPU Brands -> Intel
Volume Multipltier -> 0
DRC -> False
Force Stereo -> False
Encoder Select Best Audio Track -> True
Profile Audio Language -> ENG
Audio Offset -> 0
Start Trim -> 0
End Trim -> 0
Closed Captions -> 
Closed Captions Offset -> 0
Embed Subtitles -> False
Embed Chapters -> False
Strict Processing -> False
Commercial Removal -> None
Custom Comskip INI Path -> 
Search Ad markers from chapters -> False
Task Commercial Skip Cut -> False
Keep Advertisements -> False
Download Series Details -> True
Download Banner -> True
Overwrite metata from Title -> False
Overwrite metata from Internet -> Default
Prioritize matching by Original Broadcast Date -> False
Force Show Type -> Default
Write Metadata -> True
Rename by Series -> False
Alt Rename by Series -> False
Custom Rename by Series -> 
Rename Only -> False
File Selection Pattern -> 
Show Selection Pattern -> 
Channel Selection Pattern -> 
Show Type Selection -> Default
Codec Type Selection -> Any
DRM Type Selection -> All
File Size Comparator -> LessThan
File Size Threshold -> 0
Video Bitrate Comparator -> LessThan
Video Bitrate Threshold (Kbps) -> 0
Video Width Comparator -> LessThan
Video Width Threshold (pixels) -> 0
Monitor Tasks Selection -> Utorrent
Insert at Top of Queue -> False
Extract XML -> False
Disable Cropping -> True
Skip Copying Original File for Backup -> False
Skip Remuxing Original File to TS -> False
Ignore Copy Protection -> False
TiVO MAK Key -> 
Destination Path Domain Name -> 
Destination Path User Name -> 
Destination Path Password -> 
Task Enabled -> True

You would need to attach your conversion log. This doesn’t show anything other than MCEBuddy detects that you have a QuickSync encoder available. The actual error from Handbrake would be in the conversion logs where it’s converting it.

I’m assuming the conversion log is part of the mcebuddy.log file ? if not where do i find the log you need? Thank you.
mcebuddy.log (59.4 KB)

That’s the mcebuddy service engine log. Each conversion has its own log starting with the file name in the same logs directory.

okay in my setup that file was never created and i don’t know why so i deleted mcebuddy and reinstalled from scratch and it did create a new log file. I did see this in this new log file
2021-12-08T14:46:47 MCEBuddy.AppWrapper.Handbrake → ERROR: hb_qsv_param_default_preset: invalid preset ‘medium’
2021-12-08T14:46:47 MCEBuddy.AppWrapper.Handbrake → ERROR: encqsvInit: hb_qsv_param_default_preset failed
2021-12-08T14:46:47 MCEBuddy.AppWrapper.Handbrake → ERROR: Failure to initialise thread ‘Quick Sync Video encoder (Intel Media SDK)’
I’ve attached the entire log file for you to look at. I don’t know what to do from this point. Thank you for any help it’s appriciated.
Star Trek Discovery - S04E03 - Choose to Live.mkv-Utorrent 2 HEVC-2021-12-08T14-45-33.log (990.3 KB)

Well here is another one this one was actually recorded by my plex dvr and the ran through mcebuddy. I don’t see the same errors in this one.
America’s Test Kitchen From Cook’s Illustrated (2003) - S19E04 - The Perfect Cake.ts-Plex HEVC-2021-12-08T15-00-33.log (870.9 KB)

Sorry for the delay, it looks like your hardware encoder is not recognizing the presets which is why it’s failing.

Can you try this

  • Open a command prompt
  • Change your directory to where MCEBuddy is installed and into the handbrake folder, e.g. C:\Program Files\MCEBuddy2x\handbrake

Type this in

HandBrakeCLI_qsv.exe --encoder-preset-list qsv_h265

and then after that

HandBrakeCLI.exe --encoder-preset-list qsv_h265

Send me the output you see

Thanks for reporting this, it’s a bug when using handbrake which as been fixed in today’s 2.4.7 beta build.
Your logs show the ffmpeg is using hardware encoding. This was specifically an issue when using the HEVC profile with handbrake and hardware encoding caused by an unsupported preset.

This was the output in the command prompt.

C:\Program Files\MCEBuddy2x\handbrake>HandBrakeCLI_qsv.exe --encoder-preset-list qsv_h265
[22:06:19] hb_init: starting libhb thread
[22:06:19] thread 1 started (“libhb”)
Available --encoder-preset values for ‘qsv_h265’ encoder:
speed
balanced
quality

C:\Program Files\MCEBuddy2x\handbrake>HandBrakeCLI.exe --encoder-preset-list qsv_h265
[22:06:38] Compile-time hardening features are enabled
Cannot load nvEncodeAPI64.dll
[22:06:38] hb_init: starting libhb thread
[22:06:38] thread 1 started (“libhb”)
Available --encoder-preset values for ‘qsv_h265’ encoder:
speed
balanced
quality

HandBrake has exited.

Thanks for confirming the issue. Please download the latest beta build and it should be fixed