Handbrake quits work prematurely

Archive of historical bug reports.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
nanonanobis
Posts: 4
Joined: Tue Dec 09, 2014 12:03 pm

Handbrake quits work prematurely

Post by nanonanobis »

Hi, I found that Handbrake quits its conversion work prematurely, possibly within 25% of total, if output file is selected with more than two subs. I'm working with mp4 output and mkv input files, either with Normal, Apple tv2 or Apple tv3 profiles.
This does not happen with every input files, but many.
With "faulty" input files, I choose multi audio tracks and multi subs and it crashes, resulting in a very smaller and short output video file.
With the same input file, if I choose as well multi audio tracks but only one subs, it completes its work properly and I get a regular output video file.

Regards
Last edited by nanonanobis on Tue Dec 09, 2014 1:31 pm, edited 3 times in total.
TedJ
Veteran User
Posts: 5388
Joined: Wed Feb 20, 2008 11:25 pm

Re: Handbrake quits work prematurely

Post by TedJ »

nanonanobis
Posts: 4
Joined: Tue Dec 09, 2014 12:03 pm

Re: Handbrake quits work prematurely

Post by nanonanobis »

You're right, sorry.

I've updateded to last built and it happened again:
Version 6590svn x86_64 (2014120901)
OSX 10.10.1

and this is the log,

