Having issues enable H265 Quicksync

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
jools5000
Posts: 3
Joined: Sun Jan 08, 2017 4:11 pm

Having issues enable H265 Quicksync

Post by jools5000 »

Please detail your question or problem in as much detail as possible:
I'm trying to use Quicksync via the Skylake CPU on the system to quickly re-encode H264 files to H265

Issues:
Handbrake doesn't identify the system to support H265 via Quicksync and there is no option to use this
H264 only works via software

I've installed Intel Media SDK 2016 R2 as originally Handbrake didn't identify the system as supporting this due to using an external GPU

Tell us about your environment. What version of HandBrake? What version of Windows are you running. etc.
Windows 10 x64 and Handbrake 1.0.1

If there was any exception or error displayed, please copy it and paste it here:
No but the log is enclosed

Please include the scan or encode log:

Code: Select all

 HandBrake 1.0.1 (2016122900) - 64bit
OS: Microsoft Windows NT 10.0.14393.0 - 64bit
CPU: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz
Ram: 8065 MB, 
GPU Information:
  Intel(R) HD Graphics 530 - 21.20.16.4542
  NVIDIA GeForce GTX 960 - 21.21.13.7633
Screen: 1920x1080
Temp Dir: C:\Users\jools\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\jools\AppData\Roaming\HandBrake Team\HandBrake\1.0.1.0

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


# Starting Encode ...

[15:33:39] hb_init: starting libhb thread
[15:33:39] 1 job(s) to process
[15:33:39] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "File": "E:\\Encodes\\Test-1.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 131072
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "40",
          "block-width": "16",
          "filter-mode": "2",
          "mode": "3",
          "motion-thresh": "1",
          "spatial-metric": "2",
          "spatial-thresh": "1"
        }
      },
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "808",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "E:\\Encodes\\Test.mp4"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 256,
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "balanced",
    "Profile": "auto",
    "Quality": 22.0,
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": true,
      "AsyncDepth": 0
    }
  }
}
[15:33:39] CPU: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz
[15:33:39]  - Intel microarchitecture Skylake
[15:33:39]  - logical processor count: 4
[15:33:39] OpenCL device #1: NVIDIA Corporation GeForce GTX 960
[15:33:39]  - OpenCL version: 1.2 CUDA
[15:33:39]  - driver version: 376.33
[15:33:39]  - device type:    GPU
[15:33:39]  - supported:      no
[15:33:39] OpenCL device #2: Intel(R) Corporation Intel(R) HD Graphics 530
[15:33:39]  - OpenCL version: 2.0
[15:33:39]  - driver version: 21.20.16.4542
[15:33:39]  - device type:    GPU
[15:33:39]  - supported:      YES
[15:33:39] Intel Quick Sync Video support: yes
[15:33:39]  - Intel Media SDK software: API 1.19 (minimum: 1.3)
[15:33:39]  - H.264 encoder: yes
[15:33:39]     - preferred implementation: software
[15:33:39]     - capabilities (software):  bpyramid vsinfo opt1 opt2
[15:33:39]  - H.265 encoder: no
[15:33:39] hb_scan: path=E:\Encodes\Test.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image E:\Encodes\Test.mp4
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[15:33:39] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[15:33:39] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\Encodes\Test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2014-05-08 03:04:00
  Duration: 02:02:18.87, start: 0.000000, bitrate: 2160 kb/s
    Stream #0:0(und): Video: h264 (High) [avc1 / 0x31637661]
      yuv420p, tv, bt709/bt709/unknown
      1920x808, 2062 kb/s
      23.98 fps, 24k tbn (default)
    Metadata:
      creation_time   : 2014-05-08 03:04:00
      handler_name    : video.264#trackID=1:fps=23.976 - Imported with GPAC 0.5.0-rev4065
    Stream #0:1(eng): Audio: aac (LC) [mp4a / 0x6134706D]
      48000 Hz, stereo, fltp, 93 kb/s (default)
    Metadata:
      creation_time   : 2014-05-08 03:04:12
      handler_name    : GPAC ISO Audio Handler
