Using QSV H.265

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
spetrillo
Posts: 17
Joined: Sun Oct 20, 2019 10:41 pm

Using QSV H.265

Post by spetrillo »

I don't know if you want to pin this but you might...

For those of you using QSV H.265 on Windows please check your hardware presets. I was defaulting to General/Fast 1080p30. While that works for what I use Handbrake for, making one tiny change doubled my transcode performance. All you need to do is change your preset to Hardware/H.265 QSV 2160p 4K and make it the default.

On a Wi-Fi connection I was transcoding at 80-90 FPS on the original preset. Changing it now doubled my transcoding to 190-200 FPS and cut my transcode time in half.

A simple change!
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Using QSV H.265

Post by rollin_eng »

But you are sacrificing quality/size for that speed.

If that works for you, great.
spetrillo
Posts: 17
Joined: Sun Oct 20, 2019 10:41 pm

Re: Using QSV H.265

Post by spetrillo »

This is for my weekly TV shows. What do you use instead? Always willing to learn!
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Using QSV H.265

Post by rollin_eng »

I prefer the quality and size of x265 as I don’t care about speed.
spetrillo
Posts: 17
Joined: Sun Oct 20, 2019 10:41 pm

Re: Using QSV H.265

Post by spetrillo »

For TV shows is this a noticeable difference from using the QSV H.265? I would assume you are using the standard H.265 setting? I am taking H.264 video files and converting them to H.265.
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Using QSV H.265

Post by rollin_eng »

Could you please post your HB logs, instructions can be found here:

https://handbrake.fr/docs/en/latest/hel ... y-log.html
spetrillo
Posts: 17
Joined: Sun Oct 20, 2019 10:41 pm

Re: Using QSV H.265

Post by spetrillo »

Here you go. This is a representative file I convert weekly.

HandBrake 1.6.1 (2023012300)
OS: Microsoft Windows NT 10.0.22621.0
CPU: Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
Ram: 16247 MB,
GPU Information:
Intel(R) Iris(R) Plus Graphics 655 - 31.0.101.2114
Screen: 2560x1440
Temp Dir: C:\Users\steve\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\steve\AppData\Roaming\HandBrake

-------------------------------------------

# Starting Encode ...

