Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handbrake fails when using QSV (Error Code -17) #660

Closed
BuckeyeBob opened this issue Mar 29, 2017 · 110 comments
Closed

Handbrake fails when using QSV (Error Code -17) #660

BuckeyeBob opened this issue Mar 29, 2017 · 110 comments
Assignees
Milestone

Comments

@BuckeyeBob
Copy link

BuckeyeBob commented Mar 29, 2017

Please describe the problem or feature request in detail:

Any video I attempt to encode using H.264 (Intel QSV) fails with an Error code -17, hb_qsv_wait_on_sync 602. This happens on Encoder preset of Balanced and Quality (did not try Speed). This happens for all versions of HandBrake 1.0.0 and above (1.0.0, 1.0.1, 1.0.2, 1.0.3). No issue on 0.10.2 or 0.10.5.

What are the steps to reproduce this problem:

Attempt to encode an MKV (produced from Blu Ray with MakeMKV) with QSV selected for Video Codec.

What version of HandBrake you are running:

Currently, 1.0.3. Issue also on 1.0.2, 1.0.1 & 1.0.0.

What operating system and version and you running (e.g. OSX 10.11, Windows 7, Ubuntu 14):

Windows 10 Pro, 64 bit

Was there any error message or error dialog, if so please detail or provide screenshots:

Queue Finished with 1 errors or cancellations detected.

Please provide the full activity log for the encode or scan attempt. You may attach the log as a file, post a pastebin URL to the log, or place the log inline below:

OS: Microsoft Windows NT 10.0.14393.0 - 64bit
CPU: Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
Ram: 16266 MB, 
GPU Information:
  Intel(R) HD Graphics 4600 - 20.19.15.4531
  NVIDIA GeForce GTS 250 - 21.21.13.4201
Screen: 1920x1080
Temp Dir: C:\Users\Davey C\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Davey C\AppData\Roaming\HandBrake Team\HandBrake\1.0.3.0

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


# Starting Encode ...

