Page 1 of 1

How to burn english subtitles of a foreign film?

Posted: Mon Feb 20, 2012 9:09 pm
by Doddy
Newcomer to HandBrake, but loving the work so far,

Mac OSX:
My grand plan is to rip my Bluray/DVD collection to a harddrive, using MakeMKV to generate intermediate MKVs, then handbrake to a primary target of a home HTPC running Plex at 720p, and a secondary (maybe smaller filesize) target of iOS devices.

I have a script that runs of each of three Mac Minis, each 'cron'd to scan the rip directory, and pick the next file for conversion, marking the files as they go as completed. The idea is that I can spend an evening ripping through the source disks, then let the machines catch up and perform the transcode in the background. Part of this presupposes that the transcoding is unattended, and unfortunately I have a number of "foreign" films. The case in point, here, is a film called "Thirst" - a Korean film, with English subtitles.

What I'd like to do is, for any source that doesn't by default have an English primary sound-track, to burn into the output the English subtitles; Also, I'd like any forced subtitles to be rendered - even for English language films. I thought I understood how to do this from the command line with...

Code: Select all

 --native-language eng --native-dub --subtitle-forced --subtitle-burn 
but this doesn't work (it generates no subtitles). I've run a quick test (only recently added CLI logging) with a 20 second clip and a poor bit-rate (just to speed the process up), to demonstrate, what looks ominous is...

Code: Select all

[20:49:24] add_ffmpeg_subtitle: unknown subtitle stream type: 0x17006
Here's the full log...

Code: Select all

[20:49:24] hb_init: starting libhb thread
HandBrake svn4456 (2012021901) - Darwin x86_64 - http://handbrake.fr
2 CPUs detected
Opening /Volumes/Volume_1/Rips/Thirst/Thirst.mkv...
[20:49:24] hb_scan: path=/Volumes/Volume_1/Rips/Thirst/Thirst.mkv, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening /Volumes/Volume_1/Rips/Thirst/Thirst.mkv/BDMV/index.bdmv
libbluray/bluray.c:1471: nav_get_title_list(/Volumes/Volume_1/Rips/Thirst/Thirst.mkv) failed (0x102018200)
[20:49:24] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[20:49:24] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/Volumes/Volume_1/Rips/Thirst/Thirst.mkv':
  Duration: 02:13:55.06, start: 0.000000, bitrate: 1536 kb/s
    Chapter #0.0: start 0.000000, end 376.084022
    Metadata:
      title           : Chapter 00
    Chapter #0.1: start 376.084022, end 961.543911
    Metadata:
      title           : Chapter 01
    Chapter #0.2: start 961.543911, end 1552.133911
    Metadata:
      title           : Chapter 02
    Chapter #0.3: start 1552.133911, end 2020.309956
    Metadata:
      title           : Chapter 03
    Chapter #0.4: start 2020.309956, end 2516.639111
    Metadata:
      title           : Chapter 04
    Chapter #0.5: start 2516.639111, end 3045.625911
    Metadata:
      title           : Chapter 05
    Chapter #0.6: start 3045.625911, end 3630.335022
    Metadata:
      title           : Chapter 06
    Chapter #0.7: start 3630.335022, end 4446.775667
    Metadata:
      title           : Chapter 07
    Chapter #0.8: start 4446.775667, end 4952.656022
    Metadata:
      title           : Chapter 08
    Chapter #0.9: start 4952.656022, end 5431.884778
    Metadata:
      title           : Chapter 09
    Chapter #0.10: start 5431.884778, end 5745.489733
    Metadata:
      title           : Chapter 10
    Chapter #0.11: start 5745.489733, end 6150.561067
    Metadata:
      title           : Chapter 11
    Chapter #0.12: start 6150.561067, end 6741.818400
    Metadata:
      title           : Chapter 12
    Chapter #0.13: start 6741.818400, end 7232.683778
    Metadata:
      title           : Chapter 13
    Chapter #0.14: start 7232.683778, end 7784.985533
    Metadata:
      title           : Chapter 14
    Chapter #0.15: start 7784.985533, end 8035.068000
    Metadata:
      title           : Chapter 15
    Stream #0.0(eng): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0.1(kor): Audio: dca (DTS), 48000 Hz, 5.1, s16, 1536 kb/s (default)
    Metadata:
      title           : 3/2+1
    Stream #0.2(eng): Subtitle: pgssub (default)
[20:49:24] add_ffmpeg_subtitle: unknown subtitle stream type: 0x17006
[20:49:24] scan: decoding previews for title 1
Scanning title 1...
[20:49:24] scan: audio 0x1: DCA, rate=48000Hz, bitrate=1536000 Korean (DTS) (5.1 ch)
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
[20:49:28] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 132/132/2/0, aspect 16:9, PAR 1:1
[20:49:28] scan: title (0) job->width:1920, job->height:816
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
[20:49:29] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: /Volumes/Volume_1/Rips/Thirst/Thirst.mkv
  + duration: 02:13:55
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 132/132/2/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:06:16
    + 2: cells 0->0, 0 blocks, duration 00:09:45
    + 3: cells 0->0, 0 blocks, duration 00:09:50
    + 4: cells 0->0, 0 blocks, duration 00:07:48
    + 5: cells 0->0, 0 blocks, duration 00:08:16
    + 6: cells 0->0, 0 blocks, duration 00:08:48
    + 7: cells 0->0, 0 blocks, duration 00:09:44
    + 8: cells 0->0, 0 blocks, duration 00:13:36
    + 9: cells 0->0, 0 blocks, duration 00:08:25
    + 10: cells 0->0, 0 blocks, duration 00:07:59
    + 11: cells 0->0, 0 blocks, duration 00:05:13
    + 12: cells 0->0, 0 blocks, duration 00:06:45
    + 13: cells 0->0, 0 blocks, duration 00:09:51
    + 14: cells 0->0, 0 blocks, duration 00:08:10
    + 15: cells 0->0, 0 blocks, duration 00:09:12
    + 16: cells 0->0, 0 blocks, duration 00:04:10
  + audio tracks:
    + 1, Korean (DTS) (5.1 ch) (iso639-2: kor), 48000Hz, 1536000bps
  + subtitle tracks:
Modified x264 options for pass 1 to append turbo options: ref=1:weightp=0:subq=2:rc-lookahead=10:trellis=0:8x8dct=1:cabac=0:analyse=i4x4,i8x8:ref=1:subme=2:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
[20:49:29] 2 job(s) to process
[20:49:29] starting job
[20:49:29] sync: expecting 503 video frames
[20:49:29] job configuration:
[20:49:29]  * source
[20:49:29]    + /Volumes/Volume_1/Rips/Thirst/Thirst.mkv
[20:49:29]    + title 1, start 0:9:50.00 stop 0:10:10.00
[20:49:29]    + container: matroska,webm
[20:49:29]    + data rate: 1536 kbps
[20:49:29]  * destination
[20:49:29]    + /Volumes/Volume_1/Rips/Thirst/Thirst.mp4
[20:49:29]    + container: MPEG-4 (.mp4 and .m4v)
[20:49:29]      + 64-bit formatting
[20:49:29]      + optimized for progressive web downloads
[20:49:29]      + chapter markers
[20:49:29]  * video track
[20:49:29]    + decoder: h264
[20:49:29]    + frame rate: same as source (around 23.976 fps)
[20:49:29]    + loose anamorphic
[20:49:29]      + storage dimensions: 1920 * 1080 -> 1920 * 816, crop 132/132/2/0, mod 0
[20:49:29]      + pixel aspect ratio: 959 / 960
[20:49:29]      + display dimensions: 1918 * 816
[20:49:29]    + encoder: H.264 (x264)
[20:49:29]      + options: ref=1:weightp=0:subq=2:rc-lookahead=10:trellis=0:8x8dct=1:cabac=0:analyse=i4x4,i8x8:ref=1:subme=2:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
[20:49:29]      + bitrate: 1000 kbps, pass: 1
[20:49:29]  * audio track 1
[20:49:29]    + decoder: Korean (DTS) (5.1 ch) (track 1, id 0x1)
[20:49:29]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[20:49:29]    + mixdown: Dolby Pro Logic II
[20:49:29]    + encoder: AAC (faac)
[20:49:29]      + bitrate: 160 kbps, samplerate: 48000 Hz