[13:58:33] macgui: Handbrake Version: 6590svn x86_64 (2014120901)
[13:58:33] hb_init: starting libhb thread
[13:58:33] hb_init: starting libhb thread
[13:58:40] macgui: built in presets updated to build number: 2014120901
[13:58:40] macgui: hbInstances path to this instance: /Applications/HandBrake.app
[13:58:40] macgui: hbInstance found instance pidnum: 2557 at path: /Applications/HandBrake.app
[13:58:40] macgui: hbInstance MATCH FOUND, our pidnum is: 2557
[13:58:40] macgui: Pid for this instance: 2557
[13:58:40] macgui: HBQueueController : My Pidnum is 2557
[13:58:41] macgui: Queue reloaded
[13:59:28] macgui: trying to open video_ts folder (parent directory chosen)
[13:59:28] macgui: scanning titles with a duration of 10 seconds or more
[13:59:28] CPU: Intel(R) Core(TM) i5-3470S CPU @ 2.90GHz
[13:59:28] - Intel microarchitecture Ivy Bridge
[13:59:28] - logical processor count: 4
[13:59:28] OpenCL device #1: NVIDIA GeForce GTX 660M
[13:59:28] - OpenCL version: 1.2
[13:59:28] - driver version: 10.0.43 310.41.05f01
[13:59:28] - device type: GPU
[13:59:28] - supported: no
[13:59:28] hb_scan: path=/Users/leodado/Downloads/Sherlock/Sherlock 3x03 L'ultimo giuramento.mkv, title_index=0
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/leodado/Downloads/Sherlock/Sherlock 3x03 L'ultimo giuramento.mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/leodado/Downloads/Sherlock/Sherlock 3x03 L'ultimo giuramento.mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(/Users/leodado/Downloads/Sherlock/Sherlock 3x03 L'ultimo giuramento.mkv) failed
[13:59:28] 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
[13:59:28] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/Users/leodado/Downloads/Sherlock/Sherlock 3x03 L'ultimo giuramento.mkv':
Duration: 01:29:08.96, start: 0.000000, bitrate: N/A
Stream #0.0(eng): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 25 fps, 1k tbn, 50 tbc (default)
Stream #0.1(ita): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
Metadata:
title : Dolby Digital 2.0 - 192 kbps
Stream #0.2(eng): Audio: ac3, 48000 Hz, 5.1, fltp, 640 kb/s
Metadata:
title : AC3 640 kbps
Stream #0.3(eng): Audio: dca (DTS), 48000 Hz, 5.1, fltp, 1536 kb/s
Metadata:
title : DTS 1536 kbps
Stream #0.4(ita): Subtitle: [0][0][0][0] / 0x0000 (default) (forced)
Metadata:
title : SUB ITA Forced
Stream #0.5(ita): Subtitle: [0][0][0][0] / 0x0000
Metadata:
title : SUB ITA
Stream #0.6(eng): Subtitle: [0][0][0][0] / 0x0000
Metadata:
title : SUB ENG
[13:59:28] scan: decoding previews for title 1
[13:59:28] scan: audio 0x3: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[13:59:28] scan: audio 0x2: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[13:59:28] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 Italiano (AC3) (2.0 ch)
[13:59:30] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[13:59:30] libhb: scan thread found 1 valid title(s)
[13:59:30] macgui: ScanDone state received from fHandle
[13:59:30] macgui: showNewScan: This is a new source item scan
[13:59:50] macgui: Rip: Pending queue count is 0
[13:59:59] macgui: Rip: Pending queue count is 0
[13:59:59] macgui: getNextPendingQueueIndex next pending encode index is:0
[13:59:59] macgui: scanning specifically for title: 1
[13:59:59] CPU: Intel(R) Core(TM) i5-3470S CPU @ 2.90GHz
[13:59:59] - Intel microarchitecture Ivy Bridge
[13:59:59] - logical processor count: 4
[13:59:59] OpenCL device #1: NVIDIA GeForce GTX 660M
[13:59:59] - OpenCL version: 1.2
[13:59:59] - driver version: 10.0.43 310.41.05f01
[13:59:59] - device type: GPU
[13:59:59] - supported: no
[13:59:59] hb_scan: path=/Users/leodado/Downloads/Sherlock/Sherlock 3x03 L'ultimo giuramento.mkv, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/leodado/Downloads/Sherlock/Sherlock 3x03 L'ultimo giuramento.mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/leodado/Downloads/Sherlock/Sherlock 3x03 L'ultimo giuramento.mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(/Users/leodado/Downloads/Sherlock/Sherlock 3x03 L'ultimo giuramento.mkv) failed
[13:59:59] 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
[13:59:59] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/Users/leodado/Downloads/Sherlock/Sherlock 3x03 L'ultimo giuramento.mkv':
Duration: 01:29:08.96, start: 0.000000, bitrate: N/A
Stream #0.0(eng): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 25 fps, 1k tbn, 50 tbc (default)
Stream #0.1(ita): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
Metadata:
title : Dolby Digital 2.0 - 192 kbps
Stream #0.2(eng): Audio: ac3, 48000 Hz, 5.1, fltp, 640 kb/s
Metadata:
title : AC3 640 kbps
Stream #0.3(eng): Audio: dca (DTS), 48000 Hz, 5.1, fltp, 1536 kb/s
Metadata:
title : DTS 1536 kbps
Stream #0.4(ita): Subtitle: [0][0][0][0] / 0x0000 (default) (forced)
Metadata:
title : SUB ITA Forced
Stream #0.5(ita): Subtitle: [0][0][0][0] / 0x0000
Metadata:
title : SUB ITA
Stream #0.6(eng): Subtitle: [0][0][0][0] / 0x0000
Metadata:
title : SUB ENG
[13:59:59] scan: decoding previews for title 1
[13:59:59] scan: audio 0x3: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[13:59:59] scan: audio 0x2: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[13:59:59] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 Italiano (AC3) (2.0 ch)
[13:59:59] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[13:59:59] libhb: scan thread found 1 valid title(s)
[14:00:00] macgui: ScanDone state received from fQueueEncodeLibhb
[14:00:00] macgui: Preset: Normal (Default)
[14:00:00] macgui: processNewQueueEncode number of passes expected is: 1
[14:00:00] macgui: Start / Stop set to chapters
[14:00:00] macgui: prepareJob exiting
[14:00:00] 1 job(s) to process
[14:00:00] starting job
[14:00:00] sync: expecting 133724 video frames
[14:00:00] job configuration:
[14:00:00] * source
[14:00:00] + /Users/leodado/Downloads/Sherlock/Sherlock 3x03 L'ultimo giuramento.mkv
[14:00:00] + title 1, chapter(s) 1 to 1
[14:00:00] + container: matroska,webm
[14:00:00] * destination
[14:00:00] + /Users/leodado/Movies/Sherlock 3x03 L'ultimo giuramento_2.mp4
[14:00:00] + container: MPEG-4 (libavformat)
[14:00:00] * video track
[14:00:00] + decoder: h264
[14:00:00] + filters
[14:00:00] + Framerate Shaper (0:27000000:1080000)
[14:00:00] + frame rate: same as source (around 25.000 fps)
[14:00:00] + Crop and Scale (1920:1080:0:0:0:0)
[14:00:00] + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[14:00:00] + loose anamorphic
[14:00:00] + storage dimensions: 1920 * 1080, mod 2
[14:00:00] + pixel aspect ratio: 1 / 1
[14:00:00] + display dimensions: 1920 * 1080
[14:00:00] + encoder: H.264 (libx264)
[14:00:00] + preset: veryfast
[14:00:00] + profile: main
[14:00:00] + level: 4.0
[14:00:00] + quality: 20.00 (RF)
[14:00:00] * subtitle track 1, Italian (track 4, id 0x4) Text [UTF-8] -> Passthrough
[14:00:00] * subtitle track 2, English (track 6, id 0x6) Text [UTF-8] -> Passthrough
[14:00:00] * audio track 1
[14:00:00] + decoder: Italiano (AC3) (2.0 ch) (track 1, id 0x1)
[14:00:00] + bitrate: 192 kbps, samplerate: 48000 Hz
[14:00:00] + mixdown: Stereo
[14:00:00] + encoder: AAC (Apple AudioToolbox)
[14:00:00] + bitrate: 320 kbps, samplerate: 48000 Hz
[14:00:00] * audio track 2
[14:00:00] + decoder: English (DTS) (5.1 ch) (track 3, id 0x3)
[14:00:00] + bitrate: 1536 kbps, samplerate: 48000 Hz
[14:00:00] + mixdown: 5.1 Channels
[14:00:00] + encoder: AAC (Apple AudioToolbox)
[14:00:00] + bitrate: 384 kbps, samplerate: 48000 Hz
[14:00:00] reader: first SCR 0 id 0x0 DTS 0
[14:00:00] encx264: encoding at constant RF 20.000000
[14:00:00] encx264: unparsed options: level=4.0:ref=1:8x8dct=0:weightp=1:subme=2:mixed-refs=0:trellis=0:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=10
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile Main, level 4.0
[14:00:00] macgui: Queue reloaded
[14:00:00] macgui: Queue reloaded
[mp4 @ 0x10229f400] Application provided invalid, non monotonically increasing dts to muxer in stream 3: 5047560 >= 5047560
GUI ERROR dialog: avformatMux: track 3, av_interleaved_write_frame failed with error 'Invalid argument'
[14:00:33] work: average encoding speed for job is 53.725384 fps
[14:00:33] sync: got 1787 frames, 133724 expected
[14:00:33] reader: done. 1 scr changes
[14:00:33] render: lost time: 0 (0 frames)
[14:00:33] render: gained time: 0 (0 frames) (0 not accounted for)
[14:00:33] h264-decoder done: 1801 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:32 Avg QP:16.51 size:175409
x264 [info]: frame P:976 Avg QP:19.43 size: 32215
x264 [info]: frame B:737 Avg QP:20.08 size: 9286
x264 [info]: consecutive B-frames: 31.1% 36.6% 3.4% 28.9%
x264 [info]: mb I I16..4: 60.8% 0.0% 39.2%
x264 [info]: mb P I16..4: 26.1% 0.0% 0.7% P16..4: 33.8% 10.3% 4.3% 0.0% 0.0% skip:24.9%
x264 [info]: mb B I16..4: 2.7% 0.0% 0.0% B16..8: 18.4% 3.0% 0.1% direct:10.7% skip:65.2% L0:40.1% L1:50.5% BI: 9.3%
x264 [info]: coded y,uvDC,uvAC intra: 41.2% 63.5% 23.0% inter: 8.1% 23.7% 0.5%
x264 [info]: i16 v,h,dc,p: 34% 22% 31% 12%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 18% 24% 6% 6% 6% 6% 6% 5%
x264 [info]: i8c dc,h,v,p: 56% 20% 21% 3%
x264 [info]: Weighted P-Frames: Y:0.4% UV:0.2%
x264 [info]: kb/s:5031.45
[14:00:33] ac3-decoder done: 0 frames, 0 decoder errors, 0 drops
[14:00:33] dca-decoder done: 0 frames, 0 decoder errors, 0 drops
[14:00:33] mux: track 0, 1422 frames, 34825141 bytes, 4894.61 kbps, fifo 512
[14:00:33] mux: track 1, 2667 frames, 2332970 bytes, 327.89 kbps, fifo 1024
[14:00:33] mux: track 2, 2667 frames, 2814213 bytes, 395.53 kbps, fifo 1024
[14:00:33] mux: track 3, 4 frames, 769 bytes, 0.11 kbps, fifo 8
[14:00:33] mux: track 4, 17 frames, 1097 bytes, 0.15 kbps, fifo 8
[14:00:33] libhb: work result = 4
[14:00:34] macgui: incrementQueueItemDone there are no more pending encodes
[14:00:45] macgui: Queue reloaded
Last edited by nanonanobis on Tue Dec 09, 2014 1:30 pm, edited 1 time in total.
nanonanobis
Posts: 4
Joined: Tue Dec 09, 2014 12:03 pm