[15:33:39] scan: decoding previews for title 1
[15:33:39] scan: audio 0x1: aac, rate=48000Hz, bitrate=93809 English (AAC) (2.0 ch)
[15:33:39] scan: 10 previews, 1920x808, 23.976 fps, autocrop = 0/0/0/0, aspect 2.38:1, PAR 1:1
[15:33:39] scan: supported video decoders: avcodec qsv
[15:33:39] libhb: scan thread found 1 valid title(s)
[15:33:39] Skipping subtitle scan.  No suitable subtitle tracks.
[15:33:39] starting job
[15:33:39] decomb filter thread started for segment 0
[15:33:39] decomb filter thread started for segment 1
[15:33:39] decomb filter thread started for segment 2
[15:33:39] yadif thread started for segment 0
[15:33:39] decomb check thread started for segment 0
[15:33:39] work: track 1, dithering not supported by codec
[15:33:39] work: only 1 chapter, disabling chapter markers
[15:33:39] job configuration:
[15:33:39]  * source
[15:33:39]    + E:\Encodes\Test.mp4
[15:33:39] decomb check thread started for segment 1
[15:33:39]    + title 1, chapter(s) 1 to 1
[15:33:39]    + container: mov,mp4,m4a,3gp,3g2,mj2
[15:33:39]    + data rate: 2160 kbps
[15:33:39]  * destination
[15:33:39]    + E:\Encodes\Test-1.m4v
[15:33:39]    + container: MPEG-4 (libavformat)
[15:33:39]  * video track
[15:33:39]    + decoder: h264_qsv
[15:33:39]      + bitrate 2062 kbps
[15:33:39]    + filters
[15:33:39] decomb check thread started for segment 2
[15:33:39]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[15:33:39]      + Decomb (mode=39)
[15:33:39]      + Framerate Shaper (mode=1)
[15:33:39]        + frame rate: 23.976 fps -> constant 23.976 fps
[15:33:39]      + Crop and Scale (width=1920:height=808:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[15:33:39]        + source: 1920 * 808, crop (0/0/0/0): 1920 * 808, scale: 1920 * 808
[15:33:39] mask filter thread started for segment 0
[15:33:39]    + Output geometry
[15:33:39]      + storage dimensions: 1920 x 808
[15:33:39]      + pixel aspect ratio: 1 : 1
[15:33:39]      + display dimensions: 1920 x 808
[15:33:39]    + encoder: H.264 (Intel Media SDK)
[15:33:39]      + preset:  balanced
[15:33:39]      + profile: auto
[15:33:39]      + level:   auto
[15:33:39]      + quality: 22.00 (QP)
[15:33:39]  * audio track 1
[15:33:39]    + decoder: English (AAC) (2.0 ch) (track 1, id 0x1)
[15:33:39]      + bitrate: 93 kbps, samplerate: 48000 Hz
[15:33:39]    + mixdown: Stereo
[15:33:39]    + encoder: AAC (libavcodec)
[15:33:39]      + bitrate: 160 kbps, samplerate: 48000 Hz
[15:33:39] decomb check thread started for segment 3
[15:33:39] mask filter thread started for segment 1
[15:33:39] mask filter thread started for segment 3
[15:33:39] mask filter thread started for segment 2
[15:33:39] mask erode thread started for segment 0
[15:33:39] mask erode thread started for segment 1
[15:33:39] mask erode thread started for segment 2
[15:33:39] mask erode thread started for segment 3
[15:33:39] mask dilate thread started for segment 0
[15:33:39] mask dilate thread started for segment 1
[15:33:39] mask dilate thread started for segment 2
[15:33:39] mask dilate thread started for segment 3
[15:33:39] decomb filter thread started for segment 3
[15:33:39] yadif thread started for segment 1
[15:33:39] yadif thread started for segment 2
[15:33:39] yadif thread started for segment 3
[15:33:40] sync: expecting 175956 video frames
[15:33:40] encqsvInit: using encode-only path
[15:33:40] encqsvInit: H.264/AVC High profile @ level 4.0
[15:33:40] encqsvInit: TargetUsage 4 AsyncDepth 0
[15:33:40] encqsvInit: GopRefDist 4 GopPicSize 32 NumRefFrame 3
[15:33:40] encqsvInit: BFramesMax 3 BRefType pyramid
[15:33:40] encqsvInit: RateControlMethod CQP with QPI 22 QPP 24 QPB 26
[15:33:40] sync: first pts audio 0x1 is 0
[15:33:40] sync: first pts video is 7507
[15:33:40] sync: "Chapter 1" (1) at frame 1 time 7507
[15:33:40] qsv_enc_init: using 'software' implementation, API: 1.19
[15:33:40] compute_init_delay: invalid delay 0 (PTS: 0, DTS: 0)

# Encode Stopped

[15:33:49] work: average encoding speed for job is 34.613182 fps
[15:33:49] comb detect: heavy 0 | light 0 | uncombed 292 | total 292
[15:33:49] decomb: deinterlaced 0 | blended 0 | unfiltered 283 | total 283
[15:33:49] vfr: 278 frames output, 0 dropped and 2 duped for CFR/PFR
[15:33:49] vfr: lost time: 0 (0 frames)
[15:33:49] vfr: gained time: 0 (0 frames) (0 not accounted for)
[15:33:49] aac-decoder done: 735 frames, 0 decoder errors
[15:33:49] h264_qsv-decoder done: 347 frames, 0 decoder errors
[15:33:49] sync: got 310 frames, 175956 expected
[15:33:49] sync: framerate min 23.974 fps, max 23.981 fps, avg 23.976 fps
[15:33:49] mux: track 0, 263 frames, 5858274 bytes, 3613.07 kbps, fifo 512
[15:33:49] mux: track 1, 607 frames, 207413 bytes, 127.92 kbps, fifo 1024
[15:33:49] libhb: work result = 1

# Encode Completed ...

davidm71
Posts: 46
Joined: Sat Dec 31, 2016 2:44 am

Re: Having issues enable H265 Quicksync

Post by davidm71 »

Maybe you need to update your Intel igpu drivers. Also worth running Dxvachecker to see if your igpu supports the codec you want to encode: http://bluesky23.yukishigure.com/en/DXVAChecker.html
nd4spd
Posts: 7
Joined: Sat Mar 22, 2014 7:24 am

Re: Having issues enable H265 Quicksync

Post by nd4spd »

It seems that your current Intel iGPU driver is not completely or successfully installed. Try the following steps:

1) Download Display Driver Uninstaller (DDU) from guru3d.com and choose the safe mode option. It will completely remove the intel driver
in safe mode after reboot. Keep in mind to choose the intel driver because you can remove your dGPU driver as well.

2) Download the lastest iGPU driver 15.45.12.64.4551 from stationdrivers.com and install it.
Link: http://mail.station-drivers.com/index.p ... 16&lang=fr

3) Reboot

4) If the intel driver was successfully installed, you should see the following additional infos in your log (marked in bold):

[12:40:50] Intel Quick Sync Video support: yes
[12:40:50] - Intel Media SDK hardware: API 1.20 (minimum: 1.3)
[12:40:50] - Intel Media SDK software: API 1.19 (minimum: 1.3)
[12:40:50] - H.264 encoder: yes
[12:40:50] - preferred implementation: hardware (any)
[12:40:50] - capabilities (hardware): breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[12:40:50] - capabilities (software): bpyramid vsinfo opt1 opt2
[12:40:50] - H.265 encoder: yes

Hope that helps. Any questions? Feel free to ask.

Cheers
jools5000
Posts: 3
Joined: Sun Jan 08, 2017 4:11 pm

Re: Having issues enable H265 Quicksync

Post by jools5000 »

Ill give that a try and report back!
gmb
Bright Spark User
Posts: 350
Joined: Thu Mar 28, 2013 12:49 pm

Re: Having issues enable H265 Quicksync

Post by gmb »

You have to use another software that supports QS H265 because Handbrake suffers from too many freeze and performance issues. It's known since ages, they don't fix it, any further reports will be useless. And by the way HEVC suffers from a poor scene change performance because of the missing Lookahead, it only makes sense if you go over 5 Mbit @1080p. Otherwise I would recommend H264 VBR_LA TU4. It might change if they add Lookahead to HEVC.
jools5000
Posts: 3
Joined: Sun Jan 08, 2017 4:11 pm

Re: Having issues enable H265 Quicksync

Post by jools5000 »

Have remove and reinstalled the latest beta which is newer than the one posted

Still no change, from another post seems that I may have to have a monitor connected to the onboard to use Quicksync which isn't practical

Frustrating to have 2 GPU's that can do H265 and cannot use either! I was using Mediacoder which supports NVENC but was getting frustrated with the nag messages, and always preferred Handbrake which is why I was keen to try this method.
nd4spd
Posts: 7
Joined: Sat Mar 22, 2014 7:24 am

Re: Having issues enable H265 Quicksync

Post by nd4spd »

Just to clarify that:
You cant get QSV working. Than you read in another post in this forum that your monitor might be connected to your dGPU in order to get QSV recognized/working.
But instead of making the tiny tiny effort to switch your monitor cable to your dGPU (or got it connected BEFORE the aforementioned driver installation procedure) you choose not to do it only because "it isnt practical"?
Oh, c'mon, you cant be serious.
Post Reply