Handbrake Crashes during Compression

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
HellPhantom
Posts: 2
Joined: Mon Feb 11, 2019 3:56 pm

Handbrake Crashes during Compression

Post by HellPhantom » Wed Feb 13, 2019 9:44 am

Description of problem or question:
I have about 20 large MKV movies around 10Gb to 20Gb that I would like to compress to a smaller size. Handbrake crashes and closes during compression of most of these movies and i am stumped, I don't know why. I need some help or guidance to interpret the log file as to why it fails.
I can build previews without a problem and I am happy with the settings, it should produce movies of the size and quality that I want if it finishes. I have compressed around 6 that did work but I am now stuck with the next 6 that always fails so there must be something unique around them that I don't understand. Please help.

I have worked through some other forum questions and solutions but could not resolve my issue yet. I moved my movies between different HDD because I suspected maybe the drive goes to sleep etc, it is now running everything from my SSD which is very fast and not sleeping, I also checked permissions and as far as I can tell permissions is not an issue, otherwise no movie would ever have worked. Nvidia drivers is updated to latest shown in log. I have 2 display cards and in am I am not using them for compression. These are MKV files not dvd so I am not sure about copy protection and if this can play a role still.

I have no idea what the log is trying to tell me or what to do next.

Steps to reproduce the problem (If Applicable):
For now I will just pick "Run of the Arrow (1957)- 9.2Gb" it consistently fails with the setting in my log.

