closed captions causes failure of encode

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
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
larryw31
Posts: 5
Joined: Fri Mar 02, 2018 3:52 pm

closed captions causes failure of encode

Post by larryw31 »

Description of problem or question
Closed Captions (CC) causes failure of MKV encode at ~4.13%.

Workaround:
I don't need CC.
How do I encode, choosing all subs automatically, but not CC?
The 'Add Closed Captions when available' option on 'Subtitle Defaults' Tab is NOT checked, but still gets added automatically.
Additionally, the 'Selection Behavior' is 'All tracks matching selected languages' of ANY language.

OR, I understand from posts about other older GHB versions, this might be a library conflict. Can I fix this?

Steps to reproduce the problem

Reproduced using several different dvd sources.
Add CC to subs list auto or manually does cause failure.

BUT, when CC not added to list, encode is successful.

HandBrake version
0.10.5 (x86_64)

Operating system and version
Linux MX-17_January

Error message text
'Encode Failed'

HandBrake Activity Log ***required***

Code: Select all

Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
[10:56:07] CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
[10:56:07]  - Intel microarchitecture Sandy Bridge
[10:56:07]  - logical processor count: 8
[10:56:07] OpenCL: library not available
[10:56:07] hb_scan: path=/media/jericho/bite/test.e01, title_index=2
disc.c:352: error opening file BDMV/index.bdmv
disc.c:352: error opening file BDMV/BACKUP/index.bdmv
[10:56:07] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
libdvdread: Couldn't find device name.
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00f20000. Regions: 1 3 4
libdvdread: Couldn't find device name.
[10:56:07] scan: DVD has 11 title(s)
[10:56:07] scan: scanning title 2
[10:56:07] scan: opening IFO for VTS 1
[10:56:07] scan: duration is 00:42:24 (2544166 ms)
[10:56:07] pgc_id: 2, pgn: 1: pgc: 0x7fc66400c900
[10:56:07] scan: vts=1, ttn=2, cells=0->6, blocks=0->719687, 719688 blocks
[10:56:07] scan: checking audio 1
[10:56:07] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=0
[10:56:07] scan: checking audio 2
[10:56:07] scan: id=0x81bd, lang=Portugues (AC3), 3cc=por ext=0
[10:56:07] scan: checking audio 3
[10:56:07] scan: audio channel is not active
[10:56:07] scan: checking subtitle 1
[10:56:07] scan: id=0x21bd, lang=English, 3cc=eng ext=1
[10:56:07] scan: checking subtitle 2
[10:56:07] scan: id=0x23bd, lang=Chinese, 3cc=zho ext=0
[10:56:07] scan: checking subtitle 3
[10:56:07] scan: id=0x25bd, lang=Francais, 3cc=fra ext=0
[10:56:07] scan: checking subtitle 4
[10:56:07] scan: id=0x27bd, lang=Portugues, 3cc=por ext=0
[10:56:07] scan: checking subtitle 5
[10:56:07] scan: id=0x29bd, lang=Espanol, 3cc=spa ext=0
[10:56:07] scan: checking subtitle 6
[10:56:07] scan: id=0x2bbd, lang=Thai, 3cc=tha ext=0
[10:56:07] scan: title 2 has 7 chapters
[10:56:07] scan: chap 1 c=0->0, b=0->217449 (217450), 760767 ms
[10:56:07] scan: chap 2 c=1->1, b=217450->362559 (145110), 500333 ms
[10:56:07] scan: chap 3 c=2->2, b=362560->477829 (115270), 411266 ms
[10:56:07] scan: chap 4 c=3->3, b=477830->631777 (153948), 554400 ms
[10:56:07] scan: chap 5 c=4->4, b=631778->714254 (82477), 286200 ms
[10:56:07] scan: chap 6 c=5->5, b=714255->719554 (5300), 28467 ms
[10:56:07] scan: chap 7 c=6->6, b=719555->719687 (133), 2767 ms
[10:56:07] scan: aspect = 1.77778
[10:56:07] scan: decoding previews for title 2
libdvdnav: DVD disk reports itself with Region mask 0x00f20000. Regions: 1 3 4
libdvdnav: Suspected RCE Region Protection!!!
[10:56:07] scan: title angle(s) 1
[ac3 @ 0x7fc66414dc80] frame sync error
[10:56:07] scan: audio 0x81bd: ac3, rate=48000Hz, bitrate=192000 Portugues (AC3) (2.0 ch) (Dolby Surround)
[ac3 @ 0x7fc66414dc80] frame sync error
[10:56:07] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)
[10:56:07] scan: 10 previews, 720x480, 23.976 fps, autocrop = 0/0/2/0, aspect 16:9, PAR 32:27
[10:56:07] libhb: scan thread found 1 valid title(s)
[10:56:09] gtkgui: Custom Preset: TV-Normal-360
[10:56:09] 1 job(s) to process
[10:56:09] starting job
[10:56:09] yadif thread started for segment 1
[10:56:09] yadif thread started for segment 0
[10:56:09] yadif thread started for segment 2
[10:56:09] yadif thread started for segment 3
[10:56:09] yadif thread started for segment 5
[10:56:09] yadif thread started for segment 6
[10:56:09] yadif thread started for segment 7
[10:56:09] yadif thread started for segment 4
[10:56:09] decomb filter thread started for segment 1
[10:56:09] decomb filter thread started for segment 0
[10:56:09] decomb filter thread started for segment 2
[10:56:09] decomb filter thread started for segment 3
[10:56:09] decomb filter thread started for segment 4
[10:56:09] decomb filter thread started for segment 5
[10:56:09] decomb filter thread started for segment 6
[10:56:09] decomb filter thread started for segment 7
[10:56:09] decomb check thread started for segment 0
[10:56:09] decomb check thread started for segment 1
[10:56:09] decomb check thread started for segment 2
[10:56:09] decomb check thread started for segment 3
[10:56:09] decomb check thread started for segment 4
[10:56:09] decomb check thread started for segment 5
[10:56:09] decomb check thread started for segment 6
[10:56:09] decomb check thread started for segment 7
[10:56:09] mask filter thread started for segment 0
[10:56:09] mask filter thread started for segment 1
[10:56:09] mask filter thread started for segment 2
[10:56:09] mask filter thread started for segment 3
[10:56:09] mask filter thread started for segment 4
[10:56:09] mask filter thread started for segment 5
[10:56:09] mask filter thread started for segment 6
[10:56:09] mask filter thread started for segment 7
[10:56:09] mask erode thread started for segment 0
[10:56:09] mask erode thread started for segment 1
[10:56:09] mask erode thread started for segment 2
[10:56:09] mask erode thread started for segment 3
[10:56:09] mask erode thread started for segment 4
[10:56:09] mask erode thread started for segment 5
[10:56:09] mask erode thread started for segment 6
[10:56:09] mask erode thread started for segment 7
[10:56:09] mask dilate thread started for segment 0
[10:56:09] mask dilate thread started for segment 1
[10:56:09] mask dilate thread started for segment 2
[10:56:09] mask dilate thread started for segment 3
[10:56:09] mask dilate thread started for segment 4
[10:56:09] mask dilate thread started for segment 5
[10:56:09] mask dilate thread started for segment 6
[10:56:09] mask dilate thread started for segment 7
[10:56:09] sync: expecting 60999 video frames
[10:56:09] job configuration:
[10:56:09]  * source
[10:56:09]    + /media/jericho/bite/test.e01
[10:56:09]    + title 2, chapter(s) 1 to 7
[10:56:09]  * destination
[10:56:09]    + /home/jericho/Videos/test.e01.mkv
[10:56:09]    + container: Matroska (libavformat)
[10:56:09]      + chapter markers
[10:56:09]  * video track
[10:56:09]    + decoder: mpeg2video
[10:56:09]      + bitrate 200 kbps
[10:56:09]    + filters
[10:56:09]      + Decomb (default settings)
[10:56:09]      + Framerate Shaper (0:27000000:1126125)
[10:56:09]        + frame rate: same as source (around 23.976 fps)
[10:56:09]      + Crop and Scale (540:360:0:0:2:0)
[10:56:09]        + source: 720 * 480, crop (0/0/2/0): 718 * 480, scale: 540 * 360
[10:56:09]    + loose anamorphic
[10:56:09]      + storage dimensions: 540 * 360, mod 2
[10:56:09]      + pixel aspect ratio: 1436 / 1215
[10:56:09]      + display dimensions: 638 * 360
[10:56:09]    + encoder: H.264 (libx264)
[10:56:09]      + preset:  slower
[10:56:09]      + tune:    film
[10:56:09]      + profile: main
[10:56:09]      + level:   4.0
[10:56:09]      + quality: 22.00 (RF)
[10:56:09]  * subtitle track 1, English (track 1, id 0x21bd) Picture [VOBSUB] -> Passthrough
[10:56:09]  * subtitle track 2, Chinese (track 2, id 0x23bd) Picture [VOBSUB] -> Passthrough
[10:56:09]  * subtitle track 3, Francais (track 3, id 0x25bd) Picture [VOBSUB] -> Passthrough
[10:56:09]  * subtitle track 4, Portugues (track 4, id 0x27bd) Picture [VOBSUB] -> Passthrough
[10:56:09]  * subtitle track 5, Espanol (track 5, id 0x29bd) Picture [VOBSUB] -> Passthrough
[10:56:09]  * subtitle track 6, Thai (track 6, id 0x2bbd) Picture [VOBSUB] -> Passthrough
[10:56:09]  * subtitle track 7, Closed Captions (track 0, id 0x0) Text [CC] -> Passthrough
[10:56:09]  * audio track 1
[10:56:09]    + decoder: English (AC3) (5.1 ch) (track 1, id 0x80bd)
[10:56:09]      + bitrate: 384 kbps, samplerate: 48000 Hz
[10:56:09]    + mixdown: Stereo
[10:56:09]    + encoder: AAC (libavcodec)
[10:56:09]      + bitrate: 160 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 5.0.3
libdvdread: Couldn't find device name.
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00f20000. Regions: 1 3 4
libdvdread: Couldn't find device name.
libdvdnav: DVD disk reports itself with Region mask 0x00f20000. Regions: 1 3 4
libdvdnav: Suspected RCE Region Protection!!!
[10:56:09] encx264: min-keyint: 24, keyint: 240
[10:56:09] encx264: encoding at constant RF 22.000000
[10:56:09] encx264: unparsed options: level=4.0:ref=8:b-adapt=2:direct=auto:deblock=-1,-1:analyse=all:8x8dct=0:me=umh:subme=9:trellis=2:psy-rd=1.00,0.15:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=60
x264 [info]: using SAR=1436/1215
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile Main, level 4.0
[10:56:09] encavcodecaInit: Unknown avcodec option stereo_mode
[10:56:09] reader: first SCR 146 id 0xe0 DTS 946
[10:56:09] mpeg2video: "Chapter 1" (1) at frame 0 time 3003
[10:56:09] sync: first pts is 3003
[matroska @ 0x7fc66ec72060] Subtitle codec 94212 is not supported.
[10:56:41] avformatMux: track 1, av_interleaved_write_frame failed with error 'Function not implemented'
[10:56:41] work: average encoding speed for job is 81.000519 fps
[10:56:41] reader: done. 1 scr changes
[10:56:41] sync: got 2538 frames, 60999 expected
[10:56:41] decomb: deinterlaced 24 | blended 6 | unfiltered 2494 | total 2524
[10:56:41] render: lost time: 0 (0 frames)
[10:56:41] render: gained time: 0 (0 frames) (0 not accounted for)
[10:56:41] mpeg2video-decoder done: 2543 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:83    Avg QP:18.76  size: 17287
x264 [info]: frame P:843   Avg QP:23.13  size:  5956
x264 [info]: frame B:1508  Avg QP:24.76  size:  2301
x264 [info]: consecutive B-frames: 10.7% 11.0% 26.7% 51.6%
x264 [info]: mb I  I16..4: 46.0%  0.0% 54.0%
x264 [info]: mb P  I16..4: 17.3%  0.0% 15.7%  P16..4: 32.4%  9.6%  7.1%  0.3%  0.1%    skip:17.4%
x264 [info]: mb B  I16..4:  1.5%  0.0%  2.2%  B16..8: 34.7%  6.7%  1.6%  direct: 7.7%  skip:45.7%  L0:44.2% L1:47.2% BI: 8.5%
x264 [info]: direct mvs  spatial:98.9% temporal:1.1%
x264 [info]: coded y,uvDC,uvAC intra: 62.8% 62.5% 29.8% inter: 17.4% 21.1% 0.8%
x264 [info]: i16 v,h,dc,p: 47% 13% 11% 28%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14%  4%  7% 10% 15% 14% 12% 13% 12%
x264 [info]: i8c dc,h,v,p: 40% 24% 22% 15%
x264 [info]: Weighted P-Frames: Y:24.2% UV:17.7%
x264 [info]: ref P L0: 56.9% 13.4% 14.9%  5.6%  3.6%  2.4%  1.8%  1.0%  0.3%  0.0%
x264 [info]: ref B L0: 81.7%  9.8%  4.4%  1.8%  1.1%  0.8%  0.3%
x264 [info]: ref B L1: 96.8%  3.2%
x264 [info]: kb/s:782.11
[10:56:41] ac3-decoder done: 0 frames, 0 decoder errors, 0 drops
[aac @ 0x7fc66eb43fe0] Qavg: 1220.039
[aac @ 0x7fc66eb43fe0] 1 frames left in the queue on closing
[10:56:41] mux: track 0, 238 frames, 1569571 bytes, 1259.65 kbps, fifo 4096
[10:56:41] mux: track 1, 467 frames, 191879 bytes, 153.99 kbps, fifo 8192
[10:56:41] mux: track 2, 0 frames, 0 bytes, 0.00 kbps, fifo 32
[10:56:41] mux: track 3, 1 frames, 992 bytes, 0.80 kbps, fifo 32
[10:56:41] mux: track 4, 1 frames, 1208 bytes, 0.97 kbps, fifo 16
[10:56:41] mux: track 5, 1 frames, 1232 bytes, 0.99 kbps, fifo 16
[10:56:41] mux: track 6, 1 frames, 1652 bytes, 1.33 kbps, fifo 16
[10:56:41] mux: track 7, 1 frames, 1380 bytes, 1.11 kbps, fifo 16
[10:56:41] mux: track 8, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[10:56:41] libhb: work result = 4
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: closed captions causes failure of encode

Post by rollin_eng »

Try the latest version or a nightly from here:

https://handbrake.fr/downloads.php
larryw31
Posts: 5
Joined: Fri Mar 02, 2018 3:52 pm

Re: closed captions causes failure of encode

Post by larryw31 »

thanks
Post Reply