[15:58:32] hb_init: starting libhb thread
[15:58:32] 1 job(s) to process
[15:58:32] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": 1107296256,
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "Bitrate": 320,
        "DRC": 0.0,
        "Encoder": 2048,
        "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"
      },
      {
        "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"
      }
    ],
    "ChapterMarkers": true,
    "File": "D:\\DVD Rips\\MKV Rip\\Jack Reacher Never Go Back (2016)-1.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 2097152
  },
  "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": "138",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "138",
          "height": "804",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 17
    },
    "Title": 1,
    "Path": "D:\\DVD Rips\\MKV Rip\\Jack_Reacher_Never_Go_Back (2016).mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      }
    ]
  },
  "Video": {
    "Encoder": 256,
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "balanced",
    "Profile": "auto",
    "Quality": 20.0,
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": true,
      "AsyncDepth": 0
    }
  }
}
[15:58:32] CPU: Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
[15:58:32]  - Intel microarchitecture Haswell
[15:58:32]  - logical processor count: 4
[15:58:32] Intel Quick Sync Video support: yes
[15:58:32]  - Intel Media SDK hardware: API 1.19 (minimum: 1.3)
[15:58:32]  - H.264 encoder: yes
[15:58:32]     - preferred implementation: hardware (any)
[15:58:32]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[15:58:32]  - H.265 encoder: no
[15:58:32] hb_scan: path=D:\DVD Rips\MKV Rip\Jack_Reacher_Never_Go_Back (2016).mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image D:\DVD Rips\MKV Rip\Jack_Reacher_Never_Go_Back (2016).mkv
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:58:32] 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:58:32] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\DVD Rips\MKV Rip\Jack_Reacher_Never_Go_Back (2016).mkv':
  Metadata:
    title           : Jack Reacher Never Go Back
  Duration: 01:58:08.96, start: 0.000000, bitrate: N/A
    Chapter #0:0: start 0.000000, end 420.628542
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 420.628542, end 919.877292
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 919.877292, end 1233.857625
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 1233.857625, end 1744.576167
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 1744.576167, end 2075.740333
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 2075.740333, end 2560.140917
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 2560.140917, end 2968.006708
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 2968.006708, end 3524.562708
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 3524.562708, end 3790.161375
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 3790.161375, end 4175.754917
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 4175.754917, end 4505.334167
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 4505.334167, end 4919.664750
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 4919.664750, end 5227.222000
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 5227.222000, end 5654.065083
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 5654.065083, end 6404.981917
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 6404.981917, end 6810.845708
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 6810.845708, end 7088.960000
    Metadata:
      title           : Chapter 17
    Stream #0:0(eng): Video: h264 (High)
      yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9
      23.98 fps, 1k tbn
    Metadata:
      BPS-eng         : 23724344
      DURATION-eng    : 01:58:08.956875000
      NUMBER_OF_FRAMES-eng: 169965
      NUMBER_OF_BYTES-eng: 21022604303
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-03-29 14:50:25
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: truehd
      48000 Hz, 7.1, s32 (default)
    Metadata:
      title           : Surround 7.1
      BPS-eng         : 4326058
      DURATION-eng    : 01:58:08.957500000
      NUMBER_OF_FRAMES-eng: 8506749
      NUMBER_OF_BYTES-eng: 3833405116
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-03-29 14:50:25
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Audio: ac3
      48000 Hz, 5.1, fltp, 640 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 640000
      DURATION-eng    : 01:58:08.960000000
      NUMBER_OF_FRAMES-eng: 221530
      NUMBER_OF_BYTES-eng: 567116800
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-03-29 14:50:25
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 32003
      DURATION-eng    : 01:51:42.299770833
      NUMBER_OF_FRAMES-eng: 2824
      NUMBER_OF_BYTES-eng: 26812105
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-03-29 14:50:25
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[15:58:32] scan: decoding previews for title 1
[15:58:32] scan: audio 0x1: truehd, rate=48000Hz, bitrate=1 English (TrueHD) (7.1 ch)
[15:58:32] scan: audio 0x2: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch) (Dolby Digital EX)
[15:58:33] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1
[15:58:33] scan: supported video decoders: avcodec qsv
[15:58:33] libhb: scan thread found 1 valid title(s)
[15:58:34] starting job
[15:58:34] decomb filter thread started for segment 0
[15:58:34] decomb filter thread started for segment 1
[15:58:34] decomb filter thread started for segment 2
[15:58:34] decomb check thread started for segment 2
[15:58:34] decomb check thread started for segment 0
[15:58:34] decomb check thread started for segment 1
[15:58:34] mask filter thread started for segment 2
[15:58:34] decomb check thread started for segment 3
[15:58:34] mask filter thread started for segment 0
[15:58:34] mask filter thread started for segment 1
[15:58:34] decomb filter thread started for segment 3
[15:58:34] mask filter thread started for segment 3
[15:58:34] yadif thread started for segment 1
[15:58:34] yadif thread started for segment 2
[15:58:34] mask erode thread started for segment 2
[15:58:34] mask erode thread started for segment 3
[15:58:34] work: track 2, dithering not supported by codec
[15:58:34] mask dilate thread started for segment 0
[15:58:34] mask dilate thread started for segment 1
[15:58:34] mask dilate thread started for segment 2
[15:58:34] mask dilate thread started for segment 3
[15:58:34] job configuration:
[15:58:34]  * source
[15:58:34]    + D:\DVD Rips\MKV Rip\Jack_Reacher_Never_Go_Back (2016).mkv
[15:58:34]    + title 1, chapter(s) 1 to 17
[15:58:34]    + container: matroska,webm
[15:58:34]  * destination
[15:58:34]    + D:\DVD Rips\MKV Rip\Jack Reacher Never Go Back (2016)-1.mkv
[15:58:34] yadif thread started for segment 0
[15:58:34]    + container: Matroska (libavformat)
[15:58:34]      + chapter markers
[15:58:34]  * video track
[15:58:34]    + decoder: h264_qsv
[15:58:34]    + filters
[15:58:34] mask erode thread started for segment 0
[15:58:34]      + 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:58:34]      + Decomb (mode=39)
[15:58:34]      + Framerate Shaper (mode=1)
[15:58:34] mask erode thread started for segment 1
[15:58:34]        + frame rate: 23.976 fps -> constant 23.976 fps
[15:58:34]      + Crop and Scale (width=1920:height=804:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[15:58:34]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 1920 * 804
[15:58:34]    + Output geometry
[15:58:34] yadif thread started for segment 3
[15:58:34]      + storage dimensions: 1920 x 804
[15:58:34]      + pixel aspect ratio: 1 : 1
[15:58:34]      + display dimensions: 1920 x 804
[15:58:34]    + encoder: H.264 (Intel Media SDK)
[15:58:34]      + preset:  balanced
[15:58:34]      + profile: auto
[15:58:34]      + level:   auto
[15:58:34]      + quality: 20.00 (ICQ)
[15:58:34]  * subtitle track 1, English (track 0, id 0x3) Picture [PGS] -> Passthrough
[15:58:34]  * audio track 1
[15:58:34]    + decoder: English (TrueHD) (7.1 ch) (track 1, id 0x1)
[15:58:34]      + samplerate: 48000 Hz
[15:58:34]    + TrueHD Passthru
[15:58:34]  * audio track 2
[15:58:34]    + decoder: English (TrueHD) (7.1 ch) (track 1, id 0x1)
[15:58:34]      + samplerate: 48000 Hz
[15:58:34]    + mixdown: Stereo
[15:58:34]    + encoder: AC3 (libavcodec)
[15:58:34]      + bitrate: 320 kbps, samplerate: 48000 Hz
[15:58:34] sync: expecting 169965 video frames
[15:58:34] encqsvInit: using encode-only path
[15:58:34] encqsvInit: H.264/AVC High profile @ level 4.0
[15:58:34] encqsvInit: TargetUsage 4 AsyncDepth 3
[15:58:34] encqsvInit: GopRefDist 3 GopPicSize 24 NumRefFrame 1
[15:58:34] encqsvInit: BFramesMax 2 BRefType off
[15:58:34] encqsvInit: RateControlMethod ICQ ICQQuality 20
[15:58:34] sync: first pts audio 0x1 is 0
[15:58:34] sync: first pts audio 0x1 is 0
[15:58:34] sync: first pts video is 0
[15:58:34] sync: "Chapter 1" (1) at frame 1 time 0
[15:58:34] qsv_enc_init: using 'hardware (3)' implementation, API: 1.19
[15:58:44] sync: first pts subtitle 0x3 is 4928670
[15:59:56] sync: "Chapter 2" (2) at frame 10086 time 37856568
[16:01:40] sync: "Chapter 3" (3) at frame 22059 time 82800217
[16:02:43] sync: "Chapter 4" (4) at frame 29584 time 111047186
[16:04:29] sync: "Chapter 5" (5) at frame 41832 time 157023116
[16:05:38] sync: "Chapter 6" (6) at frame 49772 time 186827891
[16:07:13] sync: "Chapter 7" (7) at frame 61383 time 230412682
[16:08:36] sync: "Chapter 8" (8) at frame 71162 time 267120604
Error code -17,	hb_qsv_wait_on_sync	602
[16:08:45] work: average encoding speed for job is 118.218750 fps
[16:08:45] comb detect: heavy 973 | light 12422 | uncombed 58642 | total 72037
[16:08:45] decomb: deinterlaced 973 | blended 12422 | unfiltered 58633 | total 72028
[16:08:45] vfr: 72021 frames output, 0 dropped and 0 duped for CFR/PFR
[16:08:45] vfr: lost time: 0 (0 frames)
[16:08:45] vfr: gained time: 0 (0 frames) (0 not accounted for)
[16:08:45] truehd-decoder done: 3609516 frames, 0 decoder errors
[16:08:45] truehd-decoder done: 3609516 frames, 0 decoder errors
[16:08:45] h264_qsv-decoder done: 72092 frames, 0 decoder errors
[16:08:46] sync: got 72055 frames, 169965 expected
[16:08:46] sync: framerate min 23.974 fps, max 23.981 fps, avg 23.976 fps
[16:08:46] mux: track 0, 72004 frames, 2368462345 bytes, 6299.44 kbps, fifo 512
[16:08:46] mux: track 1, 3609317 frames, 1554421602 bytes, 4134.32 kbps, fifo 32768
[16:08:46] mux: track 2, 93992 frames, 120309760 bytes, 319.99 kbps, fifo 1024
[16:08:46] mux: track 3, 1410 frames, 13743092 bytes, 36.55 kbps, fifo 32
[16:08:46] libhb: work result = 4

# Encode Completed ...

@bradleysepos
Copy link
Contributor

Thanks for reporting this. I thought this issue was fixed in 1.0.3 but perhaps it was only the nightly build. Any chance you can see whether it is still a problem in the nightly?

@BuckeyeBob
Copy link
Author

I have the nightly 20170328191901-d293148-master working now, will let you know how that ends up.

Thanks

@BuckeyeBob
Copy link
Author

It failed the same. Chapter it gets to seems to be somewhat random.

`HandBrake Nightly 20170328191901-d293148-master (2017032901) - 64bit
OS: Microsoft Windows NT 10.0.14393.0 - 64bit
CPU: Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
Ram: 16266 MB,
GPU Information:
Intel(R) HD Graphics 4600 - 20.19.15.4531
NVIDIA GeForce GTS 250 - 21.21.13.4201
Screen: 1920x1080
Temp Dir: C:\Users\Davey C\AppData\Local\Temp
Install Dir: C:\Program Files\HandBrake Nightly
Data Dir: C:\Users\Davey C\AppData\Roaming\HandBrake Team\HandBrake\1.0.3.0


Starting Encode ...

[16:32:45] hb_init: starting libhb thread
[16:32:45] 1 job(s) to process
[16:32:45] json job:
{
"Audio": {
"AudioList": [
{
"DRC": 0.0,
"Encoder": 1107296256,
"Gain": 0.0,
"Mixdown": -1,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Track": 0,
"DitherMethod": 0
},
{
"Bitrate": 320,
"DRC": 0.0,
"Encoder": 65536,
"Gain": 0.0,
"Mixdown": 4,
"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"
}
],
"ChapterMarkers": true,
"File": "D:\DVD Rips\MKV Rip\Jack Reacher Never Go Back (2016)-1.mkv",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": 2097152
},
"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": "138",
"crop-left": "0",
"crop-right": "0",
"crop-top": "138",
"height": "804",
"width": "1920"
}
},
{
"ID": 6,
"Settings": {
"mode": "1"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 17
},
"Title": 1,
"Path": "D:\DVD Rips\MKV Rip\Jack_Reacher_Never_Go_Back (2016).mkv"
},
"Subtitle": {
"Search": {
"Burn": false,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": [
{
"Burn": false,
"Default": false,
"Forced": false,
"ID": 1,
"Offset": 0,
"Track": 0
}
]
},
"Video": {
"Encoder": 256,
"Level": "auto",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "quality",
"Profile": "auto",
"Quality": 21.0,
"OpenCL": false,
"HWDecode": false,
"QSV": {
"Decode": true,
"AsyncDepth": 0
}
}
}
[16:32:45] CPU: Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
[16:32:45] - Intel microarchitecture Haswell
[16:32:45] - logical processor count: 4
[16:32:45] Intel Quick Sync Video support: yes
[16:32:45] - Intel Media SDK hardware: API 1.19 (minimum: 1.3)
[16:32:45] - H.264 encoder: yes
[16:32:45] - preferred implementation: hardware (any)
[16:32:45] - capabilities (hardware): breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[16:32:46] - H.265 encoder: no
[16:32:46] hb_scan: path=D:\DVD Rips\MKV Rip\Jack_Reacher_Never_Go_Back (2016).mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image D:\DVD Rips\MKV Rip\Jack_Reacher_Never_Go_Back (2016).mkv
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
[16:32:46] 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
[16:32:46] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\DVD Rips\MKV Rip\Jack_Reacher_Never_Go_Back (2016).mkv':
Metadata:
title : Jack Reacher Never Go Back
Duration: 01:58:08.96, start: 0.000000, bitrate: N/A
Chapter #0:0: start 0.000000, end 420.628542
Metadata:
title : Chapter 01
Chapter #0:1: start 420.628542, end 919.877292
Metadata:
title : Chapter 02
Chapter #0:2: start 919.877292, end 1233.857625
Metadata:
title : Chapter 03
Chapter #0:3: start 1233.857625, end 1744.576167
Metadata:
title : Chapter 04
Chapter #0:4: start 1744.576167, end 2075.740333
Metadata:
title : Chapter 05
Chapter #0:5: start 2075.740333, end 2560.140917
Metadata:
title : Chapter 06
Chapter #0:6: start 2560.140917, end 2968.006708
Metadata:
title : Chapter 07
Chapter #0:7: start 2968.006708, end 3524.562708
Metadata:
title : Chapter 08
Chapter #0:8: start 3524.562708, end 3790.161375
Metadata:
title : Chapter 09
Chapter #0:9: start 3790.161375, end 4175.754917
Metadata:
title : Chapter 10
Chapter #0:10: start 4175.754917, end 4505.334167
Metadata:
title : Chapter 11
Chapter #0:11: start 4505.334167, end 4919.664750
Metadata:
title : Chapter 12
Chapter #0:12: start 4919.664750, end 5227.222000
Metadata:
title : Chapter 13
Chapter #0:13: start 5227.222000, end 5654.065083
Metadata:
title : Chapter 14
Chapter #0:14: start 5654.065083, end 6404.981917
Metadata:
title : Chapter 15
Chapter #0:15: start 6404.981917, end 6810.845708
Metadata:
title : Chapter 16
Chapter #0:16: start 6810.845708, end 7088.960000
Metadata:
title : Chapter 17
Stream #0:0(eng): Video: h264 (High)
yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9
23.98 fps, 1k tbn
Metadata:
BPS-eng : 23724344
DURATION-eng : 01:58:08.956875000
NUMBER_OF_FRAMES-eng: 169965
NUMBER_OF_BYTES-eng: 21022604303
SOURCE_ID-eng : 001011
_STATISTICS_WRITING_APP-eng: MakeMKV v1.10.4 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2017-03-29 14:50:25
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:1(eng): Audio: truehd
48000 Hz, 7.1, s32 (default)
Metadata:
title : Surround 7.1
BPS-eng : 4326058
DURATION-eng : 01:58:08.957500000
NUMBER_OF_FRAMES-eng: 8506749
NUMBER_OF_BYTES-eng: 3833405116
SOURCE_ID-eng : 001100
_STATISTICS_WRITING_APP-eng: MakeMKV v1.10.4 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2017-03-29 14:50:25
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:2(eng): Audio: ac3
48000 Hz, 5.1, fltp, 640 kb/s
Metadata:
title : Surround 5.1
BPS-eng : 640000
DURATION-eng : 01:58:08.960000000
NUMBER_OF_FRAMES-eng: 221530
NUMBER_OF_BYTES-eng: 567116800
SOURCE_ID-eng : 001100
_STATISTICS_WRITING_APP-eng: MakeMKV v1.10.4 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2017-03-29 14:50:25
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
BPS-eng : 32003
DURATION-eng : 01:51:42.299770833
NUMBER_OF_FRAMES-eng: 2824
NUMBER_OF_BYTES-eng: 26812105
SOURCE_ID-eng : 001200
_STATISTICS_WRITING_APP-eng: MakeMKV v1.10.4 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2017-03-29 14:50:25
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[16:32:46] scan: decoding previews for title 1
[16:32:46] scan: audio 0x1: truehd, rate=48000Hz, bitrate=1 English (TrueHD) (7.1 ch)
[16:32:46] scan: audio 0x2: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch) (Dolby Digital EX)
[16:32:47] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1
[16:32:47] scan: supported video decoders: avcodec qsv
[16:32:47] libhb: scan thread found 1 valid title(s)
[16:32:47] starting job
[16:32:47] decomb filter thread started for segment 2
[16:32:47] decomb filter thread started for segment 0
[16:32:47] decomb filter thread started for segment 1
[16:32:47] decomb filter thread started for segment 3
[16:32:47] decomb check thread started for segment 0
[16:32:47] decomb check thread started for segment 1
[16:32:47] decomb check thread started for segment 2
[16:32:47] decomb check thread started for segment 3
[16:32:47] mask filter thread started for segment 0
[16:32:47] mask filter thread started for segment 1
[16:32:47] mask filter thread started for segment 2
[16:32:47] mask filter thread started for segment 3
[16:32:47] mask erode thread started for segment 0
[16:32:47] mask erode thread started for segment 1
[16:32:47] mask erode thread started for segment 2
[16:32:47] mask dilate thread started for segment 1
[16:32:47] mask dilate thread started for segment 0
[16:32:47] mask dilate thread started for segment 2
[16:32:47] yadif thread started for segment 1
[16:32:47] mask dilate thread started for segment 3
[16:32:47] yadif thread started for segment 3
[16:32:47] work: track 2, dithering not supported by codec
[16:32:47] mask erode thread started for segment 3
[16:32:47] yadif thread started for segment 2
[16:32:47] job configuration:
[16:32:47] * source
[16:32:47] + D:\DVD Rips\MKV Rip\Jack_Reacher_Never_Go_Back (2016).mkv
[16:32:47] + title 1, chapter(s) 1 to 17
[16:32:47] + container: matroska,webm
[16:32:47] * destination
[16:32:47] + D:\DVD Rips\MKV Rip\Jack Reacher Never Go Back (2016)-1.mkv
[16:32:47] + container: Matroska (libavformat)
[16:32:47] + chapter markers
[16:32:47] * video track
[16:32:47] + decoder: h264_qsv
[16:32:47] + filters
[16:32:47] yadif thread started for segment 0
[16:32:47] + 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)
[16:32:47] + Decomb (mode=39)
[16:32:47] + Framerate Shaper (mode=1)
[16:32:47] + frame rate: 23.976 fps -> constant 23.976 fps
[16:32:47] + Crop and Scale (width=1920:height=804:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[16:32:47] + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 1920 * 804
[16:32:47] + Output geometry
[16:32:47] + storage dimensions: 1920 x 804
[16:32:47] + pixel aspect ratio: 1 : 1
[16:32:47] + display dimensions: 1920 x 804
[16:32:47] + encoder: H.264 (Intel Media SDK)
[16:32:47] + preset: quality
[16:32:47] + profile: auto
[16:32:47] + level: auto
[16:32:47] + quality: 21.00 (ICQ)
[16:32:47] * subtitle track 1, English [PGS] (track 0, id 0x3, Picture) -> Passthrough
[16:32:47] * audio track 1
[16:32:47] + decoder: English (TrueHD) (7.1 ch) (track 1, id 0x1)
[16:32:47] + samplerate: 48000 Hz
[16:32:47] + TrueHD Passthru
[16:32:47] * audio track 2
[16:32:47] + decoder: English (TrueHD) (7.1 ch) (track 1, id 0x1)
[16:32:47] + samplerate: 48000 Hz
[16:32:47] + mixdown: Stereo
[16:32:47] + encoder: AAC (libavcodec)
[16:32:47] + bitrate: 320 kbps, samplerate: 48000 Hz
[16:32:47] sync: expecting 169965 video frames
[16:32:47] encqsvInit: using encode-only path
[16:32:47] encqsvInit: H.264/AVC High profile @ level 4.0
[16:32:47] encqsvInit: TargetUsage 2 AsyncDepth 3
[16:32:47] encqsvInit: GopRefDist 3 GopPicSize 24 NumRefFrame 3
[16:32:47] encqsvInit: BFramesMax 2 BRefType off
[16:32:47] encqsvInit: RateControlMethod LA_ICQ ICQQuality 21 LookAheadDepth 40
[16:32:47] sync: first pts audio 0x1 is 0
[16:32:47] sync: first pts audio 0x1 is 0
[16:32:47] sync: first pts video is 0
[16:32:47] sync: "Chapter 1" (1) at frame 1 time 0
[16:32:48] qsv_enc_init: using 'hardware (3)' implementation, API: 1.19
[16:33:09] sync: first pts subtitle 0x3 is 4928670
[16:35:52] sync: "Chapter 2" (2) at frame 10086 time 37856568
[16:39:32] sync: "Chapter 3" (3) at frame 22059 time 82800217
[16:41:50] sync: "Chapter 4" (4) at frame 29584 time 111047186
Error code -17, hb_qsv_wait_on_sync 602
[16:43:35] work: average encoding speed for job is 53.922680 fps
[16:43:35] comb detect: heavy 238 | light 4033 | uncombed 30638 | total 34909
[16:43:35] decomb: deinterlaced 238 | blended 4033 | unfiltered 30633 | total 34904
[16:43:35] vfr: 34900 frames output, 0 dropped and 0 duped for CFR/PFR
[16:43:35] vfr: lost time: 0 (0 frames)
[16:43:35] vfr: gained time: 0 (0 frames) (0 not accounted for)
[16:43:35] truehd-decoder done: 1750368 frames, 0 decoder errors
[16:43:35] truehd-decoder done: 1750368 frames, 0 decoder errors
[16:43:35] h264_qsv-decoder done: 34965 frames, 0 decoder errors
[16:43:35] sync: got 34925 frames, 169965 expected
[16:43:35] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
[16:43:35] mux: track 0, 34818 frames, 2230804170 bytes, 12235.82 kbps, fifo 256
[16:43:35] mux: track 1, 1750169 frames, 719288566 bytes, 3945.25 kbps, fifo 32768
[16:43:35] mux: track 2, 68364 frames, 58021038 bytes, 318.24 kbps, fifo 1024
[16:43:35] mux: track 3, 671 frames, 6753957 bytes, 37.05 kbps, fifo 16
[16:43:36] libhb: work result = 4

Encode Completed ...

[16:43:36] hb_init: starting libhb thread
`

@bradleysepos
Copy link
Contributor

Okay, thanks for checking. Hopefully @maximd33 can take a look when he has time.

@maximd33
Copy link
Contributor

maximd33 commented Mar 30, 2017

@bradleysepos it should be fixed for recent drivers and HW and it looks that we have to deal with legacy as well

@BuckeyeBob any input sample possible to share?
so it would be possible to reproduce the issue.

does it happen consistently and each run or just sometime ?

@BuckeyeBob
Copy link
Author

It happens every time. The only difference is where it appears to stall, it has happened on chapter 4 one time, chapter 6 the next, on the same file. I have also tried various files, with the same result. I could probably get a sample, but as it is not consistent as to where it stops, wouldn't really know what to post.

@maximd33
Copy link
Contributor

ok - every time is already good for debugging,
any sample will help

@BuckeyeBob
Copy link
Author

The sample is the first 5 chapters of the file I was encoding. I attempted to encode the sample and it errored out with "Queue Finished with 4 errors or cancellations detected.". Also attaching the activity log associated with the sample encode, it looks to have stalled after chapter 4.
Activity Log.txt

Unfortunately, my sample is 7GB, so not sure how to get it to you.

@BuckeyeBob
Copy link
Author

Okay, I found a small mkv sample video. Being so small, it does not cause HandBrake problems every time. But, I did get it to fail 2 out of 4 times. Attached are the sample and the activity log.

wmaproEOF.zip
Activity Log_.txt

@bradleysepos
Copy link
Contributor

@BuckeyeBob Is your original source also Windows Media?

@BuckeyeBob
Copy link
Author

BuckeyeBob commented Mar 30, 2017 via email

@sr55 sr55 added this to the 1.0.6 milestone Apr 9, 2017
@maximd33
Copy link
Contributor

short update: issue has been reproduced and fix is in progress

@RoberMC
Copy link

RoberMC commented May 30, 2017

I have the exact same isue and came here to post it. Glad you did it first.

But my h264 QSV encoding works perfectly, this error only happens when encoding in h265 QSV. it is pretty random, sometimes it even happens while doing a 2 minutes preview, and sometimes it lets me encode a 1 hour video. I never managed to do a full movie, 2 hours, without the crash. A build with this issue fixed would be great, i love h265 quality/size relationship and speed on QSV processors. Thanks.

@maximd33
Copy link
Contributor

@RoberMC what CPU do you have ? or may be you can share your encode log?

@RoberMC
Copy link

RoberMC commented May 30, 2017

Of course!, while posting my previous message i tried to encode a BR movie i own in h265, and it has just crashed.

intel J4205

Log:
`HandBrake 1.0.7 (2017040900) - 64bit
OS: Microsoft Windows NT 10.0.15063.0 - 64bit
CPU: Intel(R) Pentium(R) CPU J4205 @ 1.50GHz
Ram: 7848 MB,
GPU Information:
Intel(R) HD Graphics - 21.20.16.4664
Screen: 3840x2160
Temp Dir: C:\Users\Rober\AppData\Local\Temp
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Rober\AppData\Roaming\HandBrake Team\HandBrake\1.0.7.0


Starting Encode ...

[14:14:37] hb_init: starting libhb thread
[14:14:37] 1 job(s) to process
[14:14:37] json job:
{
"Audio": {
"AudioList": [],
"CopyMask": [
1073807360,
1073743872,
1074003968,
1073750016,
1090519040,
1074790400,
1074266112,
1107296256
],
"FallbackEncoder": 2048
},
"Destination": {
"ChapterList": [],
"ChapterMarkers": false,
"File": "D:\Roberto\Descargas\T5_video_h265_12.mp4",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": 131072
},
"Filters": {
"FilterList": [
{
"ID": 11,
"Settings": {
"crop-bottom": "138",
"crop-left": "62",
"crop-right": "88",
"crop-top": "138",
"height": "804",
"width": "1770"
}
},
{
"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": "G:\Multimedia\Peliculas\Terminator\Terminator 5 Genesis\Terminator 5 Genesis [BDRemux]_track1_und.h264"
},
"Subtitle": {
"Search": {
"Burn": false,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"Encoder": 512,
"Level": "auto",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "quality",
"Profile": "auto",
"Quality": 12.0,
"OpenCL": false,
"HWDecode": false,
"QSV": {
"Decode": false,
"AsyncDepth": 0
}
}
}
[14:14:37] CPU: Intel(R) Pentium(R) CPU J4205 @ 1.50GHz
[14:14:37] - logical processor count: 4
[14:14:37] Intel Quick Sync Video support: yes
[14:14:37] - Intel Media SDK hardware: API 1.23 (minimum: 1.3)
[14:14:37] - H.264 encoder: yes
[14:14:37] - preferred implementation: hardware (any)
[14:14:37] - capabilities (hardware): breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[14:14:37] - H.265 encoder: yes
[14:14:37] - preferred implementation: hardware (any)
[14:14:37] - capabilities (hardware): bpyramid vsinfo opt1
[14:14:37] hb_scan: path=G:\Multimedia\Peliculas\Terminator\Terminator 5 Genesis\Terminator 5 Genesis [BDRemux]_track1_und.h264, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image G:\Multimedia\Peliculas\Terminator\Terminator 5 Genesis\Terminator 5 Genesis [BDRemux]_track1_und.h264
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
[14:14:37] 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
[14:14:37] dvd: not a dvd - trying as a stream/file instead
Input #0, h264, from 'G:\Multimedia\Peliculas\Terminator\Terminator 5 Genesis\Terminator 5 Genesis [BDRemux]_track1_und.h264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (High)
yuv420p, 1920x1080 [PAR 1:1 DAR 16:9]
25 fps, 25 tbn
[14:14:37] scan: decoding previews for title 1
avformat_seek_file failed
avformat_seek_file failed
avformat_seek_file failed
avformat_seek_file failed
[14:14:39] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/62/88, aspect 16:9, PAR 1:1
[14:14:39] scan: supported video decoders: avcodec qsv
[14:14:39] libhb: scan thread found 1 valid title(s)
[14:14:40] starting job
[14:14:40] job configuration:
[14:14:40] * source
[14:14:40] + G:\Multimedia\Peliculas\Terminator\Terminator 5 Genesis\Terminator 5 Genesis [BDRemux]_track1_und.h264
[14:14:40] + title 1, chapter(s) 1 to 1
[14:14:40] + container: h264
[14:14:40] * destination
[14:14:40] + D:\Roberto\Descargas\T5_video_h265_12.mp4
[14:14:40] + container: MPEG-4 (libavformat)
[14:14:40] * video track
[14:14:40] + decoder: h264
[14:14:40] + filters
[14:14:40] + Framerate Shaper (mode=1)
[14:14:40] + frame rate: 23.976 fps -> constant 23.976 fps
[14:14:40] + Crop and Scale (width=1770:height=804:crop-top=138:crop-bottom=138:crop-left=62:crop-right=88)
[14:14:40] + source: 1920 * 1080, crop (138/138/62/88): 1770 * 804, scale: 1770 * 804
[14:14:40] + Output geometry
[14:14:40] + storage dimensions: 1770 x 804
[14:14:40] + pixel aspect ratio: 1 : 1
[14:14:40] + display dimensions: 1770 x 804
[14:14:40] + encoder: H.265 (Intel Media SDK)
[14:14:40] + preset: quality
[14:14:40] + profile: auto
[14:14:40] + level: auto
[14:14:40] + quality: 12.00 (QP)
[14:14:40] sync: expecting 0 video frames
[14:14:40] encqsvInit: using encode-only path
[14:14:40] encqsvInit: H.265/HEVC Main profile @ level (null)
[14:14:40] encqsvInit: TargetUsage 1 AsyncDepth 5
[14:14:40] encqsvInit: GopRefDist 4 GopPicSize 32 NumRefFrame 3
[14:14:40] encqsvInit: BFramesMax 3 BRefType pyramid
[14:14:40] encqsvInit: RateControlMethod CQP with QPI 12 QPP 14 QPB 16
[14:14:40] sync: first pts video is 0
[14:14:41] qsv_enc_init: using 'hardware (1)' implementation, API: 1.23
[14:29:11] work: average encoding speed for job is 27.115427 fps
[14:29:11] vfr: 23614 frames output, 0 dropped and 0 duped for CFR/PFR
[14:29:11] vfr: lost time: 0 (0 frames)
[14:29:11] vfr: gained time: 0 (0 frames) (0 not accounted for)
[14:29:11] h264-decoder done: 23651 frames, 0 decoder errors
[14:29:11] sync: got 23630 frames, 0 expected
[14:29:11] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
[14:29:11] mux: track 0, 23554 frames, 861615440 bytes, 7015.23 kbps, fifo 1024
[14:29:11] libhb: work result = 4

Encode Completed ...

`
I made this video to have 0 chapters to test and i observed the log came different, it does not show any error code. I also disabled QSV decoding this time to see if it makes any difference, but it does not. I am going to do right now the same movie with the chapters on it and will post the log when it fails.

@bradleysepos
Copy link
Contributor

I notice a few instances of avformat_seek_file failed while generating previews.

@RoberMC
Copy link

RoberMC commented May 30, 2017

Ok, it just crashed, pretty soon...

This time i enabled again QSV decode, and the source file had chapters in place, i only encoded video, and cleared audio and chapters.

`HandBrake 1.0.7 (2017040900) - 64bit
OS: Microsoft Windows NT 10.0.15063.0 - 64bit
CPU: Intel(R) Pentium(R) CPU J4205 @ 1.50GHz
Ram: 7848 MB,
GPU Information:
Intel(R) HD Graphics - 21.20.16.4664
Screen: 3840x2160
Temp Dir: C:\Users\Rober\AppData\Local\Temp
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Rober\AppData\Roaming\HandBrake Team\HandBrake\1.0.7.0


Starting Encode ...

[14:50:26] hb_init: starting libhb thread
[14:50:26] 1 job(s) to process
[14:50:26] json job:
{
"Audio": {
"AudioList": [],
"CopyMask": [
1073807360,
1073743872,
1074003968,
1073750016,
1090519040,
1074790400,
1074266112,
1107296256
],
"FallbackEncoder": 2048
},
"Destination": {
"ChapterList": [],
"ChapterMarkers": false,
"File": "D:\Roberto\Descargas\T5_video_h265_12.mp4",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": 131072
},
"Filters": {
"FilterList": [
{
"ID": 11,
"Settings": {
"crop-bottom": "138",
"crop-left": "0",
"crop-right": "0",
"crop-top": "138",
"height": "804",
"width": "1920"
}
},
{
"ID": 6,
"Settings": {
"mode": "1"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 18
},
"Title": 1,
"Path": "G:\Multimedia\Peliculas\Terminator\Terminator 5 Genesis\Terminator 5 Genesis [BDRemux].mkv"
},
"Subtitle": {
"Search": {
"Burn": false,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"Encoder": 512,
"Level": "auto",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "quality",
"Profile": "auto",
"Quality": 12.0,
"OpenCL": false,
"HWDecode": false,
"QSV": {
"Decode": true,
"AsyncDepth": 0
}
}
}
[14:50:26] CPU: Intel(R) Pentium(R) CPU J4205 @ 1.50GHz
[14:50:26] - logical processor count: 4
[14:50:26] Intel Quick Sync Video support: yes
[14:50:26] - Intel Media SDK hardware: API 1.23 (minimum: 1.3)
[14:50:26] - H.264 encoder: yes
[14:50:26] - preferred implementation: hardware (any)
[14:50:26] - capabilities (hardware): breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[14:50:26] - H.265 encoder: yes
[14:50:26] - preferred implementation: hardware (any)
[14:50:26] - capabilities (hardware): bpyramid vsinfo opt1
[14:50:26] hb_scan: path=G:\Multimedia\Peliculas\Terminator\Terminator 5 Genesis\Terminator 5 Genesis [BDRemux].mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image G:\Multimedia\Peliculas\Terminator\Terminator 5 Genesis\Terminator 5 Genesis [BDRemux].mkv
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
[14:50:26] 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
[14:50:26] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'G:\Multimedia\Peliculas\Terminator\Terminator 5 Genesis\Terminator 5 Genesis [BDRemux].mkv':
Metadata:
title : Terminator Genesis
Duration: 02:05:43.00, start: 0.000000, bitrate: N/A
Chapter #0:0: start 0.000000, end 460.334000
Metadata:
title : Chapter 1
Chapter #0:1: start 460.334000, end 860.734000
Metadata:
title : Chapter 2
Chapter #0:2: start 860.734000, end 1231.563000
Metadata:
title : Chapter 3
Chapter #0:3: start 1231.563000, end 1668.416000
Metadata:
title : Chapter 4
Chapter #0:4: start 1668.416000, end 2094.801000
Metadata:
title : Chapter 5
Chapter #0:5: start 2094.801000, end 2462.626000
Metadata:
title : Chapter 6
Chapter #0:6: start 2462.626000, end 2788.786000
Metadata:
title : Chapter 7
Chapter #0:7: start 2788.786000, end 3185.515000
Metadata:
title : Chapter 8
Chapter #0:8: start 3185.515000, end 3660.239000
Metadata:
title : Chapter 9
Chapter #0:9: start 3660.239000, end 4102.556000
Metadata:
title : Chapter 10
Chapter #0:10: start 4102.556000, end 4483.812000
Metadata:
title : Chapter 11
Chapter #0:11: start 4483.812000, end 4891.261000
Metadata:
title : Chapter 12
Chapter #0:12: start 4891.261000, end 5461.706000
Metadata:
title : Chapter 13
Chapter #0:13: start 5461.706000, end 5922.750000
Metadata:
title : Chapter 14
Chapter #0:14: start 5922.750000, end 6341.084000
Metadata:
title : Chapter 15
Chapter #0:15: start 6341.084000, end 6768.970000
Metadata:
title : Chapter 16
Chapter #0:16: start 6768.970000, end 7080.114000
Metadata:
title : Chapter 17
Chapter #0:17: start 7080.114000, end 7543.008000
Metadata:
title : Chapter 18
Stream #0:0: Video: h264 (High)
yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9
23.98 fps, 1k tbn (default)
Metadata:
BPS : 24387216
BPS-eng : 24387216
DURATION : 02:05:42.994000000
DURATION-eng : 02:05:42.994000000
NUMBER_OF_FRAMES: 180851
NUMBER_OF_FRAMES-eng: 180851
NUMBER_OF_BYTES : 22994078098
NUMBER_OF_BYTES-eng: 22994078098
_STATISTICS_WRITING_APP: mkvmerge v12.0.0 ('Trust / Lust') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v12.0.0 ('Trust / Lust') 64bit
_STATISTICS_WRITING_DATE_UTC: 2017-05-25 04:18:03
_STATISTICS_WRITING_DATE_UTC-eng: 2017-05-25 04:18:03
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(spa): Audio: ac3
48000 Hz, 5.1, fltp, 640 kb/s (default)
Metadata:
title : DD5.1
BPS : 640000
BPS-eng : 640000
DURATION : 02:05:43.008000000
DURATION-eng : 02:05:43.008000000
NUMBER_OF_FRAMES: 235719
NUMBER_OF_FRAMES-eng: 235719
NUMBER_OF_BYTES : 603440640
NUMBER_OF_BYTES-eng: 603440640
_STATISTICS_WRITING_APP: mkvmerge v12.0.0 ('Trust / Lust') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v12.0.0 ('Trust / Lust') 64bit
_STATISTICS_WRITING_DATE_UTC: 2017-05-25 04:18:03
_STATISTICS_WRITING_DATE_UTC-eng: 2017-05-25 04:18:03
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Audio: ac3
48000 Hz, 5.1, fltp, 640 kb/s
Metadata:
title : DD5.1EX
BPS : 640000
BPS-eng : 640000
DURATION : 02:05:43.008000000
DURATION-eng : 02:05:43.008000000
NUMBER_OF_FRAMES: 235719
NUMBER_OF_FRAMES-eng: 235719
NUMBER_OF_BYTES : 603440640
NUMBER_OF_BYTES-eng: 603440640
_STATISTICS_WRITING_APP: mkvmerge v12.0.0 ('Trust / Lust') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v12.0.0 ('Trust / Lust') 64bit
_STATISTICS_WRITING_DATE_UTC: 2017-05-25 04:18:03
_STATISTICS_WRITING_DATE_UTC-eng: 2017-05-25 04:18:03
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
BPS : 9321
BPS-eng : 9321
DURATION : 01:56:58.428000000
DURATION-eng : 01:56:58.428000000
NUMBER_OF_FRAMES: 2680
NUMBER_OF_FRAMES-eng: 2680
NUMBER_OF_BYTES : 8178201
NUMBER_OF_BYTES-eng: 8178201
_STATISTICS_WRITING_APP: mkvmerge v12.0.0 ('Trust / Lust') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v12.0.0 ('Trust / Lust') 64bit
_STATISTICS_WRITING_DATE_UTC: 2017-05-25 04:18:03
_STATISTICS_WRITING_DATE_UTC-eng: 2017-05-25 04:18:03
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:4(spa): Subtitle: hdmv_pgs_subtitle
Metadata:
BPS : 8406
BPS-eng : 8406
DURATION : 02:04:39.305000000
DURATION-eng : 02:04:39.305000000
NUMBER_OF_FRAMES: 2612
NUMBER_OF_FRAMES-eng: 2612
NUMBER_OF_BYTES : 7859617
NUMBER_OF_BYTES-eng: 7859617
_STATISTICS_WRITING_APP: mkvmerge v12.0.0 ('Trust / Lust') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v12.0.0 ('Trust / Lust') 64bit
_STATISTICS_WRITING_DATE_UTC: 2017-05-25 04:18:03
_STATISTICS_WRITING_DATE_UTC-eng: 2017-05-25 04:18:03
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[14:50:26] scan: decoding previews for title 1
[14:50:26] scan: audio 0x2: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch) (Dolby Digital EX)
[14:50:26] scan: audio 0x1: ac3, rate=48000Hz, bitrate=640000 español (AC3) (5.1 ch)
[14:50:28] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1
[14:50:28] scan: supported video decoders: avcodec qsv
[14:50:28] libhb: scan thread found 1 valid title(s)
[14:50:28] starting job
[14:50:28] job configuration:
[14:50:28] * source
[14:50:28] + G:\Multimedia\Peliculas\Terminator\Terminator 5 Genesis\Terminator 5 Genesis [BDRemux].mkv
[14:50:28] + title 1, chapter(s) 1 to 18
[14:50:28] + container: matroska,webm
[14:50:28] * destination
[14:50:28] + D:\Roberto\Descargas\T5_video_h265_12.mp4
[14:50:28] + container: MPEG-4 (libavformat)
[14:50:28] * video track
[14:50:28] + decoder: h264_qsv
[14:50:28] + filters
[14:50:28] + Framerate Shaper (mode=1)
[14:50:28] + frame rate: 23.976 fps -> constant 23.976 fps
[14:50:28] + Crop and Scale (width=1920:height=804:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[14:50:28] + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 1920 * 804
[14:50:28] + Output geometry
[14:50:28] + storage dimensions: 1920 x 804
[14:50:28] + pixel aspect ratio: 1 : 1
[14:50:28] + display dimensions: 1920 x 804
[14:50:28] + encoder: H.265 (Intel Media SDK)
[14:50:28] + preset: quality
[14:50:28] + profile: auto
[14:50:28] + level: auto
[14:50:28] + quality: 12.00 (QP)
[14:50:28] sync: expecting 180851 video frames
[14:50:29] encqsvInit: using encode-only path
[14:50:29] encqsvInit: H.265/HEVC Main profile @ level (null)
[14:50:29] encqsvInit: TargetUsage 1 AsyncDepth 5
[14:50:29] encqsvInit: GopRefDist 4 GopPicSize 32 NumRefFrame 3
[14:50:29] encqsvInit: BFramesMax 3 BRefType pyramid
[14:50:29] encqsvInit: RateControlMethod CQP with QPI 12 QPP 14 QPB 16
[14:50:29] sync: first pts video is 0
[14:50:29] sync: "Chapter 1" (1) at frame 1 time 0
[14:50:30] qsv_enc_init: using 'hardware (1)' implementation, API: 1.23
[14:59:12] sync: "Chapter 2" (2) at frame 11038 time 41430138
Error code -17, hb_qsv_wait_on_sync 602
[15:01:32] work: average encoding speed for job is 21.030552 fps
[15:01:32] vfr: 13925 frames output, 0 dropped and 0 duped for CFR/PFR
[15:01:32] vfr: lost time: 0 (0 frames)
[15:01:32] vfr: gained time: 0 (0 frames) (0 not accounted for)
[15:01:32] h264_qsv-decoder done: 13984 frames, 0 decoder errors
[15:01:32] sync: got 13963 frames, 180851 expected
[15:01:32] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
[15:01:32] mux: track 0, 13898 frames, 617042377 bytes, 8513.44 kbps, fifo 1024
[15:01:32] libhb: work result = 4

Encode Completed ...

`

@maximd33
Copy link
Contributor

maximd33 commented May 30, 2017

This is not HB issue but it sits within the GPU driver,
these days 4xxx CPUs have very limited support but will see what is yet possible to do...

@RoberMC
Copy link

RoberMC commented May 30, 2017

it is a J4205 Apollo Lake with integrated Intel HD 505 released in Q4'2016, it has all the latest stuff, like 10-bit HEVC enc/dec, HDMI 2.0, etc. It uses the same drivers as the Gen7 intel HD graphics. Thank you for looking into it.

@bradleysepos bradleysepos modified the milestones: 1.1.0, 1.0.8 May 31, 2017
@bradleysepos bradleysepos modified the milestones: 1.2.0, 1.1.0 Jun 14, 2017
@NebularNerd
Copy link

@maximd33 Further to your note above are you saying that my 4770k CPU is likely the reason for QSV encode fails due to lack of support from the Intel SDK or somesuch?

@maximd33
Copy link
Contributor

@NebularNerd it is not HB issue, so we have not much to fix but driver update should be expected

@maximd33
Copy link
Contributor

@JosefKuchar what version of the driver and OS do you have ?

@JosefKuchar
Copy link

@maximd33 I've got Windows 10 64bit Pro with driver ver. 20.19.15.4835

@Anbarocrator
Copy link

Hallelujah! It is alive! I'm back on 0.10.5 and all works without any problems:

HandBrake 0.10.5.0 - 64bit Version
OS: Microsoft Windows NT 6.2.9200.0 - 64bit
CPU: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
Ram: 7872 MB,
GPU Information:
Intel(R) HD Graphics 4000 - 10.18.10.4653
AMD Radeon R9 200 Series - 23.20.15015.1002
Screen: 1680x1050

@maximd33
Copy link
Contributor

there are no chances to have 4xxx driver update

@sr55 it should be possible to check HB's difference but time consuming part, should be considered or just refer to use 0.10.5 HB?

@cybergrimes
Copy link

cybergrimes commented Jan 30, 2018

@sr55 re: "Does anyone have a 6th, 7th or 8th gen and can re-produce the -17 error?"
Kind of, I'm having a -21 error with the same message "hb_qsv_wait_on_sync" on v1.07 using a Pentium G4600 (7th gen non "Core" edition CPU), HD Graphics 630 with driver 23.20.16.4901

I've only been trying 3 different H264 MKV files-- the smallest 20gb file always encodes, the 23gb file sometimes encodes but often fails towards the end and the larger 34gb file has yet to successfully finish.

No problems after installing 0.10.5.0, also encode times were cut in half.

hb_qsv_wait_on_sync log example.txt
successful encode log example.txt

@sr55
Copy link
Contributor

sr55 commented Jan 30, 2018

Not the same issue. Please start a new thread for that.

@sr55 sr55 changed the title Handbrake fails when using QSV Handbrake fails when using QSV (Error Code -17) Jan 30, 2018
@grince
Copy link

grince commented Feb 2, 2018

I have the same problem but with a 6gen CPU, Windows 10 and the latest Intel drivers.

Unfortunately, Github doesn't let me upload this as a file :( So here it is:

HandBrake 1.0.7 (2017040900) - 64bit
OS: Microsoft Windows NT 10.0.16299.0 - 64bit
CPU: Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Ram: 16239 MB,
GPU Information:
Intel(R) HD Graphics 530 - 23.20.16.4901
NVIDIA GeForce GTX 970 - 23.21.13.9077
Screen: 1920x1080
Temp Dir: C:\Users\foo\AppData\Local\Temp
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\foo\AppData\Roaming\HandBrake Team\HandBrake\1.0.7.0


Starting Encode ...

[03:53:01] hb_init: starting libhb thread
[03:53:01] 1 job(s) to process
[03:53:01] json job:
{
"Audio": {
"AudioList": [
{
"DRC": 0.0,
"Encoder": 1074003968,
"Gain": 0.0,
"Mixdown": -1,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Track": 1,
"DitherMethod": 0
},
{
"DRC": 0.0,
"Encoder": 1073750016,
"Gain": 0.0,
"Mixdown": -1,
"NormalizeMixLevel": false,
"Samplerate": 48000,
"Track": 3,
"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"
}
],
"ChapterMarkers": true,
"File": "V:\temp\My Movie.mkv",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": 2097152
},
"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": "138",
"crop-left": "0",
"crop-right": "0",
"crop-top": "138",
"height": "804",
"width": "1920"
}
},
{
"ID": 6,
"Settings": {
"mode": "1"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 29
},
"Title": 95,
"Path": "F:\"
},
"Subtitle": {
"Search": {
"Burn": false,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": [
{
"Burn": false,
"Default": false,
"Forced": false,
"ID": 1,
"Offset": 0,
"Track": 0
},
{
"Burn": false,
"Default": false,
"Forced": false,
"ID": 6,
"Offset": 0,
"Track": 5
}
]
},
"Video": {
"Encoder": 512,
"Level": "auto",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "balanced",
"Profile": "auto",
"Quality": 18.0,
"OpenCL": false,
"HWDecode": false,
"QSV": {
"Decode": true,
"AsyncDepth": 0
}
}
}
[03:53:01] CPU: Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
[03:53:01] - Intel microarchitecture Skylake
[03:53:01] - logical processor count: 4
[03:53:01] Intel Quick Sync Video support: yes
[03:53:01] - Intel Media SDK hardware: API 1.25 (minimum: 1.3)
[03:53:01] - H.264 encoder: yes
[03:53:01] - preferred implementation: hardware (any)
[03:53:01] - capabilities (hardware): breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[03:53:01] - H.265 encoder: yes
[03:53:01] - preferred implementation: hardware (any)
[03:53:01] - capabilities (hardware): bpyramid vsinfo opt1
[03:53:01] hb_scan: path=F:, title_index=95
[03:53:01] scan: BD has 95 title(s)
[03:53:01] bd: scanning title 95
[03:53:01] bd: playlist 00800.MPLS
[03:53:01] bd: duration is 02:21:02 (8462245 ms)
[03:53:01] bd: video id=0x1011, stream type=H.264, format 1080p
[03:53:01] bd: aspect = 16:9
[03:53:01] bd: audio id=0x711100, lang=English (DTS), 3cc=eng
[03:53:01] bd: audio id=0x1100, lang=English (DTS-HD MA), 3cc=eng
[03:53:01] bd: audio id=0x1101, lang=Francais (DTS), 3cc=fra
[03:53:01] bd: audio id=0x1102, lang=Deutsch (DTS), 3cc=deu
[03:53:01] bd: audio id=0x1103, lang=italiano (DTS), 3cc=ita
[03:53:01] bd: subtitle id=0x1200, lang=English, 3cc=eng
[03:53:01] bd: subtitle id=0x1201, lang=Francais, 3cc=fra
[03:53:01] bd: subtitle id=0x1202, lang=dansk, 3cc=dan
[03:53:01] bd: subtitle id=0x1203, lang=Nederlands, 3cc=nld
[03:53:01] bd: subtitle id=0x1204, lang=suomi, 3cc=fin
[03:53:01] bd: subtitle id=0x1205, lang=Deutsch, 3cc=deu
[03:53:01] bd: subtitle id=0x1206, lang=italiano, 3cc=ita
[03:53:01] bd: subtitle id=0x1207, lang=norsk, 3cc=nor
[03:53:01] bd: subtitle id=0x1208, lang=svenska, 3cc=swe
[03:53:01] bd: subtitle id=0x1209, lang=English, 3cc=eng
[03:53:01] bd: chap 1 packet=768, 291958 ms
[03:53:01] bd: chap 2 packet=1141681920, 287495 ms
[03:53:01] bd: chap 3 packet=2350992000, 237153 ms
[03:53:01] bd: chap 4 packet=3281280000, 317692 ms
[03:53:01] bd: chap 5 packet=4501566720, 362987 ms
[03:53:01] bd: chap 6 packet=5890457472, 226059 ms
[03:53:01] bd: chap 7 packet=6766962624, 248957 ms
[03:53:01] bd: chap 8 packet=7760295168, 386427 ms
[03:53:01] bd: chap 9 packet=9250182912, 243117 ms
[03:53:01] bd: chap 10 packet=10214832000, 304721 ms
[03:53:01] bd: chap 11 packet=11364684672, 327535 ms
[03:53:01] bd: chap 12 packet=12627018432, 277151 ms
[03:53:01] bd: chap 13 packet=13751987328, 393643 ms
[03:53:01] bd: chap 14 packet=15218689344, 287620 ms
[03:53:01] bd: chap 15 packet=16338982080, 222222 ms
[03:53:01] bd: chap 16 packet=17224896768, 367116 ms
[03:53:01] bd: chap 17 packet=18595563264, 243243 ms
[03:53:01] bd: chap 18 packet=19582463232, 310184 ms
[03:53:01] bd: chap 19 packet=20863727424, 269936 ms
[03:53:01] bd: chap 20 packet=21932093760, 409534 ms
[03:53:01] bd: chap 21 packet=23503890048, 288496 ms
[03:53:01] bd: chap 22 packet=24550521024, 275233 ms
[03:53:01] bd: chap 23 packet=25668417792, 337503 ms
[03:53:01] bd: chap 24 packet=27038677248, 384842 ms
[03:53:01] bd: chap 25 packet=28673676864, 243201 ms
[03:53:01] bd: chap 26 packet=29475086592, 412370 ms
[03:53:01] bd: chap 27 packet=31187966784, 158867 ms
[03:53:01] bd: chap 28 packet=31943356992, 346721 ms
[03:53:01] bd: chap 29 packet=33144324096, 250 ms
[03:53:01] bd: title 95 has 29 chapters
[03:53:01] scan: decoding previews for title 95
[03:53:01] scan: title angle(s) 1
[03:53:01] scan: audio 0x711100: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[03:53:01] scan: audio 0x1100: dca, rate=48000Hz, bitrate=1536000 English (DTS-HD MA) (5.1 ch)
[03:53:01] scan: audio 0x1101: dca, rate=48000Hz, bitrate=768000 Francais (DTS) (5.1 ch)
[03:53:01] scan: audio 0x1102: dca, rate=48000Hz, bitrate=768000 Deutsch (DTS) (5.1 ch)
[03:53:01] scan: audio 0x1103: dca, rate=48000Hz, bitrate=768000 italiano (DTS) (5.1 ch)