[12:15:54] base preset: H.265 QSV 2160p 4K
[12:15:54] Remote Process started with Process ID: 7260 using port: 8037. Max Allowed Instances: 1
[12:15:54] Worker: Starting HandBrake Engine ...
[12:15:54] Worker: Starting Web Server on port 8037 ...
[12:15:55] Worker: Disconnected worker monitoring enabled!
[12:15:55] Compile-time hardening features are enabled
[12:15:55] qsv: is available on this system
[12:15:55] vcn: not available on this system
Cannot load nvEncodeAPI64.dll
[12:15:55] hb_init: starting libhb thread
[12:15:55] Starting work at: Wed Mar 22 12:15:55 2023
[12:15:55] 1 job(s) to process
[12:15:55] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 160,
"DRC": 0,
"Encoder": "av_aac",
"Gain": 0,
"Mixdown": 4,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Track": 0,
"DitherMethod": 0
}
],
"CopyMask": [
"copy:aac"
]
},
"Destination": {
"ChapterList": [
{
"Name": "Chapter 1"
}
],
"ChapterMarkers": true,
"AlignAVStart": false,
"File": "C:\\Users\\steve\\Videos\\Accused - S01e09 - Jack\u0027s Story.mp4",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": "av_mp4"
},
"Filters": {
"FilterList": [
{
"ID": 14,
"Settings": {
"crop-bottom": "0",
"crop-left": "0",
"crop-right": "0",
"crop-top": "0",
"height": "1080",
"width": "1920"
}
},
{
"ID": 7,
"Settings": {
"mode": "0"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 1
},
"Title": 1,
"Path": "Z:\\Media Files\\Transcode\\Pre\\TV Shows\\Accused\\Season 01\\Accused - S01E09 - Jack\u0027s Story.mkv"
},
"Subtitle": {
"Search": {
"Burn": false,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"Encoder": "qsv_h265",
"Level": "auto",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "speed",
"Profile": "auto",
"Quality": 28,
"QSV": {
"Decode": true
},
"HardwareDecode": 0
}
}
[12:15:55] CPU: Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
[12:15:55] - Intel microarchitecture Kaby Lake
[12:15:55] - logical processor count: 8
[12:15:55] Intel Quick Sync Video support: yes, gpu list: 0
[12:15:55] Intel Quick Sync Video integrated adapter with index 0
[12:15:55] Impl mfxhw64 library path: C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_efddc0ba4c36f38b\libmfxhw64.dll
[12:15:55] - Intel Media SDK hardware: API 1.35 (minimum: 1.3)
[12:15:55] - Decode support: h264 hevc (8bit: yes, 10bit: yes)
[12:15:55] - H.264 encoder: yes
[12:15:55] - preferred implementation: hardware (1) via D3D11
[12:15:55] - capabilities (hardware): breftype icq+la+i+downs vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[12:15:55] - H.265 encoder: yes (8bit: yes, 10bit: yes)
[12:15:55] - preferred implementation: hardware (1) via D3D11
[12:15:55] - capabilities (hardware): bpyramid icq vsinfo masteringinfo cllinfo opt1
[12:15:55] - AV1 encoder: no
[12:15:55] hb_scan: path=Z:\Media Files\Transcode\Pre\TV Shows\Accused\Season 01\Accused - S01E09 - Jack's Story.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image Z:\Media Files\Transcode\Pre\TV Shows\Accused\Season 01\Accused - S01E09 - Jack's Story.mkv
src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
[12:15:56] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdreadlibdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[12:15:56] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'Z:\Media Files\Transcode\Pre\TV Shows\Accused\Season 01\Accused - S01E09 - Jack's Story.mkv':
Metadata:
encoder : libebml v1.4.0 + libmatroska v1.6.1
Duration: 00:44:07.06, start: 0.000000, bitrate: 4946 kb/s
Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn (default)
Stream #0:1(eng): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp (default)
Stream #0:2(eng): Subtitle: subrip
Metadata:
title : English
[12:15:56] scan: decoding previews for title 1
[12:15:56] scan: audio 0x1: aac, rate=48000Hz, bitrate=1 English (HE-AAC) (2.0 ch)
[12:16:00] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 60/60/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[12:16:00] scan: supported video decoders: avcodec qsv
[12:16:00] libhb: scan thread found 1 valid title(s)
[12:16:00] qsv: integrated qsv adapter with index 0 has been selected
[12:16:00] Starting Task: Encoding Pass
[12:16:00] Skipping vfr filter
[12:16:00] Skipping crop/scale filter
[12:16:00] work: track 1, dithering not supported by codec
[12:16:00] work: only 1 chapter, disabling chapter markers
[12:16:00] job configuration:
[12:16:00] * source
[12:16:00] + Z:\Media Files\Transcode\Pre\TV Shows\Accused\Season 01\Accused - S01E09 - Jack's Story.mkv
[12:16:00] + title 1, chapter(s) 1 to 1
[12:16:00] + container: matroska,webm
[12:16:00] + data rate: 4946 kbps
[12:16:00] * destination
[12:16:00] + C:\Users\steve\Videos\Accused - S01e09 - Jack's Story.mp4
[12:16:00] + container: MPEG-4 (libavformat)
[12:16:00] * video track
[12:16:00] + decoder: h264_qsv 8-bit (nv12)
[12:16:00] + Output geometry
[12:16:00] + storage dimensions: 1920 x 1080
[12:16:00] + pixel aspect ratio: 1 : 1
[12:16:00] + display dimensions: 1920 x 1080
[12:16:00] + encoder: H.265 (Intel Media SDK)
[12:16:00] + preset: speed
[12:16:00] + profile: auto
[12:16:00] + level: auto
[12:16:00] + quality: 28.00 (ICQ)
[12:16:00] + color profile: 1-1-1
[12:16:00] + chroma location: left
[12:16:00] * audio track 1
[12:16:00] + decoder: English (HE-AAC) (2.0 ch) (track 1, id 0x1)
[12:16:00] + samplerate: 48000 Hz
[12:16:00] + mixdown: Stereo
[12:16:00] + encoder: AAC (libavcodec)
[12:16:00] + bitrate: 160 kbps, samplerate: 48000 Hz
[12:16:00] sync: expecting 63465 video frames
[12:16:00] encqsvInit: using full QSV path
[12:16:00] encqsvInit: H.265/HEVC Main profile @ level (null)
[12:16:00] encqsvInit: TargetUsage 7 AsyncDepth 4
[12:16:00] encqsvInit: GopRefDist 4 GopPicSize 24 NumRefFrame 3 IdrInterval 0
[12:16:00] encqsvInit: BFramesMax 3 BRefType pyramid
[12:16:00] encqsvInit: RateControlMethod ICQ ICQQuality 28
[12:16:00] sync: first pts video is 0
[12:16:00] sync: "Chapter 1" (1) at frame 1 time 0
[12:16:00] sync: first pts audio 0x1 is 0
[12:16:00] qsv_enc_init: using 'hardware (1) via D3D11' implementation, API: 1.35
[12:28:49] reader: done. 1 scr changes
[12:28:50] work: average encoding speed for job is 82.391228 fps
[12:28:50] aac-decoder done: 62040 frames, 0 decoder errors
[12:28:50] h264_qsv-decoder done: 63466 frames, 0 decoder errors
[12:28:50] sync: got 63466 frames, 63465 expected
[12:28:50] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[12:28:50] mux: track 0, 63466 frames, 270510455 bytes, 817.54 kbps, fifo 4096
[12:28:50] mux: track 1, 124081 frames, 53419626 bytes, 161.45 kbps, fifo 8192
[12:28:50] Finished work at: Wed Mar 22 12:28:50 2023
[12:28:50] libhb: work result = 0

# Job Completed!
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Using QSV H.265

Post by rollin_eng »

Why are you converting the video?
spetrillo
Posts: 17
Joined: Sun Oct 20, 2019 10:41 pm

Re: Using QSV H.265

Post by spetrillo »

I am converting it from H.264(MKV) to H.265(MP4). This allows all the streaming devices I use to play a compatible file.
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Using QSV H.265

Post by rollin_eng »

spetrillo wrote: Thu Mar 23, 2023 1:36 pm I am converting it from H.264(MKV) to H.265(MP4). This allows all the streaming devices I use to play a compatible file.
Do you just need your files in a MP4 container? Or do you have to have a h265 file as well?

If you just need to change containers I would just remux rather than reencode.
spetrillo
Posts: 17
Joined: Sun Oct 20, 2019 10:41 pm

Re: Using QSV H.265

Post by spetrillo »

Ideally a remux would work but I would like to save the space using H.265. A typical 1.2 gig video file is actually 600 meg with H.265.
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Using QSV H.265

Post by rollin_eng »

I personally don’t have much experience encoding in h265 to save space, I’d rather have better quality and just buy more disk space :D
Post Reply