Encoding: task 1 of 2, 0.00 %
Encoding: task 1 of 2, 0.00 %[20:49:30] encx264: min-keyint: 24, keyint: 240
[20:49:30] encx264: encoding with stored aspect 959/960
x264 [warning]: --psnr used with psy on: results will be invalid!
x264 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x264 [info]: using SAR=959/960
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile Main, level 4.0

Encoding: task 1 of 2, 0.00 %
Encoding: task 1 of 2, 0.00 %[20:49:30] reader: first SCR 53059230 id 0x0 DTS 53059230
Stream with high frequencies VQ coding

Encoding: task 1 of 2, 0.00 %[20:49:30] sync: adding 691 ms of silence to audio 0x1  start 62250, next 0

Encoding: task 1 of 2, 0.00 %
Encoding: task 1 of 2, 1.19 %
Encoding: task 1 of 2, 1.79 %
Encoding: task 1 of 2, 2.98 %
Encoding: task 1 of 2, 3.78 %
Encoding: task 1 of 2, 4.57 %
Encoding: task 1 of 2, 5.37 %
Encoding: task 1 of 2, 5.77 %
Encoding: task 1 of 2, 6.56 %
Encoding: task 1 of 2, 7.36 %
Encoding: task 1 of 2, 8.15 %
Encoding: task 1 of 2, 9.15 %
Encoding: task 1 of 2, 9.94 %
Encoding: task 1 of 2, 10.34 %
Encoding: task 1 of 2, 11.13 %
Encoding: task 1 of 2, 12.13 %
Encoding: task 1 of 2, 12.72 %
Encoding: task 1 of 2, 13.52 %
Encoding: task 1 of 2, 14.12 %
Encoding: task 1 of 2, 15.11 %
Encoding: task 1 of 2, 15.71 %
Encoding: task 1 of 2, 16.50 % (18.71 fps, avg 19.88 fps, ETA 00h00m21s)
Encoding: task 1 of 2, 17.30 % (18.71 fps, avg 19.88 fps, ETA 00h00m21s)
Encoding: task 1 of 2, 17.69 % (18.71 fps, avg 19.88 fps, ETA 00h00m21s)
Encoding: task 1 of 2, 18.49 % (18.71 fps, avg 19.88 fps, ETA 00h00m21s)
Encoding: task 1 of 2, 18.69 % (18.71 fps, avg 19.88 fps, ETA 00h00m21s)
Encoding: task 1 of 2, 19.88 % (18.14 fps, avg 19.17 fps, ETA 00h00m21s)
Encoding: task 1 of 2, 20.68 % (18.14 fps, avg 19.17 fps, ETA 00h00m21s)
Encoding: task 1 of 2, 21.47 % (18.14 fps, avg 19.17 fps, ETA 00h00m21s)
Encoding: task 1 of 2, 21.67 % (18.14 fps, avg 19.17 fps, ETA 00h00m21s)
Encoding: task 1 of 2, 22.66 % (18.14 fps, avg 19.17 fps, ETA 00h00m21s)
Encoding: task 1 of 2, 23.46 % (17.74 fps, avg 18.94 fps, ETA 00h00m20s)
Encoding: task 1 of 2, 24.25 % (17.74 fps, avg 18.94 fps, ETA 00h00m20s)
Encoding: task 1 of 2, 25.05 % (17.74 fps, avg 18.94 fps, ETA 00h00m20s)
Encoding: task 1 of 2, 25.84 % (17.74 fps, avg 18.94 fps, ETA 00h00m20s)
Encoding: task 1 of 2, 26.44 % (17.74 fps, avg 18.94 fps, ETA 00h00m20s)
Encoding: task 1 of 2, 27.24 % (17.86 fps, avg 19.02 fps, ETA 00h00m19s)
Encoding: task 1 of 2, 27.83 % (17.86 fps, avg 19.02 fps, ETA 00h00m19s)
Encoding: task 1 of 2, 28.63 % (17.86 fps, avg 19.02 fps, ETA 00h00m19s)
Encoding: task 1 of 2, 29.42 % (17.86 fps, avg 19.02 fps, ETA 00h00m19s)
Encoding: task 1 of 2, 30.22 % (17.86 fps, avg 19.02 fps, ETA 00h00m19s)
Encoding: task 1 of 2, 30.82 % (17.86 fps, avg 19.02 fps, ETA 00h00m19s)
Encoding: task 1 of 2, 31.41 % (18.24 fps, avg 18.82 fps, ETA 00h00m18s)
Encoding: task 1 of 2, 32.21 % (18.24 fps, avg 18.82 fps, ETA 00h00m18s)
Encoding: task 1 of 2, 33.00 % (18.24 fps, avg 18.82 fps, ETA 00h00m18s)
Encoding: task 1 of 2, 33.60 % (18.24 fps, avg 18.82 fps, ETA 00h00m18s)
Encoding: task 1 of 2, 34.00 % (18.24 fps, avg 18.82 fps, ETA 00h00m18s)
Encoding: task 1 of 2, 34.79 % (17.66 fps, avg 18.51 fps, ETA 00h00m17s)
Encoding: task 1 of 2, 35.19 % (17.66 fps, avg 18.51 fps, ETA 00h00m17s)
Encoding: task 1 of 2, 35.98 % (17.66 fps, avg 18.51 fps, ETA 00h00m17s)
Encoding: task 1 of 2, 36.38 % (17.66 fps, avg 18.51 fps, ETA 00h00m17s)
Encoding: task 1 of 2, 37.18 % (17.66 fps, avg 18.51 fps, ETA 00h00m17s)
Encoding: task 1 of 2, 37.77 % (16.26 fps, avg 18.18 fps, ETA 00h00m17s)
Encoding: task 1 of 2, 38.37 % (16.26 fps, avg 18.18 fps, ETA 00h00m17s)
Encoding: task 1 of 2, 38.97 % (16.26 fps, avg 18.18 fps, ETA 00h00m17s)
Encoding: task 1 of 2, 39.56 % (16.26 fps, avg 18.18 fps, ETA 00h00m17s)
Encoding: task 1 of 2, 40.36 % (16.26 fps, avg 18.18 fps, ETA 00h00m17s)
Encoding: task 1 of 2, 40.76 % (15.56 fps, avg 17.94 fps, ETA 00h00m16s)
Encoding: task 1 of 2, 41.35 % (15.56 fps, avg 17.94 fps, ETA 00h00m16s)
Encoding: task 1 of 2, 42.15 % (15.56 fps, avg 17.94 fps, ETA 00h00m16s)
Encoding: task 1 of 2, 42.74 % (15.56 fps, avg 17.94 fps, ETA 00h00m16s)
Encoding: task 1 of 2, 43.54 % (15.56 fps, avg 17.94 fps, ETA 00h00m16s)
Encoding: task 1 of 2, 44.14 % (15.82 fps, avg 17.82 fps, ETA 00h00m15s)
Encoding: task 1 of 2, 44.73 % (15.82 fps, avg 17.82 fps, ETA 00h00m15s)
Encoding: task 1 of 2, 45.53 % (15.82 fps, avg 17.82 fps, ETA 00h00m15s)
Encoding: task 1 of 2, 46.32 % (15.82 fps, avg 17.82 fps, ETA 00h00m15s)
Encoding: task 1 of 2, 46.92 % (15.82 fps, avg 17.82 fps, ETA 00h00m15s)
Encoding: task 1 of 2, 47.71 % (16.30 fps, avg 17.75 fps, ETA 00h00m14s)
Encoding: task 1 of 2, 48.51 % (16.30 fps, avg 17.75 fps, ETA 00h00m14s)
Encoding: task 1 of 2, 49.11 % (16.30 fps, avg 17.75 fps, ETA 00h00m14s)
Encoding: task 1 of 2, 50.10 % (16.30 fps, avg 17.75 fps, ETA 00h00m14s)
Encoding: task 1 of 2, 50.70 % (16.30 fps, avg 17.75 fps, ETA 00h00m14s)
Encoding: task 1 of 2, 51.29 % (16.30 fps, avg 17.75 fps, ETA 00h00m14s)
Encoding: task 1 of 2, 52.09 % (17.14 fps, avg 17.76 fps, ETA 00h00m13s)
Encoding: task 1 of 2, 52.49 % (17.14 fps, avg 17.76 fps, ETA 00h00m13s)
Encoding: task 1 of 2, 53.28 % (17.14 fps, avg 17.76 fps, ETA 00h00m13s)
Encoding: task 1 of 2, 54.08 % (17.14 fps, avg 17.76 fps, ETA 00h00m13s)
Encoding: task 1 of 2, 54.67 % (17.14 fps, avg 17.76 fps, ETA 00h00m13s)
Encoding: task 1 of 2, 55.27 % (17.58 fps, avg 17.77 fps, ETA 00h00m12s)
Encoding: task 1 of 2, 56.06 % (17.58 fps, avg 17.77 fps, ETA 00h00m12s)
Encoding: task 1 of 2, 56.86 % (17.58 fps, avg 17.77 fps, ETA 00h00m12s)
Encoding: task 1 of 2, 57.65 % (17.58 fps, avg 17.77 fps, ETA 00h00m12s)
Encoding: task 1 of 2, 58.45 % (17.58 fps, avg 17.77 fps, ETA 00h00m12s)
Encoding: task 1 of 2, 59.24 % (17.95 fps, avg 17.79 fps, ETA 00h00m11s)
Encoding: task 1 of 2, 59.84 % (17.95 fps, avg 17.79 fps, ETA 00h00m11s)
Encoding: task 1 of 2, 60.64 % (17.95 fps, avg 17.79 fps, ETA 00h00m11s)
Encoding: task 1 of 2, 61.23 % (17.95 fps, avg 17.79 fps, ETA 00h00m11s)
Encoding: task 1 of 2, 62.03 % (17.95 fps, avg 17.79 fps, ETA 00h00m11s)
Encoding: task 1 of 2, 62.82 % (18.26 fps, avg 17.85 fps, ETA 00h00m10s)
Encoding: task 1 of 2, 63.62 % (18.26 fps, avg 17.85 fps, ETA 00h00m10s)
Encoding: task 1 of 2, 64.41 % (18.26 fps, avg 17.85 fps, ETA 00h00m10s)
Encoding: task 1 of 2, 65.21 % (18.26 fps, avg 17.85 fps, ETA 00h00m10s)
Encoding: task 1 of 2, 65.81 % (18.26 fps, avg 17.85 fps, ETA 00h00m10s)
Encoding: task 1 of 2, 66.80 % (18.26 fps, avg 17.85 fps, ETA 00h00m10s)
Encoding: task 1 of 2, 67.40 % (18.83 fps, avg 17.95 fps, ETA 00h00m09s)
Encoding: task 1 of 2, 68.39 % (18.83 fps, avg 17.95 fps, ETA 00h00m09s)
Encoding: task 1 of 2, 68.99 % (18.83 fps, avg 17.95 fps, ETA 00h00m09s)
Encoding: task 1 of 2, 69.98 % (18.83 fps, avg 17.95 fps, ETA 00h00m09s)
Encoding: task 1 of 2, 70.58 % (18.83 fps, avg 17.95 fps, ETA 00h00m09s)
Encoding: task 1 of 2, 71.37 % (19.38 fps, avg 18.03 fps, ETA 00h00m08s)
Encoding: task 1 of 2, 72.37 % (19.38 fps, avg 18.03 fps, ETA 00h00m08s)
Encoding: task 1 of 2, 72.96 % (19.38 fps, avg 18.03 fps, ETA 00h00m08s)
Encoding: task 1 of 2, 73.56 % (19.38 fps, avg 18.03 fps, ETA 00h00m08s)
Encoding: task 1 of 2, 74.55 % (19.38 fps, avg 18.03 fps, ETA 00h00m08s)
Encoding: task 1 of 2, 75.15 % (19.41 fps, avg 18.09 fps, ETA 00h00m06s)
Encoding: task 1 of 2, 75.94 % (19.41 fps, avg 18.09 fps, ETA 00h00m06s)
Encoding: task 1 of 2, 76.74 % (19.41 fps, avg 18.09 fps, ETA 00h00m06s)
Encoding: task 1 of 2, 77.53 % (19.41 fps, avg 18.09 fps, ETA 00h00m06s)
Encoding: task 1 of 2, 78.33 % (19.41 fps, avg 18.09 fps, ETA 00h00m06s)
Encoding: task 1 of 2, 79.13 % (19.31 fps, avg 18.14 fps, ETA 00h00m05s)
Encoding: task 1 of 2, 79.72 % (19.31 fps, avg 18.14 fps, ETA 00h00m05s)
Encoding: task 1 of 2, 80.72 % (19.31 fps, avg 18.14 fps, ETA 00h00m05s)
Encoding: task 1 of 2, 81.11 % (19.31 fps, avg 18.14 fps, ETA 00h00m05s)
Encoding: task 1 of 2, 81.91 % (19.31 fps, avg 18.14 fps, ETA 00h00m05s)
Encoding: task 1 of 2, 82.90 % (19.26 fps, avg 18.20 fps, ETA 00h00m04s)
Encoding: task 1 of 2, 83.70 % (19.26 fps, avg 18.20 fps, ETA 00h00m04s)
Encoding: task 1 of 2, 84.29 % (19.26 fps, avg 18.20 fps, ETA 00h00m04s)
Encoding: task 1 of 2, 85.29 % (19.26 fps, avg 18.20 fps, ETA 00h00m04s)
Encoding: task 1 of 2, 86.08 % (19.26 fps, avg 18.20 fps, ETA 00h00m04s)
Encoding: task 1 of 2, 86.88 % (19.46 fps, avg 18.26 fps, ETA 00h00m03s)
Encoding: task 1 of 2, 87.48 % (19.46 fps, avg 18.26 fps, ETA 00h00m03s)
Encoding: task 1 of 2, 88.27 % (19.46 fps, avg 18.26 fps, ETA 00h00m03s)
Encoding: task 1 of 2, 88.87 % (19.46 fps, avg 18.26 fps, ETA 00h00m03s)
Encoding: task 1 of 2, 89.46 % (19.46 fps, avg 18.26 fps, ETA 00h00m03s)
Encoding: task 1 of 2, 90.06 % (19.46 fps, avg 18.26 fps, ETA 00h00m03s)
Encoding: task 1 of 2, 90.85 % (18.24 fps, avg 18.16 fps, ETA 00h00m02s)
Encoding: task 1 of 2, 91.65 % (18.24 fps, avg 18.16 fps, ETA 00h00m02s)
Encoding: task 1 of 2, 92.25 % (18.24 fps, avg 18.16 fps, ETA 00h00m02s)
Encoding: task 1 of 2, 92.84 % (18.24 fps, avg 18.16 fps, ETA 00h00m02s)
Encoding: task 1 of 2, 93.84 % (18.24 fps, avg 18.16 fps, ETA 00h00m02s)
Encoding: task 1 of 2, 94.43 % (17.88 fps, avg 18.16 fps, ETA 00h00m01s)
Encoding: task 1 of 2, 95.03 % (17.88 fps, avg 18.16 fps, ETA 00h00m01s)[20:49:57] sync: reached pts 1801800, exiting early

