Hi Don,
Hope you're well and enjoying the summer?
Quick issue has me stumped and probably user-error but I've run a test transcoding of the "The Da Vinci Code" DVD for a friend and the new ruby scripts seem to be missing the forced-subtitle sequences when .mkv/.mp4 files are produced. (Running the latest Ruby scripts with HandBrakeCLI 0.10.2)
I did two quick tests to check that the forced subtitles were burned in for the French sequence in Ch. 3:
Test 1
transcode-video --crop 74:74:0:0 --quick --chapters 3 --mp4 --force-subtitle scan 'The Da Vinci Code (2006).mkv'
Test 2
transcode-video --crop 74:74:0:0 --quick --chapters 3 --mp4 --burn-subtitle scan --force-subtitle scan 'The Da Vinci Code (2006).mkv'
HandBrakeCLI failed to detect a suitable candidate for forced-subtitles on both of the above.
[15:53:31] Subtitle track 2 (id 0x2) 'English': 71 hits (19 forced)
[15:53:31] Subtitle track 3 (id 0x3) 'English': 80 hits (0 forced)
[15:53:31] No candidate detected during subtitle scan
The following did work (explicitly telling HandBrakeCLI to scan for and burn them in):
Test 3
transcode-video --crop 74:74:0:0 --quick --chapters 3 --mp4 -H subtitle=scan -H subtitle-forced -H subtitle-burned --dry-run 'The Da Vinci Code (2006).mkv'
Test 4
Similarly, the older bash scripts worked when the following was run:
transcode-video.sh --find-forced burn --chapters 3 --fast 'The Da Vinci Code (2006).mkv'
In tests 3/4, HandBrakeCLI picked up the following and correctly burned-in the forced subtitles.
[14:36:24] * subtitle track 1, English (track 2, id 0x2) Picture [VOBSUB] -> Render/Burn-in, Forced Only
Have I used the incorrect settings on the Ruby scripts or is there a bug lingering somewhere?
Many thanks,
Joe Hurley
Some outputs for you:
.mkv file being used
General
Unique ID : 41071907310636362737018229354878173197 (0x1EE6295FAEFD5CAEB4A286E5CF23800D)
Complete name : /Volumes/4TB Hitachi/Rips/The Da Vinci Code (2006).mkv
Format : Matroska
Format version : Version 2
File size : 5.22 GiB
Duration : 2h 22mn
Overall bit rate mode : Variable
Overall bit rate : 5 237 Kbps
Movie name : Davinci
Encoded date : UTC 2015-07-07 11:37:23
Writing application : MakeMKV v1.9.4 darwin(x86-release)
Writing library : libmakemkv v1.9.4 (1.3.0/1.4.1) darwin(x86-release)
Video
ID : 1
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=12
Format settings, picture structure : Frame
Codec ID : V_MPEG2
Codec ID/Info : MPEG 1 or 2 Video
Duration : 2h 22mn
Bit rate mode : Variable
Bit rate : 4 685 Kbps
Maximum bit rate : 9 800 Kbps
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.452
Time code of first frame : 00:59:58:12
Time code source : Group of pictures header
GOP, Open/Closed : Open
Stream size : 4.67 GiB (89%)
Language : English
Default : No
Forced : No
Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : A_AC3
Duration : 2h 22mn
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 457 MiB (9%)
Title : Surround 5.1
Language : English
Default : Yes
Forced : No
Text #1
ID : 3
Format : VobSub
Codec ID : S_VOBSUB
Codec ID/Info : Picture based subtitle format used on DVDs
Language : English
Default : Yes
Forced : No
Text #2
ID : 4
Format : VobSub
Codec ID : S_VOBSUB
Codec ID/Info : Picture based subtitle format used on DVDs
Language : English
Default : No
Forced : No
Menu
00:00:00.080 : en:Chapter 01
00:06:17.680 : en:Chapter 02
00:12:24.560 : en:Chapter 03
00:16:39.920 : en:Chapter 04
00:23:41.200 : en:Chapter 05
00:27:46.760 : en:Chapter 06
00:38:16.320 : en:Chapter 07
00:39:59.960 : en:Chapter 08
00:46:24.280 : en:Chapter 09
00:53:19.040 : en:Chapter 10
00:57:16.320 : en:Chapter 11
01:02:05.360 : en:Chapter 12
01:10:06.320 : en:Chapter 13
01:16:13.480 : en:Chapter 14
01:21:05.160 : en:Chapter 15
01:25:47.120 : en:Chapter 16
01:31:05.000 : en:Chapter 17
01:37:33.680 : en:Chapter 18
01:43:35.880 : en:Chapter 19
01:47:10.320 : en:Chapter 20
01:55:10.440 : en:Chapter 21
02:00:25.360 : en:Chapter 22
02:06:04.920 : en:Chapter 23
02:11:28.280 : en:Chapter 24
Test 1
Joes-MBP:Rips joe$ transcode-video --crop 74:74:0:0 --quick --chapters 3 --mp4 --force-subtitle scan 'The Da Vinci Code (2006).mkv'
invalid framerate 25.0
[15:53:30] hb_init: starting libhb thread
HandBrake 0.10.2 (2015060900) - Darwin x86_64 - https://handbrake.fr
8 CPUs detected
Opening The Da Vinci Code (2006).mkv...
[15:53:30] CPU: Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz
[15:53:30] - Intel microarchitecture Haswell
[15:53:30] - logical processor count: 8
[15:53:30] OpenCL device #1: Intel Iris Pro
[15:53:30] - OpenCL version: 1.2
[15:53:30] - driver version: 1.2(Jun 10 2015 16:35:16)
[15:53:30] - device type: GPU
[15:53:30] - supported: YES
[15:53:30] OpenCL device #2: NVIDIA GeForce GT 750M
[15:53:30] - OpenCL version: 1.2
[15:53:30] - driver version: 10.4.2 310.41.35f01
[15:53:30] - device type: GPU
[15:53:30] - supported: no
[15:53:30] hb_scan: path=The Da Vinci Code (2006).mkv, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening The Da Vinci Code (2006).mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening The Da Vinci Code (2006).mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(The Da Vinci Code (2006).mkv) failed
[15:53:30] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
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:53:30] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'The Da Vinci Code (2006).mkv':
Metadata:
title : Davinci
Duration: 02:22:42.52, start: 0.000000, bitrate: N/A
Chapter #0.0: start 0.080000, end 377.680000
Metadata:
title : Chapter 01
Chapter #0.1: start 377.680000, end 744.560000
Metadata:
title : Chapter 02
Chapter #0.2: start 744.560000, end 999.920000
Metadata:
title : Chapter 03
Chapter #0.3: start 999.920000, end 1421.200000
Metadata:
title : Chapter 04
Chapter #0.4: start 1421.200000, end 1666.760000
Metadata:
title : Chapter 05
Chapter #0.5: start 1666.760000, end 2296.320000
Metadata:
title : Chapter 06
Chapter #0.6: start 2296.320000, end 2399.960000
Metadata:
title : Chapter 07
Chapter #0.7: start 2399.960000, end 2784.280000
Metadata:
title : Chapter 08
Chapter #0.8: start 2784.280000, end 3199.040000
Metadata:
title : Chapter 09
Chapter #0.9: start 3199.040000, end 3436.320000
Metadata:
title : Chapter 10
Chapter #0.10: start 3436.320000, end 3725.360000
Metadata:
title : Chapter 11
Chapter #0.11: start 3725.360000, end 4206.320000
Metadata:
title : Chapter 12
Chapter #0.12: start 4206.320000, end 4573.480000
Metadata:
title : Chapter 13
Chapter #0.13: start 4573.480000, end 4865.160000
Metadata:
title : Chapter 14
Chapter #0.14: start 4865.160000, end 5147.120000
Metadata:
title : Chapter 15
Chapter #0.15: start 5147.120000, end 5465.000000
Metadata:
title : Chapter 16
Chapter #0.16: start 5465.000000, end 5853.680000
Metadata:
title : Chapter 17
Chapter #0.17: start 5853.680000, end 6215.880000
Metadata:
title : Chapter 18
Chapter #0.18: start 6215.880000, end 6430.320000
Metadata:
title : Chapter 19
Chapter #0.19: start 6430.320000, end 6910.440000
Metadata:
title : Chapter 20
Chapter #0.20: start 6910.440000, end 7225.360000
Metadata:
title : Chapter 21
Chapter #0.21: start 7225.360000, end 7564.920000
Metadata:
title : Chapter 22
Chapter #0.22: start 7564.920000, end 7888.280000
Metadata:
title : Chapter 23
Chapter #0.23: start 7888.280000, end 8562.520000
Metadata:
title : Chapter 24
Stream #0.0(eng): Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 9800 kb/s, 25 fps, 1k tbn, 50 tbc
Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, fltp, 448 kb/s (default)
Metadata:
title : Surround 5.1
Stream #0.2(eng): Subtitle: dvdsub (default)
Stream #0.3(eng): Subtitle: dvdsub
[15:53:30] scan: decoding previews for title 1
[15:53:30] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[15:53:30] scan: 10 previews, 720x576, 25.000 fps, autocrop = 74/74/0/0, aspect 16:9, PAR 64:45
[15:53:30] libhb: scan thread found 1 valid title(s)
+ title 1:
+ stream: The Da Vinci Code (2006).mkv
+ duration: 02:22:42
+ size: 720x576, pixel aspect: 64/45, display aspect: 1.78, 25.000 fps
+ autocrop: 74/74/0/0
+ support opencl: yes
+ support hwd: not built-in
+ chapters:
+ 1: cells 0->0, 0 blocks, duration 00:06:18
+ 2: cells 0->0, 0 blocks, duration 00:06:07
+ 3: cells 0->0, 0 blocks, duration 00:04:15
+ 4: cells 0->0, 0 blocks, duration 00:07:01
+ 5: cells 0->0, 0 blocks, duration 00:04:06
+ 6: cells 0->0, 0 blocks, duration 00:10:30
+ 7: cells 0->0, 0 blocks, duration 00:01:44
+ 8: cells 0->0, 0 blocks, duration 00:06:24
+ 9: cells 0->0, 0 blocks, duration 00:06:55
+ 10: cells 0->0, 0 blocks, duration 00:03:57
+ 11: cells 0->0, 0 blocks, duration 00:04:49
+ 12: cells 0->0, 0 blocks, duration 00:08:01
+ 13: cells 0->0, 0 blocks, duration 00:06:07
+ 14: cells 0->0, 0 blocks, duration 00:04:52
+ 15: cells 0->0, 0 blocks, duration 00:04:42
+ 16: cells 0->0, 0 blocks, duration 00:05:18
+ 17: cells 0->0, 0 blocks, duration 00:06:29
+ 18: cells 0->0, 0 blocks, duration 00:06:02
+ 19: cells 0->0, 0 blocks, duration 00:03:34
+ 20: cells 0->0, 0 blocks, duration 00:08:00
+ 21: cells 0->0, 0 blocks, duration 00:05:15
+ 22: cells 0->0, 0 blocks, duration 00:05:40
+ 23: cells 0->0, 0 blocks, duration 00:05:23
+ 24: cells 0->0, 0 blocks, duration 00:11:14
+ audio tracks:
+ 1, English (AC3) (5.1 ch) (iso639-2: eng), 48000Hz, 448000bps
+ subtitle tracks:
+ 1, English (iso639-2: eng) (Bitmap)(VOBSUB)
+ 2, English (iso639-2: eng) (Bitmap)(VOBSUB)
Subtitle Scan Enabled - enabling subtitles if found for foreign language segments
[15:53:31] 2 job(s) to process
[15:53:31] starting job
[15:53:31] sync: expecting 6384 video frames
[15:53:31] work: only 1 chapter, disabling chapter markers
[15:53:31] job configuration:
[15:53:31] * source
[15:53:31] + The Da Vinci Code (2006).mkv
[15:53:31] + title 1, chapter(s) 3 to 3
[15:53:31] + container: matroska,webm
[15:53:31] * destination
[15:53:31] + The Da Vinci Code (2006).mp4
[15:53:31] + container: MPEG-4 (libavformat)
[15:53:31] * video track
[15:53:31] + decoder: mpeg2video
[15:53:31] + bitrate 9800 kbps
[15:53:31] + filters
[15:53:31] + Framerate Shaper (0:27000000:1080000)
[15:53:31] + frame rate: same as source (around 25.000 fps)
[15:53:31] + Crop and Scale (720:428:74:74:0:0)
[15:53:31] + source: 720 * 576, crop (74/74/0/0): 720 * 428, scale: 720 * 428
[15:53:31] + strict anamorphic
[15:53:31] + storage dimensions: 720 * 428, mod 0
[15:53:31] + pixel aspect ratio: 64 / 45
[15:53:31] + display dimensions: 1024 * 428
[15:53:31] * Foreign Audio Search: Passthrough, Default
[15:53:31] + subtitle, English (track 2, id 0x2) Picture [VOBSUB]
[15:53:31] + subtitle, English (track 3, id 0x3) Picture [VOBSUB]
[15:53:31] reader: end of chapter 3 (media 3) reached at media chapter 4
[15:53:31] reader: done. 1 scr changes
[15:53:31] work: average encoding speed for job is 0.000000 fps
[15:53:31] render: lost time: 0 (0 frames)
[15:53:31] render: gained time: 0 (0 frames) (0 not accounted for)
[15:53:31] mpeg2video-decoder done: 0 frames, 0 decoder errors, 0 drops
[15:53:31] Subtitle track 2 (id 0x2) 'English': 71 hits (19 forced)
[15:53:31] Subtitle track 3 (id 0x3) 'English': 80 hits (0 forced)
[15:53:31] No candidate detected during subtitle scan
[15:53:31] starting job
[15:53:31] Auto Passthru: allowed codecs are AAC, AC3, DTS, DTS-HD, MP3
[15:53:31] Auto Passthru: no valid fallback specified
[15:53:31] Auto Passthru: using AC3 Passthru for track 2
[15:53:31] work: mixdown not specified, track 1 setting mixdown Dolby Pro Logic II
[15:53:31] work: bitrate not specified, track 1 setting bitrate 160 Kbps
[15:53:31] sync: expecting 6384 video frames
[15:53:31] work: only 1 chapter, disabling chapter markers
[15:53:31] job configuration:
[15:53:31] * source
[15:53:31] + The Da Vinci Code (2006).mkv
[15:53:31] + title 1, chapter(s) 3 to 3
[15:53:31] + container: matroska,webm
[15:53:31] * destination
[15:53:31] + The Da Vinci Code (2006).mp4
[15:53:31] + container: MPEG-4 (libavformat)
[15:53:31] * video track
[15:53:31] + decoder: mpeg2video
[15:53:31] + bitrate 9800 kbps
[15:53:31] + filters
[15:53:31] + Framerate Shaper (0:27000000:1080000)
[15:53:31] + frame rate: same as source (around 25.000 fps)
[15:53:31] + Crop and Scale (720:428:74:74:0:0)
[15:53:31] + source: 720 * 576, crop (74/74/0/0): 720 * 428, scale: 720 * 428
[15:53:31] + strict anamorphic
[15:53:31] + storage dimensions: 720 * 428, mod 0
[15:53:31] + pixel aspect ratio: 64 / 45
[15:53:31] + display dimensions: 1024 * 428
[15:53:31] + encoder: H.264 (libx264)
[15:53:31] + options: vbv-maxrate=2000:vbv-bufsize=1000:crf-max=25:ref=1:weightp=1:subme=6:mixed-refs=0:rc-lookahead=30
[15:53:31] + quality: 16.00 (RF)
[15:53:31] * audio track 1
[15:53:31] + decoder: English (AC3) (5.1 ch) (track 1, id 0x1)
[15:53:31] + bitrate: 448 kbps, samplerate: 48000 Hz
[15:53:31] + mixdown: Dolby Pro Logic II
[15:53:31] + encoder: AAC (Apple AudioToolbox)
[15:53:31] + bitrate: 160 kbps, samplerate: 48000 Hz
[15:53:31] * audio track 2
[15:53:31] + decoder: English (AC3) (5.1 ch) (track 1, id 0x1)
[15:53:31] + bitrate: 448 kbps, samplerate: 48000 Hz
[15:53:31] + AC3 Passthru
Encoding: task 2 of 2, 0.00 %[15:53:31] encx264: encoding at constant RF 16.000000
[15:53:31] encx264: unparsed options: vbv-maxrate=2000:vbv-bufsize=1000:crf-max=25:ref=1:weightp=1:subme=6:mixed-refs=0:rc-lookahead=30
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
x264 [info]: profile High, level 3.0
[15:53:31] reader: first SCR 67010400 id 0x0 DTS 67010400
Encoding: task 2 of 2, 31.85 % (197.48 fps, avg 216.18 fps, ETA 00h00m20s)
Test 4
Joes-MBP:Rips joe$ transcode-video.sh --find-forced burn --chapters 3 --fast 'The Da Vinci Code (2006).mkv'
Transcoding: The Da Vinci Code (2006).mkv
[16:07:00] hb_init: starting libhb thread
HandBrake 0.10.2 (2015060900) - Darwin x86_64 - https://handbrake.fr
8 CPUs detected
Opening The Da Vinci Code (2006).mkv...
[16:07:00] CPU: Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz
[16:07:00] - Intel microarchitecture Haswell
[16:07:00] - logical processor count: 8
[16:07:00] OpenCL device #1: Intel Iris Pro
[16:07:00] - OpenCL version: 1.2
[16:07:00] - driver version: 1.2(Jun 10 2015 16:35:16)
[16:07:00] - device type: GPU
[16:07:00] - supported: YES
[16:07:00] OpenCL device #2: NVIDIA GeForce GT 750M
[16:07:00] - OpenCL version: 1.2
[16:07:00] - driver version: 10.4.2 310.41.35f01
[16:07:00] - device type: GPU
[16:07:00] - supported: no
[16:07:00] hb_scan: path=The Da Vinci Code (2006).mkv, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening The Da Vinci Code (2006).mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening The Da Vinci Code (2006).mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(The Da Vinci Code (2006).mkv) failed
[16:07:00] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
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:07:00] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'The Da Vinci Code (2006).mkv':
Metadata:
title : Davinci
Duration: 02:22:42.52, start: 0.000000, bitrate: N/A
Chapter #0.0: start 0.080000, end 377.680000
Metadata:
title : Chapter 01
Chapter #0.1: start 377.680000, end 744.560000
Metadata:
title : Chapter 02
Chapter #0.2: start 744.560000, end 999.920000
Metadata:
title : Chapter 03
Chapter #0.3: start 999.920000, end 1421.200000
Metadata:
title : Chapter 04
Chapter #0.4: start 1421.200000, end 1666.760000
Metadata:
title : Chapter 05
Chapter #0.5: start 1666.760000, end 2296.320000
Metadata:
title : Chapter 06
Chapter #0.6: start 2296.320000, end 2399.960000
Metadata:
title : Chapter 07
Chapter #0.7: start 2399.960000, end 2784.280000
Metadata:
title : Chapter 08
Chapter #0.8: start 2784.280000, end 3199.040000
Metadata:
title : Chapter 09
Chapter #0.9: start 3199.040000, end 3436.320000
Metadata:
title : Chapter 10
Chapter #0.10: start 3436.320000, end 3725.360000
Metadata:
title : Chapter 11
Chapter #0.11: start 3725.360000, end 4206.320000
Metadata:
title : Chapter 12
Chapter #0.12: start 4206.320000, end 4573.480000
Metadata:
title : Chapter 13
Chapter #0.13: start 4573.480000, end 4865.160000
Metadata:
title : Chapter 14
Chapter #0.14: start 4865.160000, end 5147.120000
Metadata:
title : Chapter 15
Chapter #0.15: start 5147.120000, end 5465.000000
Metadata:
title : Chapter 16
Chapter #0.16: start 5465.000000, end 5853.680000
Metadata:
title : Chapter 17
Chapter #0.17: start 5853.680000, end 6215.880000
Metadata:
title : Chapter 18
Chapter #0.18: start 6215.880000, end 6430.320000
Metadata:
title : Chapter 19
Chapter #0.19: start 6430.320000, end 6910.440000
Metadata:
title : Chapter 20
Chapter #0.20: start 6910.440000, end 7225.360000
Metadata:
title : Chapter 21
Chapter #0.21: start 7225.360000, end 7564.920000
Metadata:
title : Chapter 22
Chapter #0.22: start 7564.920000, end 7888.280000
Metadata:
title : Chapter 23
Chapter #0.23: start 7888.280000, end 8562.520000
Metadata:
title : Chapter 24
Stream #0.0(eng): Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 9800 kb/s, 25 fps, 1k tbn, 50 tbc
Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, fltp, 448 kb/s (default)
Metadata:
title : Surround 5.1
Stream #0.2(eng): Subtitle: dvdsub (default)
Stream #0.3(eng): Subtitle: dvdsub
[16:07:00] scan: decoding previews for title 1
[16:07:00] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[16:07:00] scan: 10 previews, 720x576, 25.000 fps, autocrop = 74/74/0/0, aspect 16:9, PAR 64:45
[16:07:00] libhb: scan thread found 1 valid title(s)
+ title 1:
+ stream: The Da Vinci Code (2006).mkv
+ duration: 02:22:42
+ size: 720x576, pixel aspect: 64/45, display aspect: 1.78, 25.000 fps
+ autocrop: 74/74/0/0
+ support opencl: yes
+ support hwd: not built-in
+ chapters:
+ 1: cells 0->0, 0 blocks, duration 00:06:18
+ 2: cells 0->0, 0 blocks, duration 00:06:07
+ 3: cells 0->0, 0 blocks, duration 00:04:15
+ 4: cells 0->0, 0 blocks, duration 00:07:01
+ 5: cells 0->0, 0 blocks, duration 00:04:06
+ 6: cells 0->0, 0 blocks, duration 00:10:30
+ 7: cells 0->0, 0 blocks, duration 00:01:44
+ 8: cells 0->0, 0 blocks, duration 00:06:24
+ 9: cells 0->0, 0 blocks, duration 00:06:55
+ 10: cells 0->0, 0 blocks, duration 00:03:57
+ 11: cells 0->0, 0 blocks, duration 00:04:49
+ 12: cells 0->0, 0 blocks, duration 00:08:01
+ 13: cells 0->0, 0 blocks, duration 00:06:07
+ 14: cells 0->0, 0 blocks, duration 00:04:52
+ 15: cells 0->0, 0 blocks, duration 00:04:42
+ 16: cells 0->0, 0 blocks, duration 00:05:18
+ 17: cells 0->0, 0 blocks, duration 00:06:29
+ 18: cells 0->0, 0 blocks, duration 00:06:02
+ 19: cells 0->0, 0 blocks, duration 00:03:34
+ 20: cells 0->0, 0 blocks, duration 00:08:00
+ 21: cells 0->0, 0 blocks, duration 00:05:15
+ 22: cells 0->0, 0 blocks, duration 00:05:40
+ 23: cells 0->0, 0 blocks, duration 00:05:23
+ 24: cells 0->0, 0 blocks, duration 00:11:14
+ audio tracks:
+ 1, English (AC3) (5.1 ch) (iso639-2: eng), 48000Hz, 448000bps
+ subtitle tracks:
+ 1, English (iso639-2: eng) (Bitmap)(VOBSUB)
+ 2, English (iso639-2: eng) (Bitmap)(VOBSUB)
Subtitle Scan Enabled - enabling subtitles if found for foreign language segments
[16:07:00] 2 job(s) to process
[16:07:00] starting job
[16:07:00] sync: expecting 6384 video frames
[16:07:00] work: only 1 chapter, disabling chapter markers
[16:07:00] job configuration:
[16:07:00] * source
[16:07:00] + The Da Vinci Code (2006).mkv
[16:07:00] + title 1, chapter(s) 3 to 3
[16:07:00] + container: matroska,webm
[16:07:00] * destination
[16:07:00] + The Da Vinci Code (2006).mp4
[16:07:00] + container: MPEG-4 (libavformat)
[16:07:00] * video track
[16:07:00] + decoder: mpeg2video
[16:07:00] + bitrate 9800 kbps
[16:07:00] + filters
[16:07:00] + Framerate Shaper (1:27000000:1080000)
[16:07:00] + frame rate: 25.000 fps -> constant 25.000 fps
[16:07:00] + Subtitle renderer (0:0:0:0)
[16:07:00] + Crop and Scale (720:576:0:0:0:0)
[16:07:00] + source: 720 * 576, crop (0/0/0/0): 720 * 576, scale: 720 * 576
[16:07:00] + strict anamorphic
[16:07:00] + storage dimensions: 720 * 576, mod 0
[16:07:00] + pixel aspect ratio: 64 / 45
[16:07:00] + display dimensions: 1024 * 576
[16:07:00] * Foreign Audio Search: Render/Burn-in, Forced Only
[16:07:00] + subtitle, English (track 2, id 0x2) Picture [VOBSUB]
[16:07:00] + subtitle, English (track 3, id 0x3) Picture [VOBSUB]
[16:07:00] reader: end of chapter 3 (media 3) reached at media chapter 4
[16:07:00] reader: done. 1 scr changes
[16:07:00] work: average encoding speed for job is 0.000000 fps
[16:07:00] render: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[16:07:00] render: lost time: 0 (0 frames)
[16:07:00] render: gained time: 0 (0 frames) (0 not accounted for)
[16:07:00] mpeg2video-decoder done: 0 frames, 0 decoder errors, 0 drops
Encoding: task 1 of 2, 100.00 %[16:07:00] Subtitle track 2 (id 0x2) 'English': 71 hits (19 forced)
[16:07:00] Subtitle track 3 (id 0x3) 'English': 80 hits (0 forced)
[16:07:00] Found a subtitle candidate with id 0x2 (contains forced subs)
[16:07:00] starting job
[16:07:00] Auto Passthru: allowed codecs are AAC, AC3, DTS, DTS-HD, MP3
[16:07:00] Auto Passthru: no valid fallback specified
[16:07:00] Auto Passthru: using AC3 Passthru for track 2
[16:07:00] work: mixdown not specified, track 1 setting mixdown Dolby Pro Logic II
[16:07:00] work: bitrate not specified, track 1 setting bitrate 160 Kbps
[16:07:00] sync: expecting 6384 video frames
[16:07:00] work: only 1 chapter, disabling chapter markers
[16:07:00] job configuration:
[16:07:00] * source
[16:07:00] + The Da Vinci Code (2006).mkv
[16:07:00] + title 1, chapter(s) 3 to 3
[16:07:00] + container: matroska,webm
[16:07:00] * destination
[16:07:00] + The Da Vinci Code (2006).mp4
[16:07:00] + container: MPEG-4 (libavformat)
[16:07:00] * video track
[16:07:00] + decoder: mpeg2video
[16:07:00] + bitrate 9800 kbps
[16:07:00] + filters
[16:07:00] + Framerate Shaper (1:27000000:1080000)
[16:07:00] + frame rate: 25.000 fps -> constant 25.000 fps
[16:07:00] + Subtitle renderer (0:0:0:0)
[16:07:00] + Crop and Scale (720:576:0:0:0:0)
[16:07:00] + source: 720 * 576, crop (0/0/0/0): 720 * 576, scale: 720 * 576
[16:07:00] + strict anamorphic
[16:07:00] + storage dimensions: 720 * 576, mod 0
[16:07:00] + pixel aspect ratio: 64 / 45
[16:07:00] + display dimensions: 1024 * 576
[16:07:00] + encoder: H.264 (libx264)
[16:07:00] + preset: fast
[16:07:00] + options: vbv-maxrate=2000:vbv-bufsize=1000:crf-max=25
[16:07:00] + quality: 16.00 (RF)
[16:07:00] * subtitle track 1, English (track 2, id 0x2) Picture [VOBSUB] -> Render/Burn-in, Forced Only
[16:07:00] * audio track 1
[16:07:00] + decoder: English (AC3) (5.1 ch) (track 1, id 0x1)
[16:07:00] + bitrate: 448 kbps, samplerate: 48000 Hz
[16:07:00] + mixdown: Dolby Pro Logic II
[16:07:00] + encoder: AAC (Apple AudioToolbox)
[16:07:00] + bitrate: 160 kbps, samplerate: 48000 Hz
[16:07:00] * audio track 2
[16:07:00] + decoder: English (AC3) (5.1 ch) (track 1, id 0x1)
[16:07:00] + bitrate: 448 kbps, samplerate: 48000 Hz
[16:07:00] + AC3 Passthru
[16:07:00] encx264: encoding at constant RF 16.000000
[16:07:00] encx264: unparsed options: vbv-maxrate=2000:vbv-bufsize=1000:crf-max=25:ref=2:weightp=1:subme=6:rc-lookahead=30
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
x264 [info]: profile High, level 3.0
[16:07:00] reader: first SCR 67010400 id 0x0 DTS 67010400
Encoding: task 2 of 2, 98.64 % (126.27 fps, avg 146.36 fps, ETA 00h00m00s)[16:07:44] reader: end of chapter 3 (media 3) reached at media chapter 4
Encoding: task 2 of 2, 99.39 % (126.27 fps, avg 146.36 fps, ETA 00h00m00s)[16:07:44] reader: done. 1 scr changes
Encoding: task 2 of 2, 100.00 % (126.27 fps, avg 146.36 fps, ETA 00h00m00s)[16:07:45] work: average encoding speed for job is 146.362488 fps
Encoding: task 2 of 2, 100.00 % (126.27 fps, avg 146.36 fps, ETA 00h00m00s)[16:07:45] sync: got 6385 frames, 6384 expected
[16:07:45] render: 6385 frames output, 0 dropped and 0 duped for CFR/PFR
[16:07:45] render: lost time: 0 (0 frames)
[16:07:45] render: gained time: 0 (0 frames) (0 not accounted for)
[16:07:45] mpeg2video-decoder done: 6385 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:79 Avg QP:10.59 size: 31166
x264 [info]: frame P:3378 Avg QP:14.48 size: 8364
x264 [info]: frame B:2928 Avg QP:16.42 size: 5070
x264 [info]: consecutive B-frames: 22.2% 46.5% 10.1% 21.1%
x264 [info]: mb I I16..4: 20.7% 73.4% 5.9%
x264 [info]: mb P I16..4: 0.6% 3.0% 0.3% P16..4: 37.0% 22.4% 8.9% 0.0% 0.0% skip:27.9%
x264 [info]: mb B I16..4: 6.2% 17.4% 0.1% B16..8: 18.7% 6.5% 0.3% direct:13.6% skip:37.2% L0:43.2% L1:42.5% BI:14.3%
x264 [info]: 8x8 transform intra:74.0% inter:74.8%
x264 [info]: coded y,uvDC,uvAC intra: 62.4% 67.5% 38.6% inter: 23.2% 29.2% 4.1%
x264 [info]: i16 v,h,dc,p: 50% 17% 22% 12%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 12% 39% 3% 3% 4% 2% 4% 2%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 22% 22% 5% 6% 7% 4% 5% 3%
x264 [info]: i8c dc,h,v,p: 54% 14% 26% 5%
x264 [info]: Weighted P-Frames: Y:0.9% UV:0.3%
x264 [info]: ref P L0: 65.8% 34.2%
x264 [info]: ref B L0: 71.7% 28.3%
x264 [info]: ref B L1: 95.0% 5.0%
x264 [info]: kb/s:1427.12
[16:07:45] ac3-decoder done: 0 frames, 0 decoder errors, 0 drops
[16:07:45] ac3-decoder done: 0 frames, 0 decoder errors, 0 drops
[16:07:45] mux: track 0, 6385 frames, 45557334 bytes, 1427.01 kbps, fifo 2048
[16:07:45] mux: track 1, 11971 frames, 5197573 bytes, 162.81 kbps, fifo 4096
[16:07:45] mux: track 2, 7980 frames, 14300160 bytes, 447.93 kbps, fifo 2048
[16:07:45] libhb: work result = 0
Encode done!
HandBrake has exited.
Hi Don,
Hope you're well and enjoying the summer?
Quick issue has me stumped and probably user-error but I've run a test transcoding of the "The Da Vinci Code" DVD for a friend and the new ruby scripts seem to be missing the forced-subtitle sequences when .mkv/.mp4 files are produced. (Running the latest Ruby scripts with HandBrakeCLI 0.10.2)
I did two quick tests to check that the forced subtitles were burned in for the French sequence in Ch. 3:
Test 1
transcode-video --crop 74:74:0:0 --quick --chapters 3 --mp4 --force-subtitle scan 'The Da Vinci Code (2006).mkv'Test 2
transcode-video --crop 74:74:0:0 --quick --chapters 3 --mp4 --burn-subtitle scan --force-subtitle scan 'The Da Vinci Code (2006).mkv'HandBrakeCLI failed to detect a suitable candidate for forced-subtitles on both of the above.
The following did work (explicitly telling HandBrakeCLI to scan for and burn them in):
Test 3
transcode-video --crop 74:74:0:0 --quick --chapters 3 --mp4 -H subtitle=scan -H subtitle-forced -H subtitle-burned --dry-run 'The Da Vinci Code (2006).mkv'Test 4
Similarly, the older bash scripts worked when the following was run:
transcode-video.sh --find-forced burn --chapters 3 --fast 'The Da Vinci Code (2006).mkv'In tests 3/4, HandBrakeCLI picked up the following and correctly burned-in the forced subtitles.
[14:36:24] * subtitle track 1, English (track 2, id 0x2) Picture [VOBSUB] -> Render/Burn-in, Forced OnlyHave I used the incorrect settings on the Ruby scripts or is there a bug lingering somewhere?
Many thanks,
Joe Hurley
Some outputs for you:
.mkv file being used
Test 1
Test 4