HandBrake version (e.g., 1.0.0):
Latest - 1.20 ((2018121700) released version

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

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

Code: Select all

HandBrake 1.2.0 (2018121700)
OS: Microsoft Windows NT 10.0.17134.0
Ram: 32706 MB, 
GPU Information:
  NVIDIA GeForce GTX 680 - 25.21.14.1881
  NVIDIA GeForce GTX 680 - 25.21.14.1881
Screen: 1920x1080
Temp Dir: C:\Users\Christo\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Christo\AppData\Roaming\HandBrake

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


# Starting Encode ...

[18:13:32] hb_init: starting libhb thread
[18:13:32] 1 job(s) to process
[18:13:32] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 2.0,
        "Mixdown": 6,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [],
    "ChapterMarkers": false,
    "AlignAVStart": false,
    "File": "C:\\Users\\Christo\\Downloads\\Handbrake_Converted\\Run Of The Arrow (1957) 1_Converted_Q24_VerySlow_Film_High_41_DenoiseMedium.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "40",
          "block-width": "16",
          "filter-mode": "2",
          "mode": "3",
          "motion-thresh": "1",
          "spatial-metric": "2",
          "spatial-thresh": "1"
        }
      },
      {
        "ID": 9,
        "Settings": {
          "cb-frame-count": 2,
          "cb-origin-tune": 0.8,
          "cb-patch-size": 7,
          "cb-prefilter": 0,
          "cb-range": 3,
          "cb-strength": 8.0,
          "y-frame-count": 2,
          "y-origin-tune": 0.8,
          "y-patch-size": 7,
          "y-prefilter": 0,
          "y-range": 3,
          "y-strength": 6.0
        }
      },
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Users\\Christo\\Downloads\\Handbrake_Converted\\Run of the Arrow (1957).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": "x264",
    "Level": "4.1",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "ref=5:bframes=5",
    "Preset": "slower",
    "Profile": "high",
    "Quality": 24.0,
    "Tune": "film",
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[18:13:32] CPU: Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
[18:13:32]  - Intel microarchitecture Sandy Bridge
[18:13:32]  - logical processor count: 12
[18:13:32] Intel Quick Sync Video support: no
[18:13:32] hb_scan: path=C:\Users\Christo\Downloads\Handbrake_Converted\Run of the Arrow (1957).mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\Users\Christo\Downloads\Handbrake_Converted\Run of the Arrow (1957).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:13:32] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
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:13:32] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\Users\Christo\Downloads\Handbrake_Converted\Run of the Arrow (1957).mkv':
  Metadata:
    encoder         : libebml v1.3.5 + libmatroska v1.4.8
    creation_time   : 2017-11-22T17:26:48.000000Z
  Duration: 01:25:49.10, start: 0.000000, bitrate: 15366 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      BPS             : 14915970
      BPS-eng         : 14915970
      DURATION        : 01:25:49.102000000
      DURATION-eng    : 01:25:49.102000000
      NUMBER_OF_FRAMES: 123455
      NUMBER_OF_FRAMES-eng: 123455
      NUMBER_OF_BYTES : 9600481886
      NUMBER_OF_BYTES-eng: 9600481886
      _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2017-11-22 17:26:48
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-11-22 17:26:48
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      BPS             : 448000
      BPS-eng         : 448000
      DURATION        : 01:25:49.088000000
      DURATION-eng    : 01:25:49.088000000
      NUMBER_OF_FRAMES: 160909
      NUMBER_OF_FRAMES-eng: 160909
      NUMBER_OF_BYTES : 288348928
      NUMBER_OF_BYTES-eng: 288348928
      _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2017-11-22 17:26:48
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-11-22 17:26:48
      _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): Subtitle: subrip
    Metadata:
      BPS             : 66
      BPS-eng         : 66
      DURATION        : 01:25:30.657000000
      DURATION-eng    : 01:25:30.657000000
      NUMBER_OF_FRAMES: 1136
      NUMBER_OF_FRAMES-eng: 1136
      NUMBER_OF_BYTES : 42448
      NUMBER_OF_BYTES-eng: 42448
      _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2017-11-22 17:26:48
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-11-22 17:26:48
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[18:13:32] scan: decoding previews for title 1
[18:13:32] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[18:13:33] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[18:13:33] scan: supported video decoders: avcodec qsv
[18:13:33] libhb: scan thread found 1 valid title(s)
[18:13:33] starting job
[18:13:33] decomb filter thread started for segment 0
[18:13:33] decomb filter thread started for segment 2
[18:13:33] decomb filter thread started for segment 4
[18:13:33] decomb filter thread started for segment 3
[18:13:33] decomb filter thread started for segment 1
[18:13:33] decomb filter thread started for segment 9
[18:13:33] decomb filter thread started for segment 11
[18:13:33] decomb check thread started for segment 0
[18:13:33] decomb filter thread started for segment 8
[18:13:33] decomb filter thread started for segment 10
[18:13:33] decomb check thread started for segment 4
[18:13:33] decomb filter thread started for segment 6
[18:13:33] decomb check thread started for segment 7
[18:13:33] decomb check thread started for segment 1
[18:13:33] decomb check thread started for segment 2
[18:13:33] decomb check thread started for segment 3
[18:13:33] decomb filter thread started for segment 5
[18:13:33] mask filter thread started for segment 2
[18:13:33] mask filter thread started for segment 5
[18:13:33] decomb check thread started for segment 5
[18:13:33] mask filter thread started for segment 7
[18:13:33] decomb check thread started for segment 9
[18:13:33] mask filter thread started for segment 10
[18:13:33] decomb check thread started for segment 11
[18:13:33] mask erode thread started for segment 1
[18:13:33] mask filter thread started for segment 1
[18:13:33] mask erode thread started for segment 3
[18:13:33] decomb check thread started for segment 6
[18:13:33] mask filter thread started for segment 4
[18:13:33] mask filter thread started for segment 6
[18:13:33] decomb filter thread started for segment 7
[18:13:33] mask filter thread started for segment 8
[18:13:33] decomb check thread started for segment 8
[18:13:33] mask filter thread started for segment 9
[18:13:33] decomb check thread started for segment 10
[18:13:33] mask filter thread started for segment 11
[18:13:33] mask erode thread started for segment 0
[18:13:33] mask filter thread started for segment 0
[18:13:33] mask dilate thread started for segment 9
[18:13:33] mask dilate thread started for segment 10
[18:13:33] mask erode thread started for segment 4
[18:13:33] mask erode thread started for segment 5
[18:13:33] mask erode thread started for segment 6
[18:13:33] mask erode thread started for segment 7
[18:13:33] mask erode thread started for segment 8
[18:13:33] yadif thread started for segment 4
[18:13:33] mask erode thread started for segment 10
[18:13:33] mask erode thread started for segment 11
[18:13:33] mask dilate thread started for segment 0
[18:13:33] yadif thread started for segment 9
[18:13:33] yadif thread started for segment 10
[18:13:33] mask dilate thread started for segment 3
[18:13:33] NLMeans using SSE2 optimizations
[18:13:33] mask dilate thread started for segment 4
[18:13:33] mask dilate thread started for segment 5
[18:13:33] mask dilate thread started for segment 6
[18:13:33] mask dilate thread started for segment 7
[18:13:33] mask dilate thread started for segment 8
[18:13:33] mask erode thread started for segment 2
[18:13:33] NLMeans thread started for segment 2
[18:13:33] mask dilate thread started for segment 11
[18:13:33] yadif thread started for segment 0
[18:13:33] yadif thread started for segment 1
[18:13:33] yadif thread started for segment 2
[18:13:33] yadif thread started for segment 3
[18:13:33] mask erode thread started for segment 9
[18:13:33] yadif thread started for segment 5
[18:13:33] yadif thread started for segment 6
[18:13:33] yadif thread started for segment 7
[18:13:33] yadif thread started for segment 8
[18:13:33] job configuration:
[18:13:33] mask dilate thread started for segment 1
[18:13:33]  * source
[18:13:33]    + C:\Users\Christo\Downloads\Handbrake_Converted\Run of the Arrow (1957).mkv
[18:13:33]    + title 1, chapter(s) 1 to 1
[18:13:33]    + container: matroska,webm
[18:13:33]    + data rate: 15366 kbps
[18:13:33]  * destination
[18:13:33] mask dilate thread started for segment 2
[18:13:33]    + C:\Users\Christo\Downloads\Handbrake_Converted\Run Of The Arrow (1957) 1_Converted_Q24_VerySlow_Film_High_41_DenoiseMedium.mkv
[18:13:33]    + container: Matroska (libavformat)
[18:13:33]  * video track
[18:13:33]    + decoder: h264
[18:13:33]    + filters
[18:13:33] yadif thread started for segment 11
[18:13:33]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[18:13:33] NLMeans thread started for segment 0
[18:13:33]      + Decomb (mode=39)
[18:13:33]      + Framerate Shaper (mode=0)
[18:13:33]        + frame rate: same as source (around 23.976 fps)
[18:13:33] NLMeans thread started for segment 1
[18:13:33]      + Denoise (nlmeans) (y-strength=6:y-origin-tune=0.8:y-patch-size=7:y-range=3:y-frame-count=2:y-prefilter=0:cb-strength=8:cb-origin-tune=0.8:cb-patch-size=7:cb-range=3:cb-frame-count=2:cb-prefilter=0)
[18:13:33] mask filter thread started for segment 3
[18:13:33]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[18:13:33]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[18:13:33]    + Output geometry
[18:13:33]      + storage dimensions: 1920 x 1080
[18:13:33]      + pixel aspect ratio: 1 : 1
[18:13:33]      + display dimensions: 1920 x 1080
[18:13:33]    + encoder: H.264 (libx264)
[18:13:33]      + preset:  slower
[18:13:33]      + tune:    film
[18:13:33]      + options: ref=5:bframes=5
[18:13:33]      + profile: high
[18:13:33]      + level:   4.1
[18:13:33] NLMeans thread started for segment 3
[18:13:33]      + quality: 24.00 (RF)
[18:13:33]      + color profile: 1-1-1
[18:13:33]  * subtitle track 1, English [UTF-8] (track 0, id 0x2, Text) -> Passthrough
[18:13:33]  * audio track 1
[18:13:33]    + decoder: English (AC3) (5.1 ch) (track 1, id 0x1)
[18:13:33]      + bitrate: 448 kbps, samplerate: 48000 Hz
[18:13:33] NLMeans thread started for segment 4
[18:13:33]    + mixdown: Dolby Pro Logic II
[18:13:33]    + gain: 2dB
[18:13:33]    + dither: none
[18:13:33]    + encoder: AAC (libavcodec)
[18:13:33]      + bitrate: 160 kbps, samplerate: 48000 Hz
[18:13:33] NLMeans thread started for segment 5
[18:13:33] NLMeans thread started for segment 6
[18:13:33] NLMeans thread started for segment 7
[18:13:33] NLMeans thread started for segment 8
[18:13:33] NLMeans thread started for segment 9
[18:13:33] NLMeans thread started for segment 10
[18:13:33] NLMeans thread started for segment 11
[18:13:33] sync: expecting 123454 video frames
[18:13:33] encx264: min-keyint: 24, keyint: 240
[18:13:33] encx264: encoding at constant RF 24.000000
[18:13:33] encx264: unparsed options: ref=4:bframes=5:level=4.1:b-adapt=2:direct=auto:deblock=-1,-1:analyse=all:me=umh:subme=9:trellis=2:psy-rd=1,0.15:vbv-bufsize=78125:vbv-maxrate=62500:rc-lookahead=60
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 4.1, 4:2:0, 8-bit
[18:13:34] sync: first pts video is 0
[18:13:34] sync: Chapter 1 at frame 1 time 0
[18:13:34] sync: first pts audio 0x1 is 0
[18:13:34] sync: first pts subtitle 0x2 is 27090

HellPhantom
Posts: 2
Joined: Mon Feb 11, 2019 3:56 pm

Re: Handbrake Crashes during Compression

Post by HellPhantom » Fri Feb 15, 2019 5:23 am

I have Since done another run where I removed Subtitles completely and also disabled Denoise that worked. I am running one now with Denoise enabled without subtitles again to see if it will work. I have run this particular movie over 8 times and they all failed with varies changes and different decoders but this was the first time it ever worked. Normally Handbrake just disappear after a few hours. Machine is not overclocked or or overheating, I am checking and recording my Asus "Extreme tuning logs". Also no system or app errors appear.

Errors from Windows App logs from the last crash:

Application: HandBrake.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 000000006F35CD54
-------------

Faulting application name: HandBrake.exe, version: 1.2.0.0, time stamp: 0x5c17b8f5
Faulting module name: hb.DLL, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x000000000005cd54
Faulting process id: 0x2b04
Faulting application start time: 0x01d4c4249d14d391
Faulting application path: C:\Program Files\HandBrake\HandBrake.exe
Faulting module path: C:\Program Files\HandBrake\hb.DLL
Report Id: c53fa7d9-08c1-462d-ab90-80fb07864cdb
Faulting package full name:
Faulting package-relative application ID:

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

Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: HandBrake.exe
P2: 1.2.0.0
P3: 5c17b8f5
P4: hb.DLL
P5: 0.0.0.0
P6: 00000000
P7: c0000005
P8: 000000000005cd54
P9:
P10:

Attached files:

These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_HandBrake.exe_f6435a3b2cb23cbdc1b25afbaf83be1d2be1a5f_ffd5d7ad_43d2bfd3

Analysis symbol:
Rechecking for solution: 0
Report Id: c53fa7d9-08c1-462d-ab90-80fb07864cdb
Report Status: 100
Hashed bucket:
Cab Guid: 0

------------------
Fault bucket 2066054034492571394, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: HandBrake.exe
P2: 1.2.0.0
P3: 5c17b8f5
P4: hb.DLL
P5: 0.0.0.0
P6: 00000000
P7: c0000005
P8: 000000000005cd54
P9:
P10:

Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERC050.tmp.WERInternalMetadata.xml

These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_HandBrake.exe_f6435a3b2cb23cbdc1b25afbaf83be1d2be1a5f_ffd5d7ad_41c6c6f7

Analysis symbol:
Rechecking for solution: 0
Report Id: c53fa7d9-08c1-462d-ab90-80fb07864cdb
Report Status: 268435552
Hashed bucket: 49a632ca61b125c42cac1932acb13f02

Post Reply