Encoding: task 1 of 2, 95.43 % (17.88 fps, avg 18.16 fps, ETA 00h00m01s)
Encoding: task 1 of 2, 95.43 % (17.88 fps, avg 18.16 fps, ETA 00h00m01s)
Encoding: task 1 of 2, 95.43 % (17.88 fps, avg 18.16 fps, ETA 00h00m01s)[20:49:57] work: average encoding speed for job is 18.162968 fps
[20:49:57] reader: done. 1 scr changes
[20:49:58] sync: got 480 frames, 503 expected
[20:49:58] h264-decoder done: 502 frames, 0 decoder errors, 0 drops
[20:49:58] render: lost time: 0 (0 frames)
[20:49:58] render: gained time: 0 (0 frames) (0 not accounted for)

Encoding: task 1 of 2, 95.43 % (17.88 fps, avg 18.16 fps, ETA 00h00m01s)x264 [info]: frame I:6     Avg QP:27.24  size: 56043  PSNR Mean Y:41.22 U:42.02 V:43.28 Avg:41.60 Global:40.85
x264 [info]: frame P:253   Avg QP:31.60  size:  5637  PSNR Mean Y:38.82 U:42.06 V:43.24 Avg:39.74 Global:38.94
x264 [info]: frame B:221   Avg QP:33.92  size:  1687  PSNR Mean Y:37.52 U:40.90 V:42.49 Avg:38.48 Global:37.78
x264 [info]: consecutive B-frames: 24.2% 36.7% 20.0% 19.2%
x264 [info]: mb I  I16..4: 70.2%  0.0% 29.8%
x264 [info]: mb P  I16..4:  7.7%  0.0%  0.0%  P16..4: 18.0%  0.0%  0.0%  0.0%  0.0%    skip:74.2%
x264 [info]: mb B  I16..4:  0.8%  0.0%  0.0%  B16..8:  6.3%  0.0%  0.0%  direct: 0.9%  skip:92.1%  L0:36.6% L1:54.2% BI: 9.2%
x264 [info]: final ratefactor: 28.45
x264 [info]: coded y,uvDC,uvAC intra: 20.5% 28.7% 7.5% inter: 1.9% 1.6% 0.0%
x264 [info]: i16 v,h,dc,p: 41% 27% 21% 11%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 25% 18%  7%  7%  6%  8%  5%  7%
x264 [info]: i8c dc,h,v,p: 66% 15% 16%  3%
x264 [info]: SSIM Mean Y:0.9406369 (12.265db)
x264 [info]: PSNR Mean Y:38.255 U:41.527 V:42.892 Avg:39.183 Global:38.389 kb/s:853.26
[20:49:58] starting job
[20:49:58] sync: expecting 480 video frames
[20:49:58] job configuration:
[20:49:58]  * source
[20:49:58]    + /Volumes/Volume_1/Rips/Thirst/Thirst.mkv
[20:49:58]    + title 1, start 0:9:50.00 stop 0:10:10.00
[20:49:58]    + container: matroska,webm
[20:49:58]    + data rate: 1536 kbps
[20:49:58]  * destination
[20:49:58]    + /Volumes/Volume_1/Rips/Thirst/Thirst.mp4
[20:49:58]    + container: MPEG-4 (.mp4 and .m4v)
[20:49:58]      + 64-bit formatting
[20:49:58]      + optimized for progressive web downloads
[20:49:58]      + chapter markers
[20:49:58]  * video track
[20:49:58]    + decoder: h264
[20:49:58]    + frame rate: same as source (around 23.976 fps)
[20:49:58]    + loose anamorphic
[20:49:58]      + storage dimensions: 1920 * 1080 -> 1920 * 816, crop 132/132/2/0, mod 0
[20:49:58]      + pixel aspect ratio: 959 / 960
[20:49:58]      + display dimensions: 1918 * 816
[20:49:58]    + encoder: H.264 (x264)
[20:49:58]      + options: ref=1:weightp=0:subq=2:rc-lookahead=10:trellis=0:8x8dct=1:cabac=0:analyse=i4x4,i8x8
[20:49:58]      + bitrate: 1000 kbps, pass: 2
[20:49:58]  * audio track 1
[20:49:58]    + decoder: Korean (DTS) (5.1 ch) (track 1, id 0x1)
[20:49:58]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[20:49:58]    + mixdown: Dolby Pro Logic II
[20:49:58]    + encoder: AAC (faac)
[20:49:58]      + bitrate: 160 kbps, samplerate: 48000 Hz

