Error COde -21

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
Grain
Posts: 3
Joined: Sat Oct 13, 2018 5:35 pm

Error COde -21

Post by Grain » Sat Oct 13, 2018 5:41 pm

I've suddenly started having problems where Handbrake will freeze. Been using these presets for months with great results, and the program for years. It happened for no know reason, ie not after an update, and no known Windows update, but Win 10 is so sneaky, who knows. It randomly freezes, but very often, about 80% of the time. Thanks for the help, and the great program, its most excellent!




Steps to reproduce the problem (If Applicable): Will work once, then it wont for several in a row.




HandBrake version 1.1.2




Win 10




HandBrake 1.1.2 (2018090500) - 64bit
OS: Microsoft Windows NT 10.0.17134.0 - 64bit
CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Ram: 16286 MB,
GPU Information:
Intel(R) HD Graphics 530 - 23.20.16.4849
AMD Radeon (TM) RX 480 - 25.20.14003.1010
Screen: 1920x1080
Temp Dir: C:\Users\bigbl\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\bigbl\AppData\Roaming\HandBrake

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


# Starting Encode ...

[11:08:22] hb_init: starting libhb thread
[11:08:22] 1 job(s) to process
[11:08:22] json job:
{
"Audio": {
"AudioList": [
{
"DRC": 0.0,
"Encoder": 1125984256,
"Gain": 0.0,
"Mixdown": -1,
"NormalizeMixLevel": false,
"Samplerate": 48000,
"Track": 0,
"DitherMethod": 0
}
],
"CopyMask": [
1073807360,
1073743872,
1074003968,
1073750016,
1090519040,
1074790400,
1074266112,
1107296256
],
"FallbackEncoder": 2048
},
"Destination": {
"ChapterList": [
{
"Name": "00:00:00.000"
},
{
"Name": "00:06:14.499"
},
{
"Name": "00:12:41.344"
},
{
"Name": "00:15:12.245"
},
{
"Name": "00:17:23.292"
},
{
"Name": "00:22:30.933"
},
{
"Name": "00:29:00.030"
},
{
"Name": "00:37:42.844"
},
{
"Name": "00:43:55.132"
},
{
"Name": "00:48:01.504"
},
{
"Name": "00:51:18.033"
},
{
"Name": "00:54:29.433"
},
{
"Name": "00:57:20.062"
},
{
"Name": "01:01:10.876"
},
{
"Name": "01:03:49.242"
},
{
"Name": "01:12:11.327"
},
{
"Name": "01:17:26.767"
},
{
"Name": "01:23:00.893"
},
{
"Name": "01:30:45.440"
},
{
"Name": "01:40:28.773"
},
{
"Name": "01:43:58.524"
},
{
"Name": "01:51:27.681"
},
{
"Name": "01:56:44.080"
},
{
"Name": "02:03:34.282"
},
{
"Name": "02:15:42.551"
},
{
"Name": "02:19:20.811"
},
{
"Name": "02:23:33.730"
},
{
"Name": "02:26:37.747"
},
{
"Name": "02:30:18.968"
},
{
"Name": "02:33:18.106"
}
],
"ChapterMarkers": true,
"AlignAVStart": false,
"File": "D:\\NZBs\\The Insider 1999 1080p 265.mkv",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": 2097152
},
"Filters": {
"FilterList": [
{
"ID": 11,
"Settings": {
"crop-bottom": "0",
"crop-left": "0",
"crop-right": "0",
"crop-top": "0",
"height": "808",
"width": "1920"
}
},
{
"ID": 6,
"Settings": {
"mode": "1"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 30
},
"Title": 1,
"Path": "G:\\MOVIES\\The Insider 1999 1080p.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": 512,
"Level": "auto",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "balanced",
"Profile": "auto",
"Quality": 21.0,
"HWDecode": false,
"QSV": {
"Decode": false,
"AsyncDepth": 0
}
}
}
[11:08:22] CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
[11:08:22] - Intel microarchitecture Skylake
[11:08:22] - logical processor count: 8
[11:08:22] Intel Quick Sync Video support: yes
[11:08:22] - Intel Media SDK hardware: API 1.25 (minimum: 1.3)
[11:08:22] - H.264 encoder: yes
[11:08:22] - preferred implementation: hardware (any) via D3D11
[11:08:22] - capabilities (hardware): breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[11:08:22] - H.265 encoder: yes (8bit: yes, 10bit: no)
[11:08:22] - preferred implementation: hardware (any) via D3D11
[11:08:22] - capabilities (hardware): bpyramid icq vsinfo opt1
[11:08:22] hb_scan: path=G:\MOVIES\The Insider 1999 1080p.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image G:\MOVIES\The Insider 1999 1080p.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
[11:08:22] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
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
[11:08:22] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'G:\MOVIES\The Insider 1999 1080p.mkv':
Duration: 02:37:46.83, start: 0.000000, bitrate: N/A
Chapter #0:0: start 0.000000, end 374.499000
Metadata:
title : 00:00:00.000
Chapter #0:1: start 374.499000, end 761.344000
Metadata:
title : 00:06:14.499
Chapter #0:2: start 761.344000, end 912.245000
Metadata:
title : 00:12:41.344
Chapter #0:3: start 912.245000, end 1043.292000
Metadata:
title : 00:15:12.245
Chapter #0:4: start 1043.292000, end 1350.933000
Metadata:
title : 00:17:23.292
Chapter #0:5: start 1350.933000, end 1740.030000
Metadata:
title : 00:22:30.933
Chapter #0:6: start 1740.030000, end 2262.844000
Metadata:
title : 00:29:00.030
Chapter #0:7: start 2262.844000, end 2635.132000
Metadata:
title : 00:37:42.844
Chapter #0:8: start 2635.132000, end 2881.504000
Metadata:
title : 00:43:55.132
Chapter #0:9: start 2881.504000, end 3078.033000
Metadata:
title : 00:48:01.504
Chapter #0:10: start 3078.033000, end 3269.433000
Metadata:
title : 00:51:18.033
Chapter #0:11: start 3269.433000, end 3440.062000
Metadata:
title : 00:54:29.433
Chapter #0:12: start 3440.062000, end 3670.876000
Metadata:
title : 00:57:20.062
Chapter #0:13: start 3670.876000, end 3829.242000
Metadata:
title : 01:01:10.876
Chapter #0:14: start 3829.242000, end 4331.327000
Metadata:
title : 01:03:49.242
Chapter #0:15: start 4331.327000, end 4646.767000
Metadata:
title : 01:12:11.327
Chapter #0:16: start 4646.767000, end 4980.893000
Metadata:
title : 01:17:26.767
Chapter #0:17: start 4980.893000, end 5445.440000
Metadata:
title : 01:23:00.893
Chapter #0:18: start 5445.440000, end 6028.773000
Metadata:
title : 01:30:45.440
Chapter #0:19: start 6028.773000, end 6238.524000
Metadata:
title : 01:40:28.773
Chapter #0:20: start 6238.524000, end 6687.681000
Metadata:
title : 01:43:58.524
Chapter #0:21: start 6687.681000, end 7004.080000
Metadata:
title : 01:51:27.681
Chapter #0:22: start 7004.080000, end 7414.282000
Metadata:
title : 01:56:44.080
Chapter #0:23: start 7414.282000, end 8142.551000
Metadata:
title : 02:03:34.282
Chapter #0:24: start 8142.551000, end 8360.811000
Metadata:
title : 02:15:42.551
Chapter #0:25: start 8360.811000, end 8613.730000
Metadata:
title : 02:19:20.811
Chapter #0:26: start 8613.730000, end 8797.747000
Metadata:
title : 02:23:33.730
Chapter #0:27: start 8797.747000, end 9018.968000
Metadata:
title : 02:26:37.747
Chapter #0:28: start 9018.968000, end 9198.106000
Metadata:
title : 02:30:18.968
Chapter #0:29: start 9198.106000, end 9466.833000
Metadata:
title : 02:33:18.106
Stream #0:0(eng): Video: h264 (High)
yuv420p, 1920x808, PAR 1:1 DAR 240:101
23.98 fps, 1k tbn (default)
Stream #0:1(eng): Audio: dts (DTS)
48000 Hz, 5.1, fltp, 1536 kb/s (default)
Stream #0:2(eng): Subtitle: srt
[11:08:22] scan: decoding previews for title 1
[11:08:22] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[11:08:22] scan: 10 previews, 1920x808, 23.976 fps, autocrop = 2/2/0/0, aspect 2.38:1, PAR 1:1
[11:08:22] scan: supported video decoders: avcodec qsv
[11:08:22] libhb: scan thread found 1 valid title(s)
[11:08:22] starting job
[11:08:22] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP3, FLAC
[11:08:22] Auto Passthru: fallback is AC3
[11:08:22] Auto Passthru: using DTS Passthru for track 1
[11:08:22] job configuration:
[11:08:22] * source
[11:08:22] + G:\MOVIES\The Insider 1999 1080p.mkv
[11:08:22] + title 1, chapter(s) 1 to 30
[11:08:22] + container: matroska,webm
[11:08:22] * destination
[11:08:22] + D:\NZBs\The Insider 1999 1080p 265.mkv
[11:08:22] + container: Matroska (libavformat)
[11:08:22] + chapter markers
[11:08:22] * video track
[11:08:22] + decoder: h264
[11:08:22] + filters
[11:08:22] + Framerate Shaper (mode=1)
[11:08:22] + frame rate: 23.976 fps -> constant 23.976 fps
[11:08:22] + Crop and Scale (width=1920:height=808:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[11:08:22] + source: 1920 * 808, crop (0/0/0/0): 1920 * 808, scale: 1920 * 808
[11:08:22] + Output geometry
[11:08:22] + storage dimensions: 1920 x 808
[11:08:22] + pixel aspect ratio: 1 : 1
[11:08:22] + display dimensions: 1920 x 808
[11:08:22] + encoder: H.265 (Intel Media SDK)
[11:08:22] + preset: balanced
[11:08:22] + profile: auto
[11:08:22] + level: auto
[11:08:22] + quality: 21.00 (ICQ)
[11:08:22] * subtitle track 1, English [UTF-8] (track 0, id 0x2, Text) -> Passthrough
[11:08:22] * audio track 1
[11:08:22] + decoder: English (DTS) (5.1 ch) (track 1, id 0x1)
[11:08:22] + bitrate: 1536 kbps, samplerate: 48000 Hz
[11:08:22] + DTS Passthru
[11:08:22] sync: expecting 226977 video frames
[11:08:23] encqsvInit: using encode-only path
[11:08:23] encqsvInit: H.265/HEVC Main profile @ level (null)
[11:08:23] encqsvInit: TargetUsage 4 AsyncDepth 5
[11:08:23] encqsvInit: GopRefDist 3 GopPicSize 24 NumRefFrame 2
[11:08:23] encqsvInit: BFramesMax 2 BRefType off
[11:08:23] encqsvInit: RateControlMethod ICQ ICQQuality 21
[11:08:23] sync: first pts video is 0
[11:08:23] sync: "00:00:00.000" (1) at frame 1 time 0
[11:08:23] sync: first pts audio 0x1 is 0
[11:08:23] qsv_enc_init: using 'hardware (2) via D3D11' implementation, API: 1.25
[11:08:29] sync: first pts subtitle 0x2 is 2297340
[11:10:04] sync: "00:06:14.499" (2) at frame 8980 time 33704921
[11:11:50] sync: "00:12:41.344" (3) at frame 18255 time 68520952
[11:12:30] sync: "00:15:12.245" (4) at frame 21873 time 82102020
[11:13:07] sync: "00:17:23.292" (5) at frame 25015 time 93896302
[11:14:32] sync: "00:22:30.933" (6) at frame 32391 time 121583962
[11:16:18] sync: "00:29:00.030" (7) at frame 41723 time 156613957
[11:18:41] sync: "00:37:42.844" (8) at frame 54255 time 203655952
[11:20:25] sync: "00:43:55.132" (9) at frame 63181 time 237161925
[11:21:35] sync: "00:48:01.504" (10) at frame 69088 time 259335326
[11:22:30] sync: "00:51:18.033" (11) at frame 73800 time 277022996
[11:23:25] sync: "00:54:29.433" (12) at frame 78389 time 294248955
[11:24:13] sync: "00:57:20.062" (13) at frame 82480 time 309605546
[11:25:18] sync: "01:01:10.876" (14) at frame 88015 time 330382552
[11:26:01] sync: "01:03:49.242" (15) at frame 91811 time 344631787
Error code -21, hb_qsv_wait_on_sync 602

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

Re: Error COde -21

Post by s55 » Sat Oct 13, 2018 6:07 pm

Update your Intel HD Graphics drivers. They are quite substantially out of date. Older drivers are known to have issues.

Grain
Posts: 3
Joined: Sat Oct 13, 2018 5:35 pm

Re: Error COde -21

Post by Grain » Sat Oct 13, 2018 7:07 pm

Thanks, updated and trying again. I'll report back.

Grain
Posts: 3
Joined: Sat Oct 13, 2018 5:35 pm

Re: Error COde -21

Post by Grain » Sat Oct 13, 2018 7:48 pm

Success! Thanks a lot!

Post Reply