App crashes/exits when using Intel QSV

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
HTNut
Posts: 6
Joined: Sat Jun 02, 2018 1:06 am

App crashes/exits when using Intel QSV

Post by HTNut »

Description of problem or question:
Transcode from MakeMKV rip of Spaceballs Bluray to H.264 (Intel QSV) works fine on balanced preset, but on Quality preset gets to about 0.05% complete and the app crashes and exits.



Steps to reproduce the problem (If Applicable):
Consistently fails per above.



HandBrake version (e.g., 1.0.0):
1.1.0



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



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

Code: Select all

HandBrake 1.1.0 (2018040700) - 64bit
OS: Microsoft Windows NT 10.0.17134.0 - 64bit
CPU: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
Ram: 16191 MB, 
GPU Information:
  NVIDIA GeForce GTX 1060 6GB - 24.21.13.9793
  Intel(R) UHD Graphics 630 - 22.20.16.4758
Screen: 1920x1080
Temp Dir: C:\Users\timf9\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\timf9\AppData\Roaming\HandBrake Team\HandBrake\1.1.0.0

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


# Starting Encode ...

[18:27:49] hb_init: starting libhb thread
[18:27:49] 1 job(s) to process
[18:27:49] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 6,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "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"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      },
      {
        "Name": "Chapter 13"
      },
      {
        "Name": "Chapter 14"
      },
      {
        "Name": "Chapter 15"
      },
      {
        "Name": "Chapter 16"
      },
      {
        "Name": "Chapter 17"
      },
      {
        "Name": "Chapter 18"
      },
      {
        "Name": "Chapter 19"
      },
      {
        "Name": "Chapter 20"
      },
      {
        "Name": "Chapter 21"
      },
      {
        "Name": "Chapter 22"
      },
      {
        "Name": "Chapter 23"
      },
      {
        "Name": "Chapter 24"
      },
      {
        "Name": "Chapter 25"
      },
      {
        "Name": "Chapter 26"
      },
      {
        "Name": "Chapter 27"
      },
      {
        "Name": "Chapter 28"
      },
      {
        "Name": "Chapter 29"
      },
      {
        "Name": "Chapter 30"
      },
      {
        "Name": "Chapter 31"
      },
      {
        "Name": "Chapter 32"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "F:\\Videos\\MP4\\Spaceballs t00-1.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 131072
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 8,
        "Settings": {
          "cb-spatial": "7",
          "cb-temporal": "5",
          "cr-spatial": "7",
          "cr-temporal": "5",
          "y-spatial": "7",
          "y-temporal": "5"
        }
      },
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "20",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "20",
          "height": "1040",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 32
    },
    "Title": 1,
    "Path": "F:\\Videos\\MKV\\Spaceballs_t00.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 256,
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "quality",
    "Profile": "auto",
    "Quality": 22.0,
    "HWDecode": false,
    "QSV": {
      "Decode": true,
      "AsyncDepth": 0
    }
  }
}
[18:27:49] CPU: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
[18:27:49]  - Intel microarchitecture Kaby Lake
[18:27:49]  - logical processor count: 12
[18:27:49] Intel Quick Sync Video support: yes
[18:27:49]  - Intel Media SDK hardware: API 1.24 (minimum: 1.3)
[18:27:49]  - H.264 encoder: yes
[18:27:49]     - preferred implementation: hardware (any) via D3D11
[18:27:49]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[18:27:49]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[18:27:49]     - preferred implementation: hardware (any) via D3D11
[18:27:49]     - capabilities (hardware):  bpyramid icq vsinfo opt1
[18:27:49] hb_scan: path=F:\Videos\MKV\Spaceballs_t00.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image F:\Videos\MKV\Spaceballs_t00.mkv
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
[18:27:49] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
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
[18:27:49] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'F:\Videos\MKV\Spaceballs_t00.mkv':
  Metadata:
    title           : Spaceballs
  Duration: 01:36:12.76, start: 0.000000, bitrate: 37250 kb/s
    Chapter #0:0: start 0.000000, end 112.821042
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 112.821042, end 433.015917
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 433.015917, end 577.910667
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 577.910667, end 825.658167
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 825.658167, end 1018.517500
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1018.517500, end 1104.311542
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 1104.311542, end 1189.938750
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 1189.938750, end 1360.192167
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 1360.192167, end 1609.608000
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 1609.608000, end 1816.689875
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 1816.689875, end 1974.722750
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 1974.722750, end 2095.301542
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 2095.301542, end 2233.564667
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 2233.564667, end 2450.906792
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 2450.906792, end 2626.457167
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 2626.457167, end 2819.441625
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 2819.441625, end 2884.047833
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 2884.047833, end 2996.910583
    Metadata:
      title           : Chapter 18
    Chapter #0:18: start 2996.910583, end 3154.818333
    Metadata:
      title           : Chapter 19
    Chapter #0:19: start 3154.818333, end 3213.293417
    Metadata:
      title           : Chapter 20
    Chapter #0:20: start 3213.293417, end 3300.088458
    Metadata:
      title           : Chapter 21
    Chapter #0:21: start 3300.088458, end 3504.125625
    Metadata:
      title           : Chapter 22
    Chapter #0:22: start 3504.125625, end 3832.995833
    Metadata:
      title           : Chapter 23
    Chapter #0:23: start 3832.995833, end 4033.320958
    Metadata:
      title           : Chapter 24
    Chapter #0:24: start 4033.320958, end 4242.112875
    Metadata:
      title           : Chapter 25
    Chapter #0:25: start 4242.112875, end 4590.210625
    Metadata:
      title           : Chapter 26
    Chapter #0:26: start 4590.210625, end 4807.052250
    Metadata:
      title           : Chapter 27
    Chapter #0:27: start 4807.052250, end 4905.358792
    Metadata:
      title           : Chapter 28
    Chapter #0:28: start 4905.358792, end 5069.314250
    Metadata:
      title           : Chapter 29
    Chapter #0:29: start 5069.314250, end 5285.530250
    Metadata:
      title           : Chapter 30
    Chapter #0:30: start 5285.530250, end 5440.393292
    Metadata:
      title           : Chapter 31
    Chapter #0:31: start 5440.393292, end 5772.767000
    Metadata:
      title           : Chapter 32
    Stream #0:0(eng): Video: h264 (High)
      yuv420p, tv, bt709/bt709/bt709
      1920x1080 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9
      23.98 fps, 1k tbn
    Metadata:
      BPS-eng         : 31736634
      DURATION-eng    : 01:36:12.767000000
      NUMBER_OF_FRAMES-eng: 138408
      NUMBER_OF_BYTES-eng: 22901024868
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-06-01 22:33:07
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: dts (DTS-HD MA)
      48000 Hz, 5.1, fltp, 1536 kb/s (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 3957087
      DURATION-eng    : 01:36:12.768000000
      NUMBER_OF_FRAMES-eng: 541197
      NUMBER_OF_BYTES-eng: 2855418856
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-06-01 22:33:07
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Audio: dts (DTS)
      48000 Hz, 5.1, fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:36:12.768000000
      NUMBER_OF_FRAMES-eng: 541197
      NUMBER_OF_BYTES-eng: 1088888364
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-06-01 22:33:07
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 44498
      DURATION-eng    : 01:32:28.563854166
      NUMBER_OF_FRAMES-eng: 3151
      NUMBER_OF_BYTES-eng: 30863131
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-06-01 22:33:07
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:4: Video: mjpeg
      yuvj444p, pc, bt470bg/unknown/unknown
      640x360 [PAR 72:72 DAR 16:9]
      90k tbn
    Metadata:
      filename        : cover.jpg
      mimetype        : image/jpeg
[18:27:49] scan: decoding previews for title 1
[18:27:49] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 English (DTS-HD MA) (5.1 ch)
[18:27:49] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[18:27:50] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 20/20/0/0, aspect 16:9, PAR 1:1
[18:27:50] scan: supported video decoders: avcodec qsv
[18:27:50] libhb: scan thread found 1 valid title(s)
[18:27:50] starting job
[18:27:50] work: track 1, dithering not supported by codec
[18:27:50] job configuration:
[18:27:50]  * source
[18:27:50]    + F:\Videos\MKV\Spaceballs_t00.mkv
[18:27:50]    + title 1, chapter(s) 1 to 32
[18:27:50]    + container: matroska,webm
[18:27:50]    + data rate: 37250 kbps
[18:27:50]  * destination
[18:27:50]    + F:\Videos\MP4\Spaceballs t00-1.m4v
[18:27:50]    + container: MPEG-4 (libavformat)
[18:27:50]      + align initial A/V stream timestamps
[18:27:50]      + chapter markers
[18:27:50]  * video track
[18:27:50]    + decoder: h264_qsv
[18:27:50]    + filters
[18:27:50]      + Framerate Shaper (mode=2)
[18:27:50]        + frame rate: 23.976 fps -> peak rate limited to 23.976 fps
[18:27:50]      + Denoise (hqdn3d) (y-spatial=7:cb-spatial=7:cr-spatial=7:y-temporal=5:cb-temporal=5:cr-temporal=5)
[18:27:50]      + Crop and Scale (width=1920:height=1040:crop-top=20:crop-bottom=20:crop-left=0:crop-right=0)
[18:27:50]        + source: 1920 * 1080, crop (20/20/0/0): 1920 * 1040, scale: 1920 * 1040
[18:27:50]    + Output geometry
[18:27:50]      + storage dimensions: 1920 x 1040
[18:27:50]      + pixel aspect ratio: 1 : 1
[18:27:50]      + display dimensions: 1920 x 1040
[18:27:50]    + encoder: H.264 (Intel Media SDK)
[18:27:50]      + preset:  quality
[18:27:50]      + profile: auto
[18:27:50]      + level:   auto
[18:27:50]      + quality: 22.00 (ICQ)
[18:27:50]  * audio track 1
[18:27:50]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[18:27:50]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[18:27:50]    + mixdown: Dolby Pro Logic II
[18:27:50]    + encoder: AAC (libavcodec)
[18:27:50]      + bitrate: 160 kbps, samplerate: 48000 Hz
[18:27:50] sync: expecting 138408 video frames
[18:27:50] encqsvInit: using encode-only path
[18:27:50] encqsvInit: H.264/AVC High profile @ level 4.0
[18:27:50] encqsvInit: TargetUsage 2 AsyncDepth 3
[18:27:50] encqsvInit: GopRefDist 3 GopPicSize 24 NumRefFrame 3
[18:27:50] encqsvInit: BFramesMax 2 BRefType off
[18:27:50] encqsvInit: RateControlMethod LA_ICQ ICQQuality 22 LookAheadDepth 40
[18:27:50] sync: first pts video is 0
[18:27:50] sync: "Chapter 1" (1) at frame 1 time 0
[18:27:51] sync: first pts audio 0x1 is 0
[18:27:51] qsv_enc_init: using 'hardware (1) via D3D11' implementation, API: 1.24
encqsv: MFXVideoENCODE_EncodeFrameAsync failed (-17)
[18:27:51] work: average encoding speed for job is 0.000000 fps
[18:27:51] vfr: 73 frames output, 0 dropped and 0 duped for CFR/PFR
[18:27:51] vfr: lost time: 0 (0 frames)
[18:27:51] vfr: gained time: 0 (0 frames) (0 not accounted for)
[18:27:51] dca-decoder done: 483 frames, 0 decoder errors
[18:27:51] h264_qsv-decoder done: 114 frames, 0 decoder errors
[18:27:51] sync: got 77 frames, 138408 expected
[18:27:51] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps

User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: App crashes/exits when using Intel QSV

Post by s55 »

Update your graphics driver to the latest version.
mad_sysad
Posts: 9
Joined: Mon Jun 04, 2018 8:34 pm

Re: App crashes/exits when using Intel QSV

Post by mad_sysad »

I'm pretty sure that is indeed the most recent Nvidia driver. 397.93 released on 05/24/2018
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: App crashes/exits when using Intel QSV

Post by s55 »

Sorry, let me be more specific. Update your Intel Graphics Driver.
The user above has both enabled.
HTNut
Posts: 6
Joined: Sat Jun 02, 2018 1:06 am

Re: App crashes/exits when using Intel QSV

Post by HTNut »

Updated the UHD630 driver to the latest from Intel and the problem persists.
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: App crashes/exits when using Intel QSV

Post by s55 »

Now turn off QSV decode in preferences. It can only be used in single GPU systems or if the iGPU is actively in use with a monitor attached.
HTNut
Posts: 6
Joined: Sat Jun 02, 2018 1:06 am

Re: App crashes/exits when using Intel QSV

Post by HTNut »

Thanks, will test later. I found out that when I went to update the driver in Device Manager, I had to select "Choose Driver From My Computer" or something like that, where it showed two driver options. Just by installing from my driver download folder did not install the latest driver.
Post Reply