Encoding: task 2 of 2, 0.00 %
Encoding: task 2 of 2, 0.00 %
Encoding: task 2 of 2, 0.00 %[20:49:58] encx264: min-keyint: 24, keyint: 240
[20:49:58] encx264: encoding with stored aspect 959/960
x264 [warning]: --psnr used with psy on: results will be invalid!
x264 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x264 [info]: using SAR=959/960
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile High, level 4.0

Encoding: task 2 of 2, 0.00 %
Encoding: task 2 of 2, 0.00 %[20:49:59] reader: first SCR 53059230 id 0x0 DTS 53059230
Stream with high frequencies VQ coding

Encoding: task 2 of 2, 0.00 %
Encoding: task 2 of 2, 0.00 %[20:49:59] sync: adding 691 ms of silence to audio 0x1  start 62250, next 0

Encoding: task 2 of 2, 1.04 %
Encoding: task 2 of 2, 1.88 %
Encoding: task 2 of 2, 2.50 %
Encoding: task 2 of 2, 3.54 %
Encoding: task 2 of 2, 4.58 %
Encoding: task 2 of 2, 5.83 %
Encoding: task 2 of 2, 6.46 %
Encoding: task 2 of 2, 7.71 %
Encoding: task 2 of 2, 8.96 %
Encoding: task 2 of 2, 9.79 %
Encoding: task 2 of 2, 10.42 %
Encoding: task 2 of 2, 11.46 %
Encoding: task 2 of 2, 12.71 %
Encoding: task 2 of 2, 13.96 %
Encoding: task 2 of 2, 14.37 %
Encoding: task 2 of 2, 15.62 %
Encoding: task 2 of 2, 16.46 %
Encoding: task 2 of 2, 17.71 %
Encoding: task 2 of 2, 18.54 %
Encoding: task 2 of 2, 19.37 %
Encoding: task 2 of 2, 20.42 % (23.55 fps, avg 23.46 fps, ETA 00h00m16s)
Encoding: task 2 of 2, 21.46 % (23.55 fps, avg 23.46 fps, ETA 00h00m16s)
Encoding: task 2 of 2, 22.71 % (23.55 fps, avg 23.46 fps, ETA 00h00m16s)
Encoding: task 2 of 2, 23.33 % (23.55 fps, avg 23.46 fps, ETA 00h00m16s)
Encoding: task 2 of 2, 24.38 % (23.55 fps, avg 23.46 fps, ETA 00h00m16s)
Encoding: task 2 of 2, 25.42 % (22.61 fps, avg 23.32 fps, ETA 00h00m15s)
Encoding: task 2 of 2, 26.46 % (22.61 fps, avg 23.32 fps, ETA 00h00m15s)
Encoding: task 2 of 2, 27.08 % (22.61 fps, avg 23.32 fps, ETA 00h00m15s)
Encoding: task 2 of 2, 28.33 % (22.61 fps, avg 23.32 fps, ETA 00h00m15s)
Encoding: task 2 of 2, 29.17 % (22.61 fps, avg 23.32 fps, ETA 00h00m15s)
Encoding: task 2 of 2, 30.00 % (23.09 fps, avg 23.23 fps, ETA 00h00m14s)
Encoding: task 2 of 2, 30.83 % (23.09 fps, avg 23.23 fps, ETA 00h00m14s)
Encoding: task 2 of 2, 31.87 % (23.09 fps, avg 23.23 fps, ETA 00h00m14s)
Encoding: task 2 of 2, 32.71 % (23.09 fps, avg 23.23 fps, ETA 00h00m14s)
Encoding: task 2 of 2, 33.33 % (23.09 fps, avg 23.23 fps, ETA 00h00m14s)
Encoding: task 2 of 2, 34.17 % (21.96 fps, avg 22.82 fps, ETA 00h00m13s)
Encoding: task 2 of 2, 35.00 % (21.96 fps, avg 22.82 fps, ETA 00h00m13s)
Encoding: task 2 of 2, 35.42 % (21.96 fps, avg 22.82 fps, ETA 00h00m13s)
Encoding: task 2 of 2, 36.04 % (21.96 fps, avg 22.82 fps, ETA 00h00m13s)
Encoding: task 2 of 2, 37.29 % (21.96 fps, avg 22.82 fps, ETA 00h00m13s)
Encoding: task 2 of 2, 37.71 % (20.12 fps, avg 22.11 fps, ETA 00h00m13s)
Encoding: task 2 of 2, 38.54 % (20.12 fps, avg 22.11 fps, ETA 00h00m13s)
Encoding: task 2 of 2, 39.17 % (20.12 fps, avg 22.11 fps, ETA 00h00m13s)
Encoding: task 2 of 2, 40.00 % (20.12 fps, avg 22.11 fps, ETA 00h00m13s)
Encoding: task 2 of 2, 40.83 % (20.12 fps, avg 22.11 fps, ETA 00h00m13s)
Encoding: task 2 of 2, 41.46 % (20.12 fps, avg 22.11 fps, ETA 00h00m13s)
Encoding: task 2 of 2, 42.08 % (18.42 fps, avg 21.59 fps, ETA 00h00m12s)
Encoding: task 2 of 2, 43.13 % (18.42 fps, avg 21.59 fps, ETA 00h00m12s)
Encoding: task 2 of 2, 43.96 % (18.42 fps, avg 21.59 fps, ETA 00h00m12s)
Encoding: task 2 of 2, 44.58 % (18.42 fps, avg 21.59 fps, ETA 00h00m12s)
Encoding: task 2 of 2, 45.21 % (18.42 fps, avg 21.59 fps, ETA 00h00m12s)
Encoding: task 2 of 2, 46.25 % (17.88 fps, avg 21.31 fps, ETA 00h00m12s)
Encoding: task 2 of 2, 47.08 % (17.88 fps, avg 21.31 fps, ETA 00h00m12s)
Encoding: task 2 of 2, 47.71 % (17.88 fps, avg 21.31 fps, ETA 00h00m12s)
Encoding: task 2 of 2, 48.54 % (17.88 fps, avg 21.31 fps, ETA 00h00m12s)
Encoding: task 2 of 2, 49.38 % (17.88 fps, avg 21.31 fps, ETA 00h00m12s)
Encoding: task 2 of 2, 50.21 % (18.28 fps, avg 21.04 fps, ETA 00h00m11s)
Encoding: task 2 of 2, 51.04 % (18.28 fps, avg 21.04 fps, ETA 00h00m11s)
Encoding: task 2 of 2, 52.08 % (18.28 fps, avg 21.04 fps, ETA 00h00m11s)
Encoding: task 2 of 2, 53.12 % (18.28 fps, avg 21.04 fps, ETA 00h00m11s)
Encoding: task 2 of 2, 54.17 % (18.28 fps, avg 21.04 fps, ETA 00h00m11s)
Encoding: task 2 of 2, 55.00 % (19.99 fps, avg 21.19 fps, ETA 00h00m10s)
Encoding: task 2 of 2, 55.83 % (19.99 fps, avg 21.19 fps, ETA 00h00m10s)
Encoding: task 2 of 2, 57.08 % (19.99 fps, avg 21.19 fps, ETA 00h00m10s)
Encoding: task 2 of 2, 57.92 % (19.99 fps, avg 21.19 fps, ETA 00h00m10s)
Encoding: task 2 of 2, 58.96 % (19.99 fps, avg 21.19 fps, ETA 00h00m10s)
Encoding: task 2 of 2, 59.79 % (21.33 fps, avg 21.32 fps, ETA 00h00m09s)
Encoding: task 2 of 2, 60.83 % (21.33 fps, avg 21.32 fps, ETA 00h00m09s)
Encoding: task 2 of 2, 61.67 % (21.33 fps, avg 21.32 fps, ETA 00h00m09s)
Encoding: task 2 of 2, 62.71 % (21.33 fps, avg 21.32 fps, ETA 00h00m09s)
Encoding: task 2 of 2, 63.75 % (21.33 fps, avg 21.32 fps, ETA 00h00m09s)
Encoding: task 2 of 2, 64.58 % (22.88 fps, avg 21.43 fps, ETA 00h00m07s)
Encoding: task 2 of 2, 65.62 % (22.88 fps, avg 21.43 fps, ETA 00h00m07s)
Encoding: task 2 of 2, 66.46 % (22.88 fps, avg 21.43 fps, ETA 00h00m07s)
Encoding: task 2 of 2, 67.50 % (22.88 fps, avg 21.43 fps, ETA 00h00m07s)
Encoding: task 2 of 2, 68.33 % (22.88 fps, avg 21.43 fps, ETA 00h00m07s)
Encoding: task 2 of 2, 69.38 % (23.21 fps, avg 21.58 fps, ETA 00h00m06s)
Encoding: task 2 of 2, 70.42 % (23.21 fps, avg 21.58 fps, ETA 00h00m06s)
Encoding: task 2 of 2, 71.46 % (23.21 fps, avg 21.58 fps, ETA 00h00m06s)
Encoding: task 2 of 2, 72.50 % (23.21 fps, avg 21.58 fps, ETA 00h00m06s)
Encoding: task 2 of 2, 73.75 % (23.21 fps, avg 21.58 fps, ETA 00h00m06s)
Encoding: task 2 of 2, 74.58 % (23.72 fps, avg 21.76 fps, ETA 00h00m05s)
Encoding: task 2 of 2, 75.42 % (23.72 fps, avg 21.76 fps, ETA 00h00m05s)
Encoding: task 2 of 2, 76.46 % (23.72 fps, avg 21.76 fps, ETA 00h00m05s)
Encoding: task 2 of 2, 77.50 % (23.72 fps, avg 21.76 fps, ETA 00h00m05s)
Encoding: task 2 of 2, 78.33 % (23.72 fps, avg 21.76 fps, ETA 00h00m05s)
Encoding: task 2 of 2, 79.37 % (23.70 fps, avg 21.83 fps, ETA 00h00m04s)
Encoding: task 2 of 2, 80.21 % (23.70 fps, avg 21.83 fps, ETA 00h00m04s)
Encoding: task 2 of 2, 81.04 % (23.70 fps, avg 21.83 fps, ETA 00h00m04s)
Encoding: task 2 of 2, 82.08 % (23.70 fps, avg 21.83 fps, ETA 00h00m04s)
Encoding: task 2 of 2, 82.92 % (23.70 fps, avg 21.83 fps, ETA 00h00m04s)
Encoding: task 2 of 2, 83.75 % (23.70 fps, avg 21.83 fps, ETA 00h00m04s)
Encoding: task 2 of 2, 84.58 % (22.57 fps, avg 21.75 fps, ETA 00h00m03s)
Encoding: task 2 of 2, 85.83 % (22.57 fps, avg 21.75 fps, ETA 00h00m03s)
Encoding: task 2 of 2, 86.67 % (22.57 fps, avg 21.75 fps, ETA 00h00m03s)
Encoding: task 2 of 2, 87.92 % (22.57 fps, avg 21.75 fps, ETA 00h00m03s)
Encoding: task 2 of 2, 88.96 % (22.57 fps, avg 21.75 fps, ETA 00h00m03s)
Encoding: task 2 of 2, 89.79 % (22.59 fps, avg 21.89 fps, ETA 00h00m02s)
Encoding: task 2 of 2, 91.04 % (22.59 fps, avg 21.89 fps, ETA 00h00m02s)
Encoding: task 2 of 2, 91.87 % (22.59 fps, avg 21.89 fps, ETA 00h00m02s)
Encoding: task 2 of 2, 93.12 % (22.59 fps, avg 21.89 fps, ETA 00h00m02s)
Encoding: task 2 of 2, 93.96 % (22.59 fps, avg 21.89 fps, ETA 00h00m02s)
Encoding: task 2 of 2, 95.00 % (23.23 fps, avg 22.04 fps, ETA 00h00m01s)
Encoding: task 2 of 2, 96.25 % (23.23 fps, avg 22.04 fps, ETA 00h00m01s)
Encoding: task 2 of 2, 97.08 % (23.23 fps, avg 22.04 fps, ETA 00h00m01s)
Encoding: task 2 of 2, 97.92 % (23.23 fps, avg 22.04 fps, ETA 00h00m01s)
Encoding: task 2 of 2, 99.17 % (23.23 fps, avg 22.04 fps, ETA 00h00m01s)[20:50:21] sync: reached pts 1801800, exiting early

Encoding: task 2 of 2, 100.00 % (24.87 fps, avg 22.19 fps, ETA 00h00m00s)[20:50:21] work: average encoding speed for job is 22.189281 fps

Encoding: task 2 of 2, 100.00 % (24.87 fps, avg 22.19 fps, ETA 00h00m00s)[20:50:21] reader: done. 1 scr changes
[20:50:21] sync: got 480 frames, 480 expected
[20:50:21] h264-decoder done: 494 frames, 0 decoder errors, 0 drops
[20:50:21] render: lost time: 0 (0 frames)
[20:50:21] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:6     Avg QP:26.81  size: 59714  PSNR Mean Y:41.85 U:42.15 V:43.40 Avg:42.10 Global:41.87
x264 [info]: frame P:253   Avg QP:30.58  size:  6816  PSNR Mean Y:39.72 U:42.56 V:43.75 Avg:40.58 Global:40.26
x264 [info]: frame B:221   Avg QP:33.65  size:  2156  PSNR Mean Y:38.19 U:41.25 V:42.87 Avg:39.12 Global:38.88
x264 [info]: consecutive B-frames: 24.2% 36.7% 20.0% 19.2%
x264 [info]: mb I  I16..4: 33.2% 48.5% 18.3%
x264 [info]: mb P  I16..4:  3.4%  4.3%  0.3%  P16..4: 18.5%  0.0%  0.0%  0.0%  0.0%    skip:73.6%
x264 [info]: mb B  I16..4:  0.4%  0.5%  0.0%  B16..8:  7.0%  0.0%  0.0%  direct: 0.9%  skip:91.2%  L0:36.6% L1:50.9% BI:12.4%
x264 [info]: 8x8 transform intra:52.6% inter:42.6%
x264 [info]: coded y,uvDC,uvAC intra: 32.4% 33.9% 9.8% inter: 2.0% 1.8% 0.0%
x264 [info]: i16 v,h,dc,p: 46% 26% 17% 10%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 17% 40%  4%  4%  5%  4%  4%  5%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 28% 16%  5%  6%  6%  8%  4%  9%
x264 [info]: i8c dc,h,v,p: 60% 18% 18%  4%
x264 [info]: SSIM Mean Y:0.9493616 (12.955db)
x264 [info]: PSNR Mean Y:39.040 U:41.952 V:43.341 Avg:39.925 Global:39.585 kb/s:1022.62

Muxing: this may take awhile...[20:50:21] muxmp4: optimizing file
[20:50:22] mux: track 0, 480 frames, 2558967 bytes, 1022.57 kbps, fifo 512
[20:50:22] mux: track 1, 938 frames, 401470 bytes, 160.43 kbps, fifo 1024
[20:50:22] libhb: work result = 0

Encode done!
HandBrake has exited.

 

Re: How to burn english subtitles of a foreign film?

Posted: Mon Feb 20, 2012 10:16 pm
by Deleted User 11865
HandBrake doesn't support Blu-ray subtitles. You'll have to extract them (w/mkvextract), convert them to VobSub (w/BDSup2Sub), and add them back to the MKV (w/mkvmerge) in order for HandBrake to be able to see and use them.

Re: How to burn english subtitles of a foreign film?

Posted: Mon Feb 20, 2012 11:16 pm
by Doddy
Ah, that kinda makes sense... now... to automate this... <heads back to the drawing board>

Thanks for the help, though.

Re: How to burn english subtitles of a foreign film?

Posted: Tue Feb 21, 2012 12:54 am
by Deleted User 11865
mkvextract and mkvmerge can easily be automated - not sure about BDSup2Sub. Tough since it's open source, I suppose you could come up with a CLI version if you're not afraid to do a bit of coding.

Edit: it can actually be used from the command line as well

http://bdsup2sub.javaforge.com/help.htm

Look for "Command line interface".

Re: How to burn english subtitles of a foreign film?

Posted: Sat Mar 03, 2012 4:12 pm
by DigitalAmoeba
Just wanted to say I found Handbrake CLI's current query string instructions for Burning in subtitles to the video feed to be a bit confusing, but have now worked them out.