[03:53:03] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1
[03:53:03] scan: supported video decoders: avcodec qsv
[03:53:03] stream: 9 good frames, 0 errors (0%)
[03:53:03] libhb: scan thread found 1 valid title(s)
[03:53:03] starting job
[03:53:03] decomb filter thread started for segment 0
[03:53:03] decomb filter thread started for segment 1
[03:53:03] decomb filter thread started for segment 3
[03:53:03] decomb filter thread started for segment 2
[03:53:03] decomb check thread started for segment 0
[03:53:03] mask filter thread started for segment 0
[03:53:03] decomb check thread started for segment 1
[03:53:03] decomb check thread started for segment 3
[03:53:03] decomb check thread started for segment 2
[03:53:03] mask filter thread started for segment 1
[03:53:03] mask filter thread started for segment 2
[03:53:03] mask erode thread started for segment 0
[03:53:03] mask filter thread started for segment 3
[03:53:03] mask erode thread started for segment 2
[03:53:03] mask erode thread started for segment 1
[03:53:03] mask erode thread started for segment 3
[03:53:03] mask dilate thread started for segment 0
[03:53:03] mask dilate thread started for segment 1
[03:53:03] mask dilate thread started for segment 2
[03:53:03] yadif thread started for segment 0
[03:53:03] mask dilate thread started for segment 3
[03:53:03] yadif thread started for segment 1
[03:53:03] yadif thread started for segment 3
[03:53:03] yadif thread started for segment 2
[03:53:03] job configuration:
[03:53:03] * source
[03:53:03] + F:
[03:53:03] + title 95, chapter(s) 1 to 29
[03:53:03] * destination
[03:53:03] + V:\temp\My Movie.mkv
[03:53:03] + container: Matroska (libavformat)
[03:53:03] + chapter markers
[03:53:03] * video track
[03:53:03] + decoder: h264_qsv
[03:53:03] + bitrate 200 kbps
[03:53:03] + filters
[03:53:03] + 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)
[03:53:03] + Decomb (mode=39)
[03:53:03] + Framerate Shaper (mode=1)
[03:53:03] + frame rate: 23.976 fps -> constant 23.976 fps
[03:53:03] + Crop and Scale (width=1920:height=804:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[03:53:03] + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 1920 * 804
[03:53:03] + Output geometry
[03:53:03] + storage dimensions: 1920 x 804
[03:53:03] + pixel aspect ratio: 1 : 1
[03:53:03] + display dimensions: 1920 x 804
[03:53:03] + encoder: H.265 (Intel Media SDK)
[03:53:03] + preset: balanced
[03:53:03] + profile: auto
[03:53:03] + level: auto
[03:53:03] + quality: 18.00 (QP)
[03:53:03] * subtitle track 1, English (track 0, id 0x1200) Picture [PGS] -> Passthrough
[03:53:03] * subtitle track 2, Deutsch (track 5, id 0x1205) Picture [PGS] -> Passthrough
[03:53:03] * audio track 1
[03:53:03] + decoder: English (DTS-HD MA) (5.1 ch) (track 2, id 0x1100)
[03:53:03] + bitrate: 1536 kbps, samplerate: 48000 Hz
[03:53:03] + DTS-HD Passthru
[03:53:03] * audio track 2
[03:53:03] + decoder: Deutsch (DTS) (5.1 ch) (track 4, id 0x1102)
[03:53:03] + bitrate: 768 kbps, samplerate: 48000 Hz
[03:53:03] + DTS Passthru
[03:53:03] sync: expecting 202890 video frames
[03:53:03] encqsvInit: using encode-only path
[03:53:03] encqsvInit: H.265/HEVC Main profile @ level (null)
[03:53:03] encqsvInit: TargetUsage 4 AsyncDepth 5
[03:53:03] encqsvInit: GopRefDist 4 GopPicSize 32 NumRefFrame 3
[03:53:03] encqsvInit: BFramesMax 3 BRefType pyramid
[03:53:03] encqsvInit: RateControlMethod CQP with QPI 18 QPP 20 QPB 22
[03:53:03] sync: first pts video is 0
[03:53:03] sync: "Chapter 1" (1) at frame 1 time 0
[03:53:03] sync: first pts audio 0x1100 is 0
[03:53:03] sync: first pts audio 0x1102 is 0
[03:53:04] qsv_enc_init: using 'hardware (2)' implementation, API: 1.25
[03:53:24] sync: first pts subtitle 0x1205 is 7049542
[03:53:26] sync: first pts subtitle 0x1200 is 7560052
[03:54:29] sync: "Chapter 2" (2) at frame 7001 time 26276250
[03:55:57] sync: "Chapter 3" (3) at frame 13894 time 52150848
[03:57:11] sync: "Chapter 4" (4) at frame 19580 time 73494671
[03:58:49] sync: "Chapter 5" (5) at frame 27197 time 102086985
[04:00:38] sync: "Chapter 6" (6) at frame 35900 time 134755871
[04:01:49] sync: "Chapter 7" (7) at frame 41320 time 155101196
[04:03:06] sync: "Chapter 8" (8) at frame 47289 time 177507330
[04:05:04] sync: "Chapter 9" (9) at frame 56554 time 212285823
[04:06:25] sync: "Chapter 10" (10) at frame 62383 time 234166432
[04:08:00] sync: "Chapter 11" (11) at frame 69689 time 261591330
[04:09:46] sync: "Chapter 12" (12) at frame 77542 time 291069528
Error code -21, hb_qsv_wait_on_sync 602

@maximd33
Copy link
Contributor

maximd33 commented Feb 2, 2018

@cybergrimes
@grince
you have -21 error while using 1.0.7 (2017040900) version,
does it happen with nightly builds ?

@sr55
Copy link
Contributor

sr55 commented Feb 3, 2018

Please raise a new issue for -21. IT is not the same as -17 error and it just confuses this thread by cross talking on it.

@grince
Copy link

grince commented Feb 3, 2018

sorry - done, Issue #1166

@Baddest-Juju
Copy link

Baddest-Juju commented Feb 23, 2018

Heya. I'm getting -17. Windows 10 x64 Pro Fall Update. Same problem with both Stable and the Nightly marked HandBrakeCLI-20180221220312-fc57174-master-win-x86_64

I'm using Intel HD Graphics 23.20.16.4849, the device is active in Device Manager.

Command input: handbrakecli --enable-qsv-decoding -i video.mp4 -e qsv_h264 -o test.mp4

The relevant services are running too:
image

Log: https://pastebin.com/0s3hQb9z

@Baddest-Juju
Copy link

okay well, it seems the recent Intel IGP Drivers fix the problem. I tried upgrading to them once before but it crashed the shit out of my computer, so I installed the ones on my motherboard website.

This time I guess I used the motherboard site's drivers as a stepping stone and then went to the Intel site drivers, and this time my computer wasn't crashed the shit out of. So hopefully this helps someone.

@brucefagan
Copy link

I just want add my experience with this problem. A couple days ago I upgraded from 0.10.5 to 1.0.7 (GUI) in order to more easily convert videos to kindle (android-720) format. And, that was a success. But, the install process deleted my copy of HandbrakeCLI. I have a java program I wrote to convert cut tivo files into a nice MKV file and it spawns off HandbrakeCLI processes. This morning I ran that and it failed due to the missing exe. So, I downloaded the 1.0.7 version of the CLI. Like others have reported here it failed every time (maybe 20 tries) at random points.

Long story short, I ended up downloading the 0.10.5 CLI and all is fine again.

One minor clarification: The 0.10.5 version does fail with the discussed error every now and then (maybe 1 out of 12 times). I had overcame this within my java program - when it detects and encode error it restarts the operation for up to three errors in a row. That did the trick. The 1.0.7 version fails every time!

cpu: i7-4770 4th generation haswell - still has plenty of muscle and years left in it.
intel HD Graphics 4600 driver: 20.19.15.4835 10/10/2017

On the intel site I downloaded a newer 10/30/2017 version with a lower ID: 15.40.37.4835. I tried install it two or three different ways but my computer would complain saying I already had the latest version. I thought about manually replacing the driver but decided not to risk it and instead went with the 0.10.5 CLI.

It would be nice if handbrake could detect the underlying hardware / drivers and work around the problem.

Bruce

@bradleysepos
Copy link
Contributor

@brucefagan Aside, the CLI is a separate download. You'll need to install both the GUI and CLI packages.

@sr55
Copy link
Contributor

sr55 commented Jul 13, 2018

Closing.

If anyone see's a repeat of this, running latest drivers on hardware that is still under support by Intel, please let us know.

For those running older hardware, maybe best to say on 1.0.7 or earlier. While that doesn't fix the problem, it does seem to happen slightly less often in these versions. Also, those running very old intel drivers may be unaffected.

@sr55 sr55 closed this as completed Jul 13, 2018
@AlBundy33
Copy link

After over one year where multiple users reported this bug you are just closing this report?

Does this mean that users always have to have up-to-date hardware to use handbrake?

@sr55
Copy link
Contributor

sr55 commented Jul 13, 2018

Yes, I'm closing this since we've not had any reports using the latest drivers running on Hardware that Intel still supports.

We don't have any workarounds for this issue for older hardware and Intel no longer support it so we have no options in this instance. It's not by choice.

@bradleysepos
Copy link
Contributor

Compatibility can be a moving target, especially where hardware and third party drivers are involved.

@AlBundy33 Are you still seeing this issue with HandBrake 1.1.1 and your 4700K?

@sr55
Copy link
Contributor

sr55 commented Jul 13, 2018

I'd be surprised if he wasn't. We've done nothing that would fix it.

@AlBundy33
Copy link

Ist there no option to implement some kind of legacy mode to support "older" hardware?
With 0.10.5 I don't have this problem.
But to be honest I think last tested version from me was 1.0.7.

@maximd33
Copy link
Contributor

@sr55
Copy link
Contributor

sr55 commented Jul 13, 2018

huh, surprised to see a new driver for this hardware. Looks mostly like a security update though so I'm not expecting this to work unless the release notes don't mention any other fixes that are included.

I do still have a 4770K around so I'll throw it on a batch of 1000 over the weekend see if it turns up.

@onlyahuman
Copy link

as before, if 0.10 version works perfectly and 1.x is not - it is not a problem of "unsupported by intel" hardware. because change was introduced by you and not by intel. It is reasonable to think that only you can fix it, but not reasonable to expect a fix for an open source software, I understand

@sr55
Copy link
Contributor

sr55 commented Jul 14, 2018

You do realise that Intel drivers fixed this problem right?
So to make a statement that this is our problem, is infact incorrect and relies on faulty assumptions.

The changes to Quicksync support in HandBrake are correct, and don't exhibit this problem when using the latest drivers from Intel.

@onlyahuman
Copy link

this problem does not exist on the same old hardware with any driver version and same old HB version.

the only variable is the HB version, nothing else. so blaming drivers does not seem to be justified by anything.

and even in this thread, at least 2 types of issues were reported.

@sr55
Copy link
Contributor

sr55 commented Jul 14, 2018

... There are literally dozens of variables at play here. You clearly don't understand how this operates, so either educate yourself on this or stop wasting our time.

The second issue (-21) has already been resolved.

Locking this thread as it's not adding any value at this point.

@HandBrake HandBrake locked and limited conversation to collaborators Jul 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests