subtitles for CLI newb

Discussion of the HandBrake command line interface (CLI)
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
lankysam
Posts: 3
Joined: Fri Feb 26, 2010 9:55 pm

subtitles for CLI newb

Post by lankysam »

I have read and re-read the 0.9.4 CLI help pages and I can't quite get the subtitle syntax down. What I am trying to do (ideally) is capture ALL English subtitles, whether "forced", close captioned, director's commentary, or "primary" (i.e., when the default audio track is not English). Furthermore, I believe (?) that in 0.9.4 there is a way to get these without "burning" them in. In other words, I'd like to be able to 'turn off' all subtitles (or, perhaps, choose a second or third subtitle track which is 'none'?) while watching the video (e.g. in Boxee, which does permit subtitle track selection). I hope this is all clear... I am (putatively) a native English speaker so I can't blame any translation difficulties!

I've tried several options, but I'm getting nowhere. Any suggestions would be humbly appreciated. Thank you.

Code: Select all

./HandBrakeCLI -i /Users/me/DAYS/VIDEO_TS -o /Users/me/DAYS/wild.m4v –v -e x264  -q 20.0 -a 1,1 -E ac3,faac -B 160,160 -6 auto,dp12 -R Auto,48 -D 0.0,0.0 -f mp4 -4 -X 960 --loose-anamorphic -m -x cabac=0:ref=1:me=umh:b-adapt=2:weightb=0:trellis=0:weightp=0:no-fast-pskip=0:me=umh:subq=8  –s scan –F scan default 1
[15:02:54] hb_init: checking cpu count
[15:02:54] hb_init: starting libhb thread
HandBrake 0.9.4 (2009112300) - Darwin x86_64 - http://handbrake.fr
8 CPUs detected
Opening /Users/me/DAYS/VIDEO_TS...
[15:02:54] hb_scan: path=/Users/me/DAYS/VIDEO_TS, title_index=1
[15:02:54] scan: trying to open with libdvdread
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdread: Couldn't find device name.
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: Unable to find map file '/Users/me/.dvdnav/.map'
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdread: Couldn't find device name.
[15:02:54] scan: DVD has 16 title(s)
[15:02:54] scan: scanning title 1
[15:02:54] scan: opening IFO for VTS 1
[15:02:54] pgc_id: 1, pgn: 1: pgc: 0x10122c660
[15:02:54] scan: vts=1, ttn=1, cells=0->11, blocks=0->1784287, 1784288 blocks
[15:02:54] scan: duration is 01:33:58 (5638010 ms)
[15:02:54] scan: checking audio 1
[15:02:54] scan: id=80bd, lang=English (AC3), 3cc=eng ext=0
[15:02:54] scan: checking audio 2
[15:02:54] scan: audio channel is not active
[15:02:54] scan: checking audio 3
[15:02:54] scan: audio channel is not active
[15:02:54] scan: checking audio 4
[15:02:54] scan: audio channel is not active
[15:02:54] scan: checking audio 5
[15:02:54] scan: audio channel is not active
[15:02:54] scan: checking audio 6
[15:02:54] scan: audio channel is not active
[15:02:54] scan: checking audio 7
[15:02:54] scan: audio channel is not active
[15:02:54] scan: checking audio 8
[15:02:54] scan: audio channel is not active
[15:02:54] scan: checking subtitle 1
[15:02:54] scan: id=20bd, lang=English, 3cc=eng
[15:02:54] scan: checking subtitle 2
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 3
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 4
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 5
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 6
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 7
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 8
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 9
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 10
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 11
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 12
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 13
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 14
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 15
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 16
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 17
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 18
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 19
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 20
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 21
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 22
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 23
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 24
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 25
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 26
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 27
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 28
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 29
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 30
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 31
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: checking subtitle 32
[15:02:54] scan: subtitle channel is not active
[15:02:54] scan: title 1 has 12 chapters
[15:02:54] scan: chap 1 c=0->0, b=0->118935 (118936), 365301 ms
[15:02:54] scan: chap 2 c=1->1, b=118936->272134 (153199), 475163 ms
[15:02:54] scan: chap 3 c=2->2, b=272135->459222 (187088), 587202 ms
[15:02:54] scan: chap 4 c=3->3, b=459223->538953 (79731), 256264 ms
[15:02:54] scan: chap 5 c=4->4, b=538954->678324 (139371), 434149 ms
[15:02:54] scan: chap 6 c=5->5, b=678325->914150 (235826), 755260 ms
[15:02:54] scan: chap 7 c=6->6, b=914151->1078991 (164841), 546364 ms
[15:02:54] scan: chap 8 c=7->7, b=1078992->1208185 (129194), 406316 ms
[15:02:54] scan: chap 9 c=8->8, b=1208186->1320006 (111821), 356122 ms
[15:02:54] scan: chap 10 c=9->9, b=1320007->1480327 (160321), 503349 ms
[15:02:54] scan: chap 11 c=10->10, b=1480328->1634500 (154173), 475163 ms
[15:02:54] scan: chap 12 c=11->11, b=1634501->1784287 (149787), 477350 ms
[15:02:54] scan: aspect = 0
[15:02:54] scan: decoding previews for title 1
[15:02:54] scan: title angle(s) 1
Scanning title 1...
Scanning title 1...
[15:02:54] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch)
[15:02:55] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 32:27
[15:02:55] scan: title (0) job->width:720, job->height:400
[15:02:55] libhb: scan thread found 1 valid title(s)
+ title 1:
  + vts 1, ttn 1, cells 0->11 (1784288 blocks)
  + angle(s) 1
  + duration: 01:33:58
  + size: 720x480, pixel aspect: 32/27, display aspect: 1.78, 29.970 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 118936 blocks, duration 00:06:05
    + 2: cells 1->1, 153199 blocks, duration 00:07:55
    + 3: cells 2->2, 187088 blocks, duration 00:09:47
    + 4: cells 3->3, 79731 blocks, duration 00:04:16
    + 5: cells 4->4, 139371 blocks, duration 00:07:14
    + 6: cells 5->5, 235826 blocks, duration 00:12:35
    + 7: cells 6->6, 164841 blocks, duration 00:09:06
    + 8: cells 7->7, 129194 blocks, duration 00:06:46
    + 9: cells 8->8, 111821 blocks, duration 00:05:56
    + 10: cells 9->9, 160321 blocks, duration 00:08:23
    + 11: cells 10->10, 154173 blocks, duration 00:07:55
    + 12: cells 11->11, 149787 blocks, duration 00:07:57
  + audio tracks:
    + 1, English (AC3) (2.0 ch) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English (iso639-2: eng) (Bitmap)
Invalid sample rate 0, using input rate 48000
[15:02:55] 1 job(s) to process
[15:02:55] starting job
[15:02:55] work: sanitizing track 1 mixdown Mono to Stereo
[15:02:55] job configuration:
[15:02:55]  * source
[15:02:55]    + /Users/me/DAYS/VIDEO_TS
[15:02:55]    + title 1, chapter(s) 1 to 12
[15:02:55]  * destination
[15:02:55]    + /Users/me/DAYS/wild.m4v
[15:02:55]    + container: MPEG-4 (.mp4 and .m4v)
[15:02:55]      + 64-bit formatting
[15:02:55]      + chapter markers
[15:02:55]  * video track
[15:02:55]    + decoder: mpeg2
[15:02:55]      + bitrate 9000 kbps
[15:02:55]    + frame rate: same as source (around 29.970 fps)
[15:02:55]    + loose anamorphic
[15:02:55]      + modulus: 0
[15:02:55]      + storage dimensions: 720 * 480 -> 720 * 480, crop 0/0/0/0
[15:02:55]      + pixel aspect ratio: 853 / 720
[15:02:55]      + display dimensions: 853 * 480
[15:02:55]    + encoder: x264
[15:02:55]      + options: cabac=0:ref=1:me=umh:b-adapt=2:weightb=0:trellis=0:weightp=0:no-fast-pskip=0:me=umh:subq=8
[15:02:55]      + quality: 20.00 (RF)
[15:02:55]  * audio track 0
[15:02:55]    + decoder: English (AC3) (2.0 ch) (track 1, id 80bd)
[15:02:55]      + bitrate: 192 kbps, samplerate: 48000 Hz
[15:02:55]    + AC3 passthrough
[15:02:55]  * audio track 1
[15:02:55]    + decoder: English (AC3) (2.0 ch) (track 1, id 80bd)
[15:02:55]      + bitrate: 192 kbps, samplerate: 48000 Hz
[15:02:55]    + mixdown: Stereo
[15:02:55]    + encoder: faac
[15:02:55]      + bitrate: 160 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 4.1.3
[15:02:55] encx264: keyint-min: 30, keyint-max: 300
libdvdread: Using libdvdcss version 1.2.10 for DVD access
[15:02:55] encx264: encoding with stored aspect 853/720
[15:02:55] encx264: Encoding at constant RF 20.000000
libdvdread: Couldn't find device name.
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: Unable to find map file '/Users/me/.dvdnav/.map'
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
x264 [info]: using SAR=853/720
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdread: Couldn't find device name.
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile High, level 3.0
No accelerated IMDCT transform found
No accelerated IMDCT transform found
[15:02:55] reader: first SCR 146 id 224 DTS 18018
[15:02:55] mpeg2: "Chapter 1" (1) at frame 0 time 9009
[15:02:55] sync: expecting 169001 video frames
[ac3 @ 0x10b078800]No channel layout specified. The encoder will guess the layout, but it might be incorrect.
[15:02:55] sync: first pts is 9009
Encoding: task 1 of 1, 6.45 % (77.93 fps, avg 79.72 fps, ETA 00h33m04s)[15:05:11] mpeg2: "Chapter 2" (2) at frame 10965 time 32936904
Encoding: task 1 of 1, 14.88 % (78.33 fps, avg 77.65 fps, ETA 00h30m52s)[15:08:19] mpeg2: "Chapter 3" (3) at frame 25215 time 75729654
Encoding: task 1 of 1, 25.29 % (77.87 fps, avg 77.06 fps, ETA 00h27m19s)[15:12:10] mpeg2: "Chapter 4" (4) at frame 42825 time 128612484
Encoding: task 1 of 1, 29.84 % (81.19 fps, avg 76.83 fps, ETA 00h25m43s)[15:13:51] mpeg2: "Chapter 5" (5) at frame 50520 time 151720569
Encoding: task 1 of 1, 37.56 % (73.75 fps, avg 76.67 fps, ETA 00h22m56s)[15:16:43] mpeg2: "Chapter 6" (6) at frame 63540 time 190819629
Encoding: task 1 of 1, 50.95 % (82.06 fps, avg 76.20 fps, ETA 00h18m08s)[15:21:45] mpeg2: "Chapter 7" (7) at frame 86190 time 258837579
Encoding: task 1 of 1, 60.66 % (76.45 fps, avg 76.05 fps, ETA 00h14m34s)[15:25:23] mpeg2: "Chapter 8" (8) at frame 102585 time 308071764
Encoding: task 1 of 1, 67.87 % (76.31 fps, avg 75.64 fps, ETA 00h11m58s)[15:28:11] mpeg2: "Chapter 9" (9) at frame 114780 time 344693349
Encoding: task 1 of 1, 74.18 % (90.25 fps, avg 76.02 fps, ETA 00h09m34s)[15:30:24] mpeg2: "Chapter 10" (10) at frame 125460 time 376765389
Encoding: task 1 of 1, 83.13 % (81.53 fps, avg 76.38 fps, ETA 00h06m13s)[15:33:34] mpeg2: "Chapter 11" (11) at frame 140565 time 422125704
Encoding: task 1 of 1, 91.56 % (77.76 fps, avg 76.37 fps, ETA 00h03m07s)[15:36:41] mpeg2: "Chapter 12" (12) at frame 154815 time 464918454
Encoding: task 1 of 1, 100.00 %[15:39:48] reader: done. 0 scr changes00s)
Encoding: task 1 of 1, 100.00 %[15:39:49] sync: got 169147 frames, 169001 expected
[15:39:49] work: average encoding speed for job is 76.398262 fps
Muxing: this may take awhile...[15:39:50] mux: track 0, 169148 frames, 990675389 bytes, 1404.22 kbps, fifo 128
[15:39:50] mux: track 1, 176374 frames, 135455232 bytes, 192.00 kbps, fifo 512
[15:39:50] mux: track 2, 264562 frames, 112868270 bytes, 159.98 kbps, fifo 1024
[15:39:50] mpeg2 done: 169148 frames
[15:39:50] render: lost time: 0 (0 frames)
[15:39:50] render: gained time: 0 (0 frames) (0 not accounted for)
[15:39:50] encx264: 1 frames had to be split (169147 in, 169212 out)
x264 [info]: frame I:711   Avg QP:16.27  size: 34950  PSNR Mean Y:48.27 U:51.85 V:51.81 Avg:49.13 Global:48.68
x264 [info]: frame P:58525 Avg QP:19.46  size: 10866  PSNR Mean Y:44.74 U:49.67 V:49.61 Avg:45.82 Global:45.48
x264 [info]: frame B:109912 Avg QP:21.09  size:  3002  PSNR Mean Y:44.41 U:49.51 V:49.43 Avg:45.51 Global:45.06
x264 [info]: consecutive B-frames:  0.9%  8.1% 85.1%  6.0%
x264 [info]: mb I  I16..4:  9.2% 73.4% 17.4%
x264 [info]: mb P  I16..4:  2.2%  7.8%  1.3%  P16..4: 51.5% 16.4%  5.7%  0.0%  0.0%    skip:15.2%
x264 [info]: mb B  I16..4:  0.3%  0.6%  0.2%  B16..8: 47.7%  0.7%  1.0%  direct: 5.0%  skip:44.5%  L0:36.2% L1:53.8% BI:10.0%
x264 [info]: 8x8 transform intra:67.8% inter:65.9%
x264 [info]: coded y,uvDC,uvAC intra: 76.2% 65.2% 26.8% inter: 13.0% 15.7% 0.6%
x264 [info]: i16 v,h,dc,p: 49% 19% 12% 20%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12%  7% 17% 10% 11% 13% 10% 11%  9%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  9% 39%  4%  7%  9% 10%  8%  8%  6%
x264 [info]: SSIM Mean Y:0.9776439
x264 [info]: PSNR Mean Y:44.543 U:49.575 V:49.500 Avg:45.634 Global:45.214 kb/s:1404.29
[15:39:51] libhb: work result = 0

Rip done!
HandBrake has exited.
Last edited by Anonymous on Fri Feb 26, 2010 10:56 pm, edited 1 time in total.
Reason: Please enclose Activity Logs in [code] blocks
Post Reply