Intel QSV h264 works, but not h265

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
Barnbaby
Posts: 5
Joined: Mon Mar 02, 2015 3:52 am

Intel QSV h264 works, but not h265

Post by Barnbaby »

I cannot get the Intel QSV h265 encoding option to work, although the h264 option works with the same video (a Blu-Ray movie).




Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.0.0):

1.2.2 (2019022300)




Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):

Microsoft Windows 10 Home
Version 10.0.17134 Build 17134 (from System Information)


HandBrake Activity Log ***required*** (see How-to get an activity log)

HandBrake 1.2.2 (2019022300)
OS: Microsoft Windows NT 10.0.17134.0
CPU: Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz
Ram: 8060 MB,
GPU Information:
NVIDIA GeForce GTX 960M - 25.21.14.1935
Intel(R) HD Graphics 530 - 23.20.16.4973
Screen: 3840x2160
Temp Dir: C:\Users\David B\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\David B\AppData\Roaming\HandBrake

Log of x265 encode attempt

Code: Select all

# Starting Encode ...

[18:31:53] hb_init: starting libhb thread
[18:31:53] 1 job(s) to process
[18:31:53] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "D:\\Video\\Handbrake recodes x265\\Justice League Dark-1.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mkv"
  },
  "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": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 8
    },
    "Title": 1,
    "Path": "G:\\Video\\BluRay\\MainMovie\\Justice League Dark"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "nvenc_h265",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "slow",
    "Profile": "auto",
    "Quality": 22.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[18:31:53] CPU: Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz
[18:31:53]  - Intel microarchitecture Skylake
[18:31:53]  - logical processor count: 4
[18:31:53] Intel Quick Sync Video support: no
[18:31:53] hb_scan: path=G:\Video\BluRay\MainMovie\Justice League Dark, title_index=1
[18:31:53] scan: BD has 1 title(s)
[18:31:53] bd: scanning title 1
[18:31:53] bd: playlist 00000.MPLS
[18:31:53] bd: duration is 01:15:50 (4550837 ms)
[18:31:53] bd: video id=0x1011, stream type=H.264, format 1080p
[18:31:53] bd: aspect = 16:9
[18:31:53] bd: audio id=0x711100, lang=English (DTS), 3cc=eng
[18:31:53] bd: audio id=0x1100, lang=English (DTS-HD MA), 3cc=eng
[18:31:53] bd: subtitle id=0x1200, lang=English [PGS], 3cc=eng
[18:31:53] bd: chap 1 packet=960, 779069 ms
[18:31:53] bd: chap 2 packet=2021533440, 564855 ms
[18:31:53] bd: chap 3 packet=3515732928, 653027 ms
[18:31:53] bd: chap 4 packet=5210506176, 537495 ms
[18:31:53] bd: chap 5 packet=6619812096, 725516 ms
[18:31:53] bd: chap 6 packet=8518420032, 597805 ms
[18:31:53] bd: chap 7 packet=10034795712, 496370 ms
[18:31:53] bd: chap 8 packet=11275186944, 196696 ms
[18:31:53] bd: title 1 has 8 chapters
[18:31:53] scan: decoding previews for title 1
[18:31:53] scan: title angle(s) 1
[18:31:53] scan: audio 0x711100: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[18:31:53] scan: audio 0x1100: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[18:31:55] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[18:31:55] scan: supported video decoders: avcodec qsv
[18:31:55] stream: 8 good frames, 0 errors (0%)
[18:31:55] libhb: scan thread found 1 valid title(s)
[18:31:55] starting job
[18:31:55] decomb filter thread started for segment 0
[18:31:55] decomb filter thread started for segment 1
[18:31:55] decomb filter thread started for segment 3
[18:31:55] mask erode thread started for segment 0
[18:31:55] mask dilate thread started for segment 0
[18:31:55] decomb check thread started for segment 1
[18:31:55] yadif thread started for segment 1
[18:31:55] decomb check thread started for segment 3
[18:31:55] job configuration:
[18:31:55] mask filter thread started for segment 0
[18:31:55]  * source
[18:31:55]    + G:\Video\BluRay\MainMovie\Justice League Dark
[18:31:55]    + title 1, chapter(s) 1 to 8
[18:31:55]  * destination
[18:31:55]    + D:\Video\Handbrake recodes x265\Justice League Dark-1.mkv
[18:31:55]    + container: Matroska (libavformat)
[18:31:55]      + chapter markers
[18:31:55]  * video track
[18:31:55]    + decoder: h264
[18:31:55]      + bitrate 200 kbps
[18:31:55]    + filters
[18:31:55]      + 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)
[18:31:55]      + Decomb (mode=39)
[18:31:55] mask filter thread started for segment 1
[18:31:55]      + Framerate Shaper (mode=0)
[18:31:55]        + frame rate: same as source (around 23.976 fps)
[18:31:55]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[18:31:55]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[18:31:55]    + Output geometry
[18:31:55]      + storage dimensions: 1920 x 1080
[18:31:55]      + pixel aspect ratio: 1 : 1
[18:31:55]      + display dimensions: 1920 x 1080
[18:31:55]    + encoder: H.265 (NVEnc)
[18:31:55]      + preset:  slow
[18:31:55]      + profile: auto
[18:31:55]      + level:   auto
[18:31:55]      + quality: 22.00 (CQ)
[18:31:55]      + color profile: 1-1-1
[18:31:55]  * audio track 1
[18:31:55]    + decoder: English (DTS) (5.1 ch) (track 1, id 0x711100)
[18:31:55]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[18:31:55]    + mixdown: Stereo
[18:31:55] mask filter thread started for segment 2
[18:31:55]    + dither: none
[18:31:55]    + encoder: AAC (libavcodec)
[18:31:55]      + bitrate: 160 kbps, samplerate: 48000 Hz
[18:31:55] mask filter thread started for segment 3
[18:31:55] decomb filter thread started for segment 2
[18:31:55] mask erode thread started for segment 1
[18:31:55] mask erode thread started for segment 2
[18:31:55] mask erode thread started for segment 3
[18:31:55] decomb check thread started for segment 0
[18:31:55] mask dilate thread started for segment 1
[18:31:55] mask dilate thread started for segment 2
[18:31:55] mask dilate thread started for segment 3
[18:31:55] yadif thread started for segment 0
[18:31:55] yadif thread started for segment 2
[18:31:55] decomb check thread started for segment 2
[18:31:55] yadif thread started for segment 3
[18:31:55] sync: expecting 109110 video frames
[18:31:55] encavcodecInit: H.265 (Nvidia NVENC)
[18:31:55] encavcodec: encoding at rc=constqp QP 22.00
[18:31:55] encavcodec: encoding with stored aspect 1/1
[hevc_nvenc @ 0000020936b29080] No NVENC capable devices found
[18:31:56] encavcodecInit: avcodec_open failed
Failure to initialise thread 'FFMPEG encoder (libavcodec)'
Failure to initialise thread 'FFMPEG encoder (libavcodec)'
[18:31:56] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[18:31:56] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[18:31:56] vfr: lost time: 0 (0 frames)
[18:31:56] vfr: gained time: 0 (0 frames) (0 not accounted for)
[18:31:56] dca-decoder done: 0 frames, 0 decoder errors
[18:31:56] h264-decoder done: 0 frames, 0 decoder errors
[18:31:56] sync: got 0 frames, 109110 expected
[18:31:56] libhb: work result = 3

# Encode Completed ...

===========================================================================================================================================

Log of x264 encode (I stopped encode after determining it was running correctly)

# Starting Encode ...

[18:33:07] hb_init: starting libhb thread
[18:33:07] 1 job(s) to process
[18:33:07] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "D:\\Video\\Handbrake recodes x265\\Justice League Dark-1.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mkv"
  },
  "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": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 8
    },
    "Title": 1,
    "Path": "G:\\Video\\BluRay\\MainMovie\\Justice League Dark"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "nvenc_h264",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "slow",
    "Profile": "auto",
    "Quality": 22.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[18:33:07] CPU: Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz
[18:33:07]  - Intel microarchitecture Skylake
[18:33:07]  - logical processor count: 4
[18:33:07] Intel Quick Sync Video support: no
[18:33:07] hb_scan: path=G:\Video\BluRay\MainMovie\Justice League Dark, title_index=1
[18:33:07] scan: BD has 1 title(s)
[18:33:07] bd: scanning title 1
[18:33:07] bd: playlist 00000.MPLS
[18:33:07] bd: duration is 01:15:50 (4550837 ms)
[18:33:07] bd: video id=0x1011, stream type=H.264, format 1080p
[18:33:07] bd: aspect = 16:9
[18:33:07] bd: audio id=0x711100, lang=English (DTS), 3cc=eng
[18:33:07] bd: audio id=0x1100, lang=English (DTS-HD MA), 3cc=eng
[18:33:07] bd: subtitle id=0x1200, lang=English [PGS], 3cc=eng
[18:33:07] bd: chap 1 packet=960, 779069 ms
[18:33:07] bd: chap 2 packet=2021533440, 564855 ms
[18:33:07] bd: chap 3 packet=3515732928, 653027 ms
[18:33:07] bd: chap 4 packet=5210506176, 537495 ms
[18:33:07] bd: chap 5 packet=6619812096, 725516 ms
[18:33:07] bd: chap 6 packet=8518420032, 597805 ms
[18:33:07] bd: chap 7 packet=10034795712, 496370 ms
[18:33:07] bd: chap 8 packet=11275186944, 196696 ms
[18:33:07] bd: title 1 has 8 chapters
[18:33:07] scan: decoding previews for title 1
[18:33:07] scan: title angle(s) 1
[18:33:07] scan: audio 0x711100: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[18:33:07] scan: audio 0x1100: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[18:33:09] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[18:33:09] scan: supported video decoders: avcodec qsv
[18:33:09] stream: 8 good frames, 0 errors (0%)
[18:33:09] libhb: scan thread found 1 valid title(s)
[18:33:09] starting job
[18:33:09] decomb filter thread started for segment 0
[18:33:09] decomb filter thread started for segment 1
[18:33:09] decomb filter thread started for segment 2
[18:33:09] decomb filter thread started for segment 3
[18:33:09] mask dilate thread started for segment 3
[18:33:09] decomb check thread started for segment 1
[18:33:09] decomb check thread started for segment 2
[18:33:09] decomb check thread started for segment 3
[18:33:09] mask filter thread started for segment 1
[18:33:09] job configuration:
[18:33:09]  * source
[18:33:09]    + G:\Video\BluRay\MainMovie\Justice League Dark
[18:33:09]    + title 1, chapter(s) 1 to 8
[18:33:09]  * destination
[18:33:09]    + D:\Video\Handbrake recodes x265\Justice League Dark-1.mkv
[18:33:09]    + container: Matroska (libavformat)
[18:33:09]      + chapter markers
[18:33:09]  * video track
[18:33:09]    + decoder: h264
[18:33:09]      + bitrate 200 kbps
[18:33:09] mask filter thread started for segment 0
[18:33:09]    + filters
[18:33:09]      + 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)
[18:33:09]      + Decomb (mode=39)
[18:33:09]      + Framerate Shaper (mode=0)
[18:33:09]        + frame rate: same as source (around 23.976 fps)
[18:33:09]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[18:33:09] mask filter thread started for segment 2
[18:33:09]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[18:33:09]    + Output geometry
[18:33:09]      + storage dimensions: 1920 x 1080
[18:33:09]      + pixel aspect ratio: 1 : 1
[18:33:09]      + display dimensions: 1920 x 1080
[18:33:09]    + encoder: H.264 (NVEnc)
[18:33:09]      + preset:  slow
[18:33:09]      + profile: auto
[18:33:09]      + level:   auto
[18:33:09]      + quality: 22.00 (CQ)
[18:33:09]      + color profile: 1-1-1
[18:33:09]  * audio track 1
[18:33:09]    + decoder: English (DTS) (5.1 ch) (track 1, id 0x711100)
[18:33:09]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[18:33:09]    + mixdown: Stereo
[18:33:09]    + dither: none
[18:33:09]    + encoder: AAC (libavcodec)
[18:33:09] mask filter thread started for segment 3
[18:33:09]      + bitrate: 160 kbps, samplerate: 48000 Hz
[18:33:09] mask erode thread started for segment 0
[18:33:09] mask erode thread started for segment 1
[18:33:09] mask erode thread started for segment 2
[18:33:09] mask erode thread started for segment 3
[18:33:09] mask dilate thread started for segment 0
[18:33:09] mask dilate thread started for segment 1
[18:33:09] mask dilate thread started for segment 2
[18:33:09] decomb check thread started for segment 0
[18:33:09] yadif thread started for segment 0
[18:33:09] yadif thread started for segment 1
[18:33:09] yadif thread started for segment 2
[18:33:09] yadif thread started for segment 3
[18:33:09] sync: expecting 109110 video frames
[18:33:09] encavcodecInit: H.264 (Nvidia NVENC)
[18:33:09] encavcodec: encoding at rc=constqp QP 22.00
[18:33:09] encavcodec: encoding with stored aspect 1/1
[18:33:10] sync: first pts video is 0
[18:33:10] sync: "Chapter 1" (1) at frame 1 time 0
[18:33:10] sync: first pts audio 0x711100 is 0

# Encode Stopped

[18:33:48] work: average encoding speed for job is 84.871620 fps
[18:33:48] comb detect: heavy 0 | light 20 | uncombed 3232 | total 3252
[18:33:48] decomb: deinterlaced 0 | blended 20 | unfiltered 3227 | total 3247
[18:33:48] vfr: lost time: 0 (0 frames)
[18:33:48] vfr: gained time: 0 (0 frames) (0 not accounted for)
[18:33:48] stream: 3295 good frames, 0 errors (0%)
[18:33:48] dca-decoder done: 12813 frames, 0 decoder errors
[18:33:48] h264-decoder done: 3287 frames, 0 decoder errors
[18:33:49] sync: got 3253 frames, 109110 expected
[18:33:49] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
[18:33:49] mux: track 0, 3242 frames, 27555629 bytes, 1625.28 kbps, fifo 2048
[18:33:49] mux: track 1, 6357 frames, 2546084 bytes, 150.17 kbps, fifo 4096
[18:33:49] libhb: work result = 1

# Encode Completed ...
Deleted User 11865

Re: Intel QSV h264 works, but not h265

Post by Deleted User 11865 »

You're using neither. QSV is Intel's hardware encoder, you're using NVENC (Nvidia's hardware encoder).

I'm guessing your GTX 960M card is not H.265-capable.
Barnbaby
Posts: 5
Joined: Mon Mar 02, 2015 3:52 am

Re: Intel QSV h264 works, but not h265

Post by Barnbaby »

Yes, you are correct. And thank you for the reply and catch.

It is the NVENC that works on h264 but not H265. The problem I'm having is with the Intel QSV encoders.

Handbrake worked fine with the Intel's QSV on both h264 and h265 encodes until I had to do a complete system restore. I was not able to get back into Windows; the only option available to me was system restore from the hidden partition on my Dell hard drive.

This got Windows10 Pro re-installed from scratch, as it came with the computer. It proceeded to update itself, but, of course, I was left to restore all of my other programs that were lost. I downloaded and installed the latest version of Handbrake only to run into this issue of not having the QSV options for h264 or h265 available. They both had been working fine prior to the system restore.

Checking that my Intel chip's driver was the latest (according to Windows) I am at a loss as to why they are no longer available to me. Is there anywhere else I can check or update? I have tried the latest nightly builds, but still no luck.

I agree that the NVENC problem is probably due to the age of that video chip, but the Intel QSV worked before the system restore, so I should be able to get it going again, but so far, no luck.
Deleted User 11865

Re: Intel QSV h264 works, but not h265

Post by Deleted User 11865 »

As per your log above:

Code: Select all

Intel(R) HD Graphics 530 - 23.20.16.4973
https://downloadcenter.intel.com/produc ... aphics-530

…seems like newer drivers are available (25.20.100.6577).
Barnbaby
Posts: 5
Joined: Mon Mar 02, 2015 3:52 am

Re: Intel QSV h264 works, but not h265

Post by Barnbaby »

Thanks for the information. I'll give that a shot tomorrow. I have two machines running Windows 10, one Home version and the other Professional. I spent most of this day updating the pro machine with the October update.
Barnbaby
Posts: 5
Joined: Mon Mar 02, 2015 3:52 am

Re: Intel QSV h264 works, but not h265

Post by Barnbaby »

Rodeo wrote: Mon Mar 11, 2019 5:23 pm As per your log above:

Code: Select all

Intel(R) HD Graphics 530 - 23.20.16.4973
https://downloadcenter.intel.com/produc ... aphics-530

…seems like newer drivers are available (25.20.100.6577).
I was able to download the most current intel video drivers Dell has for my laptop and after installation, the QSV for H264 and H265 are once again available to me. Thanks very much for your assistance.
Post Reply