Re: Handbrake quits work prematurely

Post by nanonanobis »

... and OSX 10.10.1
User avatar
JohnAStebbins
HandBrake Team
Posts: 5709
Joined: Sat Feb 09, 2008 7:21 pm

Re: Handbrake quits work prematurely

Post by JohnAStebbins »

Your mkv appears to have a broken subtitle track (timestamps are not sequenced properly). Try remuxing it with mkvmerge before feeding it to HandBrake.
mduell
Veteran User
Posts: 8182
Joined: Sat Apr 21, 2007 8:54 pm

Re: Handbrake quits work prematurely

Post by mduell »

nanonanobis wrote:Input #0, matroska,webm, from '/Users/leodado/Downloads/Sherlock/Sherlock 3x03 L'ultimo giuramento.mkv':
Well that's an easy rule 3, bye.
nanonanobis
Posts: 4
Joined: Tue Dec 09, 2014 12:03 pm

Re: Handbrake quits work prematurely

Post by nanonanobis »

Yes, seen this topic just now, just a newbie.. :roll: :oops:

viewtopic.php?f=6&t=24140
mduell wrote:
nanonanobis wrote:Input #0, matroska,webm, from '/Users/leodado/Downloads/Sherlock/Sherlock 3x03 L'ultimo giuramento.mkv':
Well that's an easy rule 3, bye.
Post Reply