Subtitles burning in when they shouldn't

HandBrake for Windows support
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
emamid
Posts: 2
Joined: Tue Nov 11, 2014 1:47 am

Subtitles burning in when they shouldn't

Post by emamid »

I'm using Handbrake to transcode mkv files (from Blurays via MakeMKV, following this guide: http://lifehacker.com/5559007/the-hassl ... collection ). However, the video files that Handbrake produces have the subtitles burned in, even though I do not have "Burn in" checked for any of the subtitle tracks. I've verified that the mkv files that Handbrake is reading from have subtitle tracks that can be turned on/off correctly.

Here is my encode log:

Code: Select all

HandBrake 0.9.9.5530 - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: AMD Phenom(tm) II X4 965 Processor
Ram: 8157 MB, Screen: 1920x1080
Temp Dir: C:\Users\emamid\AppData\Local\Temp\
Install Dir: E:\Media\Handbrake
Data Dir: C:\Users\emamid\AppData\Roaming\HandBrake\HandBrake\0.9.9.5530

-------------------------------------------
CLI Query:  -i "D:\Docs\DVDs\Slayers_Revolution_Disc_1_t00.mkv" -t 1 --angle 1 -c 1 -o "D:\Docs\DVDs\Video\Slayers Revolution Disc 1 t00-1-1.m4v"  -f mp4  -4  --decomb -w 1920 --loose-anamorphic  --modulus 2 -e x264 -q 16 --vfr -a 1,1 -E faac,copy:ac3 -6 dpl2,auto -R Auto,Auto -B 160,0 -D 0,0 --gain 0,0 --audio-fallback ffac3 --subtitle 1,2 --markers="C:\Users\emamid\AppData\Local\Temp\Slayers Revolution Disc 1 t00-1-1-1-chapters.csv" --x264-profile=high  --h264-level="4.1"  --verbose=1
User Query: False

[17:33:03] hb_init: starting libhb thread
HandBrake 0.9.9 (2013052900) - MinGW x86_64 - http://handbrake.fr
4 CPUs detected
Opening D:\Docs\DVDs\Slayers_Revolution_Disc_1_t00.mkv...
[17:33:03] hb_scan: path=D:\Docs\DVDs\Slayers_Revolution_Disc_1_t00.mkv, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:\Docs\DVDs\Slayers_Revolution_Disc_1_t00.mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:\Docs\DVDs\Slayers_Revolution_Disc_1_t00.mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(D:\Docs\DVDs\Slayers_Revolution_Disc_1_t00.mkv) failed (000000000032EDE0)
[17:33:03] 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
[17:33:03] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\Docs\DVDs\Slayers_Revolution_Disc_1_t00.mkv':
  Metadata:
    title           : Slayers Revolution Disc 1
  Duration: 00:23:37.18, start: 0.000000, bitrate: N/A
    Chapter #0.0: start 0.000000, end 106.106000
    Metadata:
      title           : Chapter 01
    Chapter #0.1: start 106.106000, end 383.049333
    Metadata:
      title           : Chapter 02
    Chapter #0.2: start 383.049333, end 723.139083
    Metadata:
      title           : Chapter 03
    Chapter #0.3: start 723.139083, end 1311.226583
    Metadata:
      title           : Chapter 04
    Chapter #0.4: start 1311.226583, end 1401.191458
    Metadata:
      title           : Chapter 05
    Chapter #0.5: start 1401.191458, end 1417.184000
    Metadata:
      title           : Chapter 06
    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: ac3, 48000 Hz, 5.1, fltp, 448 kb/s (default)
    Metadata:
      title           : Surround 5.1
    Stream #0.2(jpn): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
    Stream #0.3(eng): Subtitle: pgssub
    Stream #0.4(eng): Subtitle: pgssub
[17:33:03] scan: decoding previews for title 1
[17:33:03] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[17:33:03] scan: audio 0x2: AC-3, rate=48000Hz, bitrate=192000 Japanese (AC3) (2.0 ch)
Scanning title 1 of 1, preview 4, 40.00 %
Scanning title 1 of 1, preview 7, 70.00 %
Scanning title 1 of 1, preview 9, 90.00 %[17:33:04] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[17:33:04] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: D:\Docs\DVDs\Slayers_Revolution_Disc_1_t00.mkv
  + duration: 00:23:37
  + 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:01:46
    + 2: cells 0->0, 0 blocks, duration 00:04:37
    + 3: cells 0->0, 0 blocks, duration 00:05:40
    + 4: cells 0->0, 0 blocks, duration 00:09:48
    + 5: cells 0->0, 0 blocks, duration 00:01:30
    + 6: cells 0->0, 0 blocks, duration 00:00:16
  + audio tracks:
    + 1, English (AC3) (5.1 ch) (iso639-2: eng), 48000Hz, 448000bps
    + 2, Japanese (AC3) (2.0 ch) (iso639-2: jpn), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English (iso639-2: eng) (Bitmap)(PGS)
    + 2, English (iso639-2: eng) (Bitmap)(PGS)
Reading chapter markers from file C:\Users\emamid\AppData\Local\Temp\Slayers Revolution Disc 1 t00-1-1-1-chapters.csv
Warning: Skipping subtitle track 2, can't have more than one track burnt in
[17:33:04] 1 job(s) to process
[17:33:04] starting job
[17:33:04] yadif thread started for segment 0
[17:33:04] yadif thread started for segment 1
[17:33:04] yadif thread started for segment 2
[17:33:04] yadif thread started for segment 3
[17:33:04] decomb filter thread started for segment 0
[17:33:04] decomb filter thread started for segment 1
[17:33:04] decomb filter thread started for segment 2
[17:33:04] decomb filter thread started for segment 3
[17:33:04] decomb check thread started for segment 0
[17:33:04] decomb check thread started for segment 1
[17:33:04] decomb check thread started for segment 2
[17:33:04] decomb check thread started for segment 3
[17:33:04] mask filter thread started for segment 0
[17:33:04] mask filter thread started for segment 1
[17:33:04] mask filter thread started for segment 2
[17:33:04] mask filter thread started for segment 3
[17:33:04] mask erode thread started for segment 0
[17:33:04] mask erode thread started for segment 1
[17:33:04] mask erode thread started for segment 2
[17:33:04] mask erode thread started for segment 3
[17:33:04] mask dilate thread started for segment 0
[17:33:04] mask dilate thread started for segment 1
[17:33:04] mask dilate thread started for segment 2
[17:33:04] mask dilate thread started for segment 3
[17:33:04] sync: expecting 2544 video frames
[17:33:04] work: only 1 chapter, disabling chapter markers
[17:33:04] job configuration:
[17:33:04]  * source
[17:33:04]    + D:\Docs\DVDs\Slayers_Revolution_Disc_1_t00.mkv
[17:33:04]    + title 1, chapter(s) 1 to 1
[17:33:04]    + container: matroska,webm
[17:33:04]  * destination
[17:33:04]    + D:\Docs\DVDs\Video\Slayers Revolution Disc 1 t00-1-1.m4v
[17:33:04]    + container: MPEG-4 (.mp4 and .m4v)
[17:33:04]      + 64-bit formatting
[17:33:04]  * video track
[17:33:04]    + decoder: h264
[17:33:04]    + frame rate: same as source (around 23.976 fps)
[17:33:04]    + filters
[17:33:04]      + Decomb (default settings)
[17:33:04]      + Framerate Shaper (0:27000000:1126125)
[17:33:04]        + frame rate: same as source (around 23.976 fps)
[17:33:04]      + Subtitle renderer (0:0:0:0)
[17:33:04]      + Crop and Scale (1920:1080:0:0:0:0)
[17:33:04]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[17:33:04]    + loose anamorphic
[17:33:04]      + storage dimensions: 1920 * 1080, mod 2
[17:33:04]      + pixel aspect ratio: 1 / 1
[17:33:04]      + display dimensions: 1920 * 1080
[17:33:04]    + encoder: H.264 (x264)
[17:33:04]      + h264 profile: high
[17:33:04]      + h264 level: 4.1
[17:33:04]      + quality: 16.00 (RF)
[17:33:04]  * subtitle track 1, English (track 3, id 0x3) Picture [PGS] -> Render/Burn-in
[17:33:04]  * audio track 1
[17:33:04]    + decoder: English (AC3) (5.1 ch) (track 1, id 0x1)
[17:33:04]      + bitrate: 448 kbps, samplerate: 48000 Hz
[17:33:04]    + mixdown: Dolby Pro Logic II
[17:33:04]    + encoder: AAC (faac)
[17:33:04]      + bitrate: 160 kbps, samplerate: 48000 Hz
[17:33:04]  * audio track 2
[17:33:04]    + decoder: English (AC3) (5.1 ch) (track 1, id 0x1)
[17:33:04]      + bitrate: 448 kbps, samplerate: 48000 Hz
[17:33:04]    + AC3 Passthru
[17:33:04] reader: first SCR 0 id 0x0 DTS 0
[17:33:04] encx264: min-keyint: 24, keyint: 240
[17:33:04] encx264: encoding with stored aspect 1/1
[17:33:04] encx264: Encoding at constant RF 16.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 SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSEMisalign LZCNT
x264 [info]: profile High, level 4.1
[17:38:57] reader: end of chapter 1 (media 1) reached at media chapter 2
[17:38:57] reader: done. 1 scr changes
[17:39:12] work: average encoding speed for job is 7.081113 fps
[17:39:12] sync: got 2545 frames, 2544 expected
[17:39:13] decomb: deinterlaced 0 | blended 0 | unfiltered 2544 | total 2544
[17:39:13] render: lost time: 0 (0 frames)
[17:39:13] render: gained time: 0 (0 frames) (0 not accounted for)
[17:39:13] h264-decoder done: 2545 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:41    Avg QP:13.11  size:183607  PSNR Mean Y:52.23 U:54.71 V:54.82 Avg:52.89 Global:51.33
x264 [info]: frame P:2047  Avg QP:16.01  size: 72844  PSNR Mean Y:48.48 U:50.57 V:50.55 Avg:49.04 Global:48.39
x264 [info]: frame B:456   Avg QP:17.55  size: 28763  PSNR Mean Y:48.51 U:50.65 V:50.74 Avg:49.10 Global:46.78
x264 [info]: consecutive B-frames: 71.3% 11.7%  8.0%  9.0%
x264 [info]: mb I  I16..4: 23.2% 58.4% 18.4%
x264 [info]: mb P  I16..4:  6.6% 20.4%  3.7%  P16..4: 35.6% 17.4%  7.0%  0.0%  0.0%    skip: 9.4%
x264 [info]: mb B  I16..4:  0.5%  1.1%  0.1%  B16..8: 42.2% 10.2%  1.7%  direct: 8.3%  skip:35.8%  L0:45.6% L1:43.3% BI:11.1%
x264 [info]: 8x8 transform intra:66.0% inter:70.3%
x264 [info]: coded y,uvDC,uvAC intra: 68.9% 88.9% 69.1% inter: 36.8% 52.1% 11.1%
x264 [info]: i16 v,h,dc,p: 29% 19% 26% 26%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 14% 43%  5%  4%  4%  4%  5%  5%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 17% 29%  4%  7%  5%  5%  4%  3%
x264 [info]: i8c dc,h,v,p: 51% 22% 20%  8%
x264 [info]: Weighted P-Frames: Y:8.7% UV:5.7%
x264 [info]: ref P L0: 63.7%  7.5% 19.0%  9.4%  0.5%
x264 [info]: ref B L0: 82.2% 14.7%  3.0%
x264 [info]: ref B L1: 95.1%  4.9%
x264 [info]: SSIM Mean Y:0.9920182 (20.979db)
x264 [info]: PSNR Mean Y:48.543 U:50.654 V:50.651 Avg:49.109 Global:48.084 kb/s:12799.08
[17:39:13] mux: track 0, 2544 frames, 169754261 bytes, 12793.81 kbps, fifo 256
[17:39:13] mux: track 1, 4975 frames, 2098283 bytes, 158.14 kbps, fifo 1024
[17:39:13] mux: track 2, 3316 frames, 5942272 bytes, 447.85 kbps, fifo 512
[17:39:13] libhb: work result = 0
Encode done!
HandBrake has exited.
And here is my scan log:

Code: Select all

HandBrake 0.9.9.5530 - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: AMD Phenom(tm) II X4 965 Processor
Ram: 8157 MB, Screen: 1920x1080
Temp Dir: C:\Users\emamid\AppData\Local\Temp\
Install Dir: E:\Media\Handbrake
Data Dir: C:\Users\emamid\AppData\Roaming\HandBrake\HandBrake\0.9.9.5530

-------------------------------------------
 -i "D:\Docs\DVDs\Slayers_Revolution_Disc_1_t00.mkv" -t0  --min-duration=10 -v 
[14:46:20] hb_init: starting libhb thread
HandBrake 0.9.9 (2013052900) - MinGW x86_64 - http://handbrake.fr
4 CPUs detected
Opening D:\Docs\DVDs\Slayers_Revolution_Disc_1_t00.mkv...
[14:46:20] hb_scan: path=D:\Docs\DVDs\Slayers_Revolution_Disc_1_t00.mkv, title_index=0
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:\Docs\DVDs\Slayers_Revolution_Disc_1_t00.mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:\Docs\DVDs\Slayers_Revolution_Disc_1_t00.mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(D:\Docs\DVDs\Slayers_Revolution_Disc_1_t00.mkv) failed (000000000031DDC0)
[14:46:20] 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
[14:46:20] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\Docs\DVDs\Slayers_Revolution_Disc_1_t00.mkv':
  Metadata:
    title           : Slayers Revolution Disc 1
  Duration: 00:23:37.18, start: 0.000000, bitrate: N/A
    Chapter #0.0: start 0.000000, end 106.106000
    Metadata:
      title           : Chapter 01
    Chapter #0.1: start 106.106000, end 383.049333
    Metadata:
      title           : Chapter 02
    Chapter #0.2: start 383.049333, end 723.139083
    Metadata:
      title           : Chapter 03
    Chapter #0.3: start 723.139083, end 1311.226583
    Metadata:
      title           : Chapter 04
    Chapter #0.4: start 1311.226583, end 1401.191458
    Metadata:
      title           : Chapter 05
    Chapter #0.5: start 1401.191458, end 1417.184000
    Metadata:
      title           : Chapter 06
    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: ac3, 48000 Hz, 5.1, fltp, 448 kb/s (default)
    Metadata:
      title           : Surround 5.1
    Stream #0.2(jpn): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
    Stream #0.3(eng): Subtitle: pgssub
    Stream #0.4(eng): Subtitle: pgssub