First you must use it in conjunction with --subtitle x (where x is one or more comma seperated subtitles you want to use) then you need to use --subtitle-burn y (where y isn't the number of the subtitle track(!) but the number of the variable's order in --subtitle)

So if you want to burn in the first subtitle track of a DVD then you need: --subtitle 1 --subtitle-burn 1 (which is appears logical)

But if you want to burn in the 2nd subtitle track you need: --subtitle 2 --subtitle-burn 1 (which isn't very logical at first glance!)

A 3rd example to better highlight: --subtitle scan,3,2,1 --subtitle-burn 4 (will burn subtitle track 1, as it's the 4th variable described in --subtitle)

Hopefully that helps some other people out!

BTW if you're doing any TV series rather than Movies I highly recommend mcmusic's 'Handbrake Batch Encoder' GUI front end, currently 1st item at top of his download site - http://videoscripts.wordpress.com/downloads/ as you can confirgure most options via the GUI and then just add things like burned subtitles command switches into the lower command box it generates :-)

If you like and use that tool do consider donating a cup of coffee to him as he politely requests seeing as that GUI is awesome and will save you a lot of queing up work in Handbrake and he doesn't even put nag screens in his free software.

Re: How to burn english subtitles of a foreign film?

Posted: Sat May 12, 2012 8:04 am
by Doddy
I've noticed the recent updates to Handbrake nightlies that support BD subtitles, and got excited that I can now drop Aegisub/mkvmerge as a solution to forced-subtitles. I've successfully ripped one example (Game of Thrones, Season 1 - Episode 10... I'd manually subbed all previous ones!) using the GUI. Now, I'm trying to get my background script to automate instances where there are forced subs using the latest nightly.

Reading the CLI parameter list, the following options appeared sensible to me,

Code: Select all

--subtitle "scan" --subtitle-forced --subtitle-burn
and this does appear to work, however, at the end of the conversion when HandbrakeCLI is unloading I always appear to get an exception thrown ("malloc:... pointer being freed was not allocated").

To cut down the time to investigate, I've split the source into 5 minute segments and tried various combinations of CLI parameters, but it appears that if I specify --subtitle "scan" then this triggers the malloc exception, for sources that either DO, or DO NOT have forced subs.

Activity log:

Code: Select all

[08:49:23] hb_init: starting libhb thread
HandBrake svn4658 (2012051201) - Darwin x86_64 - http://handbrake.fr
2 CPUs detected
Opening test-007.mkv...
[08:49:23] hb_scan: path=test-007.mkv, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening test-007.mkv/BDMV/index.bdmv
libbluray/bluray.c:1471: nav_get_title_list(test-007.mkv) failed (0x10201b600)
[08:49:23] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.11 for DVD access
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[08:49:23] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'test-007.mkv':
  Metadata:
    title           : Game Of Thrones Season 1 Disc 5
  Duration: 00:05:00.55, start: 0.000000, bitrate: 4608 kb/s
    Chapter #0.0: start 0.000000, end 300.554000
    Metadata:
      title           : Chapter 05
    Stream #0.0(eng): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0.1(eng): Audio: dca (DTS), 48000 Hz, 5.1, s16, 1536 kb/s (default)
    Metadata:
      title           : 3/2+1
    Stream #0.2(fre): Audio: dca (DTS), 48000 Hz, 5.1, s16, 768 kb/s
    Metadata:
      title           : 3/2+1
    Stream #0.3(spa): Audio: dca (DTS), 48000 Hz, 5.1, s16, 768 kb/s
    Metadata:
      title           : 3/2+1
    Stream #0.4(pol): Audio: dca (DTS), 48000 Hz, stereo, s16, 768 kb/s
    Metadata:
      title           : 2/0
    Stream #0.5(eng): Audio: dca (DTS), 48000 Hz, 5.1, s16, 768 kb/s
    Metadata:
      title           : 3/2+1
    Stream #0.6(eng): Subtitle: pgssub (default)
    Stream #0.7(eng): Subtitle: pgssub
    Stream #0.8(fre): Subtitle: pgssub
    Stream #0.9(fre): Subtitle: pgssub
    Stream #0.10(spa): Subtitle: pgssub
    Stream #0.11(spa): Subtitle: pgssub
    Stream #0.12(spa): Subtitle: pgssub
    Stream #0.13(spa): Subtitle: pgssub
    Stream #0.14(por): Subtitle: pgssub
    Stream #0.15(pol): Subtitle: pgssub
    Stream #0.16(pol): Subtitle: pgssub
    Stream #0.17(dut): Subtitle: pgssub
    Stream #0.18(dan): Subtitle: pgssub
    Stream #0.19(fin): Subtitle: pgssub
    Stream #0.20(nor): Subtitle: pgssub
    Stream #0.21(swe): Subtitle: pgssub
[08:49:24] scan: decoding previews for title 1
Scanning title 1...
[08:49:24] scan: audio 0x1: DCA, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[08:49:24] scan: audio 0x2: DCA, rate=48000Hz, bitrate=768000 Francais (DTS) (5.1 ch)
[08:49:24] scan: audio 0x3: DCA, rate=48000Hz, bitrate=768000 Espanol (DTS) (5.1 ch)
[08:49:24] scan: audio 0x4: DCA, rate=48000Hz, bitrate=768000 Polish (DTS) (2.0 ch)
[08:49:24] scan: audio 0x5: DCA, rate=48000Hz, bitrate=768000 English (DTS) (5.1 ch)
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
[08:49:27] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[08:49:27] scan: title (0) job->width:1920, job->height:1072
[08:49:27] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: test-007.mkv
  + duration: 00:05:00
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:05:01
  + audio tracks:
    + 1, English (DTS) (5.1 ch) (iso639-2: eng), 48000Hz, 1536000bps
    + 2, Francais (DTS) (5.1 ch) (iso639-2: fra), 48000Hz, 768000bps
    + 3, Espanol (DTS) (5.1 ch) (iso639-2: spa), 48000Hz, 768000bps
    + 4, Polish (DTS) (2.0 ch) (iso639-2: pol), 48000Hz, 768000bps
    + 5, English (DTS) (5.1 ch) (iso639-2: eng), 48000Hz, 768000bps
  + subtitle tracks:
    + 1, English (iso639-2: eng) (Bitmap)(PGS)
    + 2, English (iso639-2: eng) (Bitmap)(PGS)
    + 3, French (iso639-2: fra) (Bitmap)(PGS)
    + 4, French (iso639-2: fra) (Bitmap)(PGS)
    + 5, Spanish (iso639-2: spa) (Bitmap)(PGS)
    + 6, Spanish (iso639-2: spa) (Bitmap)(PGS)
    + 7, Spanish (iso639-2: spa) (Bitmap)(PGS)
    + 8, Spanish (iso639-2: spa) (Bitmap)(PGS)
    + 9, Portuguese (iso639-2: por) (Bitmap)(PGS)
    + 10, Polish (iso639-2: pol) (Bitmap)(PGS)
    + 11, Polish (iso639-2: pol) (Bitmap)(PGS)
    + 12, Dutch (iso639-2: nld) (Bitmap)(PGS)
    + 13, Danish (iso639-2: dan) (Bitmap)(PGS)
    + 14, Finnish (iso639-2: fin) (Bitmap)(PGS)
    + 15, Norwegian (iso639-2: nor) (Bitmap)(PGS)
    + 16, Swedish (iso639-2: swe) (Bitmap)(PGS)
Subtitle Scan Enabled - enabling subtitles if found for foreign language segments
[08:49:28] 2 job(s) to process
[08:49:28] starting job
[08:49:28] sync: expecting 7206 video frames
[08:49:28] job configuration:
[08:49:28]  * source
[08:49:28]    + test-007.mkv
[08:49:28]    + title 1, chapter(s) 1 to 1
[08:49:28]    + container: matroska,webm
[08:49:28]    + data rate: 4608 kbps
[08:49:28]  * destination
[08:49:28]    + test-007.mp4
[08:49:28]    + container: MPEG-4 (.mp4 and .m4v)
[08:49:28]  * video track
[08:49:28]    + decoder: h264
[08:49:28]    + frame rate: same as source (around 23.976 fps)
[08:49:28]    + filters
[08:49:28]      + Framerate Shaper (0:27000000:1126125)
[08:49:28]        + frame rate: same as source (around 23.976 fps)
[08:49:28]      + Subtitle renderer (0:0:0:0)
[08:49:28]      + Crop and Scale (320:176:0:0:0:0)
[08:49:28]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 320 * 176
[08:49:28]    + dimensions: 320 * 176, mod 0
[08:49:28]  * Foreign Audio Search: Render/Burn-in, Forced Only
[08:49:28]    + subtitle, English (track 6, id 0x6) Picture [PGS]
[08:49:28]    + subtitle, English (track 7, id 0x7) Picture [PGS]
[08:49:31] reader: done. 1 scr changes
[08:49:31] work: average encoding speed for job is 0.000000 fps
[08:49:31] render: lost time: 0 (0 frames)
[08:49:31] render: gained time: 0 (0 frames) (0 not accounted for)
[08:49:31] h264-decoder done: 0 frames, 0 decoder errors, 0 drops
[08:49:31] Subtitle track 6 (id 0x6) 'English': 46 hits (6 forced)
[08:49:31] Subtitle track 7 (id 0x7) 'English': 6 hits (6 forced)
[08:49:31] Found a subtitle candidate with id 0x6 (contains forced subs)
[08:49:31] starting job
[08:49:31] sync: expecting 7206 video frames
[08:49:31] job configuration:
[08:49:31]  * source
[08:49:31]    + test-007.mkv
[08:49:31]    + title 1, chapter(s) 1 to 1
[08:49:31]    + container: matroska,webm
[08:49:31]    + data rate: 4608 kbps
[08:49:31]  * destination
[08:49:31]    + test-007.mp4
[08:49:31]    + container: MPEG-4 (.mp4 and .m4v)
[08:49:31]  * video track
[08:49:31]    + decoder: h264
[08:49:31]    + frame rate: same as source (around 23.976 fps)
[08:49:31]    + filters
[08:49:31]      + Framerate Shaper (0:27000000:1126125)
[08:49:31]        + frame rate: same as source (around 23.976 fps)
[08:49:31]      + Subtitle renderer (0:0:0:0)
[08:49:31]      + Crop and Scale (320:176:0:0:0:0)
[08:49:31]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 320 * 176
[08:49:31]    + dimensions: 320 * 176, mod 0
[08:49:31]    + encoder: H.264 (x264)
[08:49:31]      + x264 preset: ultrafast
[08:49:31]      + x264 profile: high
[08:49:31]      + quality: 30.00 (RF)
[08:49:31]  * subtitle track 1, English (track 6, id 0x6) Picture [PGS] -> Render/Burn-in, Forced Only
[08:49:31]  * audio track 1
[08:49:31]    + decoder: English (DTS) (5.1 ch) (track 1, id 0x1)
[08:49:31]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[08:49:31]    + mixdown: Dolby Pro Logic II
[08:49:31]    + encoder: AAC (faac)
[08:49:31]      + bitrate: 160 kbps, samplerate: 48000 Hz
[08:49:32] reader: first SCR 7470 id 0x0 DTS 7470
[08:49:32] encx264: min-keyint: 24, keyint: 240
[08:49:32] encx264: Encoding at constant RF 30.000000
x264 [warning]: --psnr used with psy on: results will be invalid!
x264 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile Constrained Baseline, level 1.2
Stream with high frequencies VQ coding
[08:53:49] reader: done. 1 scr changes
[08:53:50] work: average encoding speed for job is 27.914780 fps
[08:53:50] sync: got 7204 frames, 7206 expected
[08:53:50] render: lost time: 0 (0 frames)
[08:53:50] render: gained time: 0 (0 frames) (0 not accounted for)
[08:53:51] h264-decoder done: 7204 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:31    Avg QP:24.74  size:  4561  PSNR Mean Y:41.98 U:46.70 V:46.83 Avg:43.05 Global:42.72
x264 [info]: frame P:7173  Avg QP:27.41  size:   574  PSNR Mean Y:38.59 U:45.31 V:45.40 Avg:39.89 Global:39.42
x264 [info]: mb I  I16..4: 100.0%  0.0%  0.0%
x264 [info]: mb P  I16..4:  2.8%  0.0%  0.0%  P16..4: 31.4%  0.0%  0.0%  0.0%  0.0%    skip:65.8%
x264 [info]: coded y,uvDC,uvAC intra: 30.5% 18.7% 3.8% inter: 11.8% 3.3% 0.1%
x264 [info]: i16 v,h,dc,p: 41% 21% 26% 12%
x264 [info]: i8c dc,h,v,p: 58% 15% 22%  6%
x264 [info]: SSIM Mean Y:0.9447896 (12.580db)
x264 [info]: PSNR Mean Y:38.610 U:45.318 V:45.407 Avg:39.902 Global:39.425 kb/s:113.36
[08:53:51] mux: track 0, 7204 frames, 4256523 bytes, 113.30 kbps, fifo 8192
[08:53:51] mux: track 1, 14089 frames, 6012097 bytes, 160.03 kbps, fifo 16384
[08:53:51] libhb: work result = 0

Encode done!
HandbrakeCLI(14660,0x7fff7c66d960) malloc: *** error for object 0x101e0fcb0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Note: The ugly picture settings are chosen to speed up the process.

I should say that the resulting mp4 appears perfectly fine, the problem is just one of the error thrown by the HandbrakeCLI.

Edit:

CLI for this was

Code: Select all

/Applications/HandbrakeCLI --format mp4 --encode x264 --quality 30.0 --x264-preset ultrafast --x264-profile high -E faac -B 160 -R 48 -6 dpl2 --width 320 --subtitle "scan" --subtitle-forced --subtitle-burn -i test-007.mkv -o test-007.mp4 >scan.txt 2> scan2.txt
...and are my assumptions about the CLI options for blindly adding forced subs wherever they are encountered correct?

Any ideas of how I can resolve this?

Re: How to burn english subtitles of a foreign film?

Posted: Sat May 12, 2012 12:22 pm
by Deleted User 11865
The error seems to happen after the encode completes, so you can just ignore it for now. It looks like a bug - I'm investigating a possibly related issue; hopefully this should get fixed eventually.

Re: How to burn english subtitles of a foreign film?

Posted: Mon May 14, 2012 2:38 pm
by Deleted User 11865
This should be fixed in tomorrow's nightly: https://trac.handbrake.fr/changeset/4675

No need to re-do any of your encodes, though; since the crash happened in hb_close(), the encode had already completed and was unaffected by the crash.

Re: How to burn english subtitles of a foreign film?

Posted: Fri May 18, 2012 2:44 pm
by Doddy
Tested, and works perfectly. Many thanks :)