[14:46:20] scan: decoding previews for title 1
[14:46:20] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[14:46:20] scan: audio 0x2: AC-3, rate=48000Hz, bitrate=192000 Japanese (AC3) (2.0 ch)
[14:46:21] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: D:\Docs\DVDs\Slayers_Revolution_Disc_1_t00.mkv
  + duration: 00:23:37
  + 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:01:46
    + 2: cells 0->0, 0 blocks, duration 00:04:37
    + 3: cells 0->0, 0 blocks, duration 00:05:40
    + 4: cells 0->0, 0 blocks, duration 00:09:48
    + 5: cells 0->0, 0 blocks, duration 00:01:30
    + 6: cells 0->0, 0 blocks, duration 00:00:16
  + audio tracks:
    + 1, English (AC3) (5.1 ch) (iso639-2: eng), 48000Hz, 448000bps
    + 2, Japanese (AC3) (2.0 ch) (iso639-2: jpn), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English (iso639-2: eng) (Bitmap)(PGS)
    + 2, English (iso639-2: eng) (Bitmap)(PGS)
HandBrake has exited.
This is the codec information for the source file:
Image

And here is the codec information for the output file:
Image

Lastly, here are my subtitle settings in Handbrake:
Image

Thanks in advance for any help anyone can give me. Incidentally, I don't get this problem when transcoding from DVD ISO files, if that provides a clue.
moneymatt4life
Veteran User
Posts: 440
Joined: Fri Mar 09, 2012 5:26 am

Re: Subtitles burning in when they shouldn't

Post by moneymatt4life »

mp4/m4v doesn't support PGS subtitles, that's why they're being burned in.
Woodstock
Veteran User
Posts: 4619
Joined: Tue Aug 27, 2013 6:39 am

Re: Subtitles burning in when they shouldn't

Post by Woodstock »

And, if you were using one of the nightly builds, DVD subtitles would be burned in, too, because the newer MP4 library being used by Handbrake does NOT include the format extension that allowed DVD VOB subtitles to be included without burning them in.

Frankly, if you want switchable subtitles from ANY optical disk format, you want to stick with MKV files. The MP4 standard really only supports text-based subtitles.
emamid
Posts: 2
Joined: Tue Nov 11, 2014 1:47 am

Re: Subtitles burning in when they shouldn't

Post by emamid »

Thanks very much, switching to an mkv container did the trick.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5723
Joined: Sat Feb 09, 2008 7:21 pm

Re: Subtitles burning in when they shouldn't

Post by JohnAStebbins »

Woodstock wrote:And, if you were using one of the nightly builds, DVD subtitles would be burned in, too, because the newer MP4 library being used by Handbrake does NOT include the format extension that allowed DVD VOB subtitles to be included without burning them in.
This is no longer true. I patched the new muxer and re-added support for DVD subtitles in mp4 some time ago.
https://trac.handbrake.fr/changeset/6401
Post Reply