Subtitle problem (only one line) on Ipad

Discuss encoding for devices and presets.
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
htcathtc
Posts: 2
Joined: Wed Jan 04, 2012 9:21 pm

Subtitle problem (only one line) on Ipad

Post by htcathtc »

I am using Handbrake to convert MKV's with subtitles included into m4v
files with soft subtitles using the Ipad settings.
When I do this choosing the subtitle that is embedded in the mkv I end up
with a m4v which I can watch on an Ipad and which allows to turn on and off
the subtitle. However I only see one line of the subtitle. The second
line (if present is gone or at least invisible).
When I extract the subtitle from the .mkv and use a separate .srt file with
the subtitles, the subtitle is complete meaning that I can turn it on and
off and I can see both lines. I can live with this but it requires an
extra Mkvextract session that I want to avoid.
Any ideas or anybody having experienced the same behavior?
Thank you for looking at this

These are the activity logs of the two sessions
The first one is with the internal MKV subtitles
One is with an extracted SRT file

Code: Select all

# Windows GUI 0.9.5 2011010300
# Running: Microsoft Windows NT 6.1.7601 Service Pack 1
# CPU: Intel(R) Core(TM)2 CPU          6700  @ 2.66GHz
# Ram: 3071 MB
# Screen: 1920x1200
# Temp Dir: E:\Hans\AppData\Local\Temp\
# Install Dir: C:\Program Files\Handbrake
# Data Dir: E:\Hans\AppData\Roaming\HandBrake\HandBrake\0.9.5.3728

# CLI Query:  -i "D:\FD5 nl.mkv" -t 1 -c 1 -o "D:\FD5 nl-1.m4v"  -f mp4 -4  -w 1024 --loose-anamorphic  -e x264 -q 20 -r 29.97 --pfr  -a 1 -E faac -6 dpl2 -R Auto -B 160 -D 0.0 --subtitle 1 --markers="E:\Hans\AppData\Local\Temp\FD5 nl-1-1-chapters.csv" --verbose=1
# User Query: False
-------------------------------------------

[14:23:04] hb_init: checking cpu count
[14:23:04] hb_init: starting libhb thread
HandBrake 0.9.5 (2011010300) - MinGW i386 - http://handbrake.fr
2 CPUs detected
Opening D:\FD5 nl.mkv...
[14:23:04] hb_scan: path=D:\FD5 nl.mkv, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening D:\FD5 nl.mkv/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(D:\FD5 nl.mkv) failed (0x1823098)
[14:23:04] 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:23:04] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\FD5 nl.mkv':
  Duration: 01:31:50.91, start: 0.000000, bitrate: 2176 kb/s
    Stream #0.0(eng): Video: h264, yuv420p, 1920x800, PAR 1:1 DAR 12:5, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0.1(eng): Audio: dca, 48000 Hz, 5.1, s16, 1536 kb/s
    Metadata:
      title           : DTS
    Stream #0.2(dut): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.3(eng): Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s
    Metadata:
      title           : AC3
    Stream #0.4(eng): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : English FHI
    Stream #0.5(eng): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : English
[14:23:04] scan: decoding previews for title 1
[14:23:04] scan: audio 0x3: AC-3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[14:23:04] scan: audio 0x1: DCA, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
[14:23:05] scan: 10 previews, 1920x800, 23.976 fps, autocrop = 0/2/0/0, aspect 2.40:1, PAR 1:1
[14:23:05] scan: title (0) job->width:1920, job->height:800
[14:23:05] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: D:\FD5 nl.mkv
  + duration: 01:31:50
  + size: 1920x800, pixel aspect: 1/1, display aspect: 2.40, 23.976 fps
  + autocrop: 0/2/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 01:31:50
  + audio tracks:
    + 1, English (DTS) (5.1 ch) (iso639-2: eng), 48000Hz, 1536000bps
    + 2, English (AC3) (5.1 ch) (iso639-2: eng), 48000Hz, 640000bps
  + subtitle tracks:
    + 1, Dutch (iso639-2: nld) (Text)(UTF-8)
    + 2, English (iso639-2: eng) (Text)(UTF-8)
    + 3, English (iso639-2: eng) (Text)(UTF-8)
Reading chapter markers from file E:\Hans\AppData\Local\Temp\FD5 nl-1-1-chapters.csv
[14:23:05] 1 job(s) to process
[14:23:05] starting job
[14:23:05] sync: expecting 132153 video frames
[14:23:05] work: only 1 chapter, disabling chapter markers
[14:23:05] job configuration:
[14:23:05]  * source
[14:23:05]    + D:\FD5 nl.mkv
[14:23:05]    + title 1, chapter(s) 1 to 1
[14:23:05]    + container: matroska,webm
[14:23:05]    + data rate: 2176 kbps
[14:23:05]  * destination
[14:23:05]    + D:\FD5 nl-1.m4v
[14:23:05]    + container: MPEG-4 (.mp4 and .m4v)
[14:23:05]      + 64-bit formatting
[14:23:05]  * video track
[14:23:05]    + decoder: h264
[14:23:05]    + frame rate: 23.976 fps -> peak rate limited to 29.970 fps
[14:23:05]    + loose anamorphic
[14:23:05]      + storage dimensions: 1920 * 800 -> 1024 * 432, crop 0/2/0/0, mod 0
[14:23:05]      + pixel aspect ratio: 135 / 133
[14:23:05]      + display dimensions: 1039 * 432
[14:23:05]    + encoder: x264
[14:23:05]      + quality: 20.00 (RF)
[14:23:05]  * subtitle track 0, Dutch (id 2) Text [UTF-8] -> Pass-Through
[14:23:05]  * audio track 0
[14:23:05]    + decoder: English (DTS) (5.1 ch) (track 1, id 1)
[14:23:05]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[14:23:05]    + mixdown: Dolby Pro Logic II
[14:23:05]    + encoder: faac
[14:23:05]      + bitrate: 160 kbps, samplerate: 48000 Hz
[14:23:05] encx264: min-keyint: auto (29), keyint: 300
[14:23:05] encx264: encoding with stored aspect 135/133
[14:23:05] encx264: Encoding at constant RF 20.000000
x264 [info]: using SAR=135/133
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[14:23:05] reader: first SCR 0 id 0 DTS 0
x264 [info]: profile High, level 3.1
Stream with high frequencies VQ coding
[14:23:06] sync: audio 1 time went backwards 0 ms, dropped 4 frames (next 184320, current 184320)
[16:39:47] reader: done. 1 scr changes
[16:39:47] dca_syncinfo failed
[16:39:49] work: average encoding speed for job is 16.102098 fps
[16:39:50] sync: got 132105 frames, 132153 expected
[16:39:50] h264-decoder done: 132105 frames, 0 decoder errors, 0 drops
[16:39:50] render: 132105 frames output, 0 dropped and 0 duped for CFR/PFR
[16:39:50] render: lost time: 0 (0 frames)
[16:39:50] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:1586  Avg QP:16.97  size: 43851  PSNR Mean Y:47.14 U:50.58 V:50.63 Avg:47.98 Global:47.39
x264 [info]: frame P:54667 Avg QP:20.32  size: 11045  PSNR Mean Y:44.80 U:49.22 V:49.02 Avg:45.79 Global:45.03
x264 [info]: frame B:75852 Avg QP:22.69  size:  2414  PSNR Mean Y:44.56 U:49.14 V:49.04 Avg:45.58 Global:44.88
x264 [info]: consecutive B-frames: 10.5% 30.7% 15.8% 43.0%
x264 [info]: mb I  I16..4: 11.0% 61.7% 27.3%
x264 [info]: mb P  I16..4:  1.2%  5.4%  1.4%  P16..4: 39.9% 17.6% 11.2%  0.0%  0.0%    skip:23.3%
x264 [info]: mb B  I16..4:  0.0%  0.3%  0.1%  B16..8: 41.3%  3.9%  1.0%  direct: 1.2%  skip:52.2%  L0:38.9% L1:53.7% BI: 7.4%
x264 [info]: 8x8 transform intra:66.0% inter:74.6%
x264 [info]: coded y,uvDC,uvAC intra: 72.4% 70.8% 37.3% inter: 16.8% 15.1% 1.4%
x264 [info]: i16 v,h,dc,p: 30% 20%  7% 43%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 18% 16%  6%  9%  9%  9%  8%  9%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 19% 15%  6% 10%  9%  9%  6%  6%
x264 [info]: i8c dc,h,v,p: 53% 20% 20%  7%
x264 [info]: Weighted P-Frames: Y:2.3% UV:1.4%
x264 [info]: ref P L0: 63.9% 14.4% 14.7%  6.9%  0.1%
x264 [info]: ref B L0: 87.9% 10.4%  1.7%
x264 [info]: ref B L1: 95.0%  5.0%
x264 [info]: SSIM Mean Y:0.9842974 (18.040db)
x264 [info]: PSNR Mean Y:44.689 U:49.188 V:49.050 Avg:45.694 Global:44.965 kb/s:1243.51
[16:39:54] mux: track 0, 132105 frames, 856387907 bytes, 1243.20 kbps, fifo 8
[16:39:54] mux: track 1, 258322 frames, 110043700 bytes, 159.75 kbps, fifo 512
[16:39:54] mux: track 2, 679 frames, 26263 bytes, 0.04 kbps, fifo 8
[16:39:54] libhb: work result = 0
Rip done!
HandBrake has exited.
With the srt file

Code: Select all

# Windows GUI 0.9.5 2011010300
# Running: Microsoft Windows NT 6.1.7601 Service Pack 1
# CPU: Intel(R) Core(TM)2 CPU          6700  @ 2.66GHz
# Ram: 3071 MB
# Screen: 1920x1200
# Temp Dir: E:\Hans\AppData\Local\Temp\
# Install Dir: C:\Program Files\Handbrake
# Data Dir: E:\Hans\AppData\Roaming\HandBrake\HandBrake\0.9.5.3728

# CLI Query:  -i "D:\FD5 nl.mkv" -t 1 -c 1 -o "D:\FD5 nl-1 srt.m4v"  -f mp4 -4  -w 1024 --loose-anamorphic  -e x264 -q 20 -r 29.97 --pfr  -a 1 -E faac -6 dpl2 -R Auto -B 160 -D 0.0 --srt-file "D:\FD5 nl.srt" --srt-codeset UTF-8 --srt-offset 0 --srt-lang nld --markers="E:\Hans\AppData\Local\Temp\FD5 nl-1 srt-1-chapters.csv" --verbose=1
# User Query: False
-------------------------------------------

[18:47:17] hb_init: checking cpu count
[18:47:17] hb_init: starting libhb thread
HandBrake 0.9.5 (2011010300) - MinGW i386 - http://handbrake.fr
2 CPUs detected
Opening D:\FD5 nl.mkv...
[18:47:17] hb_scan: path=D:\FD5 nl.mkv, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening D:\FD5 nl.mkv/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(D:\FD5 nl.mkv) failed (0x19133b0)
[18:47:17] 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
[18:47:18] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\FD5 nl.mkv':
  Duration: 01:31:50.91, start: 0.000000, bitrate: 2176 kb/s
    Stream #0.0(eng): Video: h264, yuv420p, 1920x800, PAR 1:1 DAR 12:5, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0.1(eng): Audio: dca, 48000 Hz, 5.1, s16, 1536 kb/s
    Metadata:
      title           : DTS
    Stream #0.2(dut): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.3(eng): Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s
    Metadata:
      title           : AC3
    Stream #0.4(eng): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : English FHI
    Stream #0.5(eng): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : English
[18:47:18] scan: decoding previews for title 1
[18:47:18] scan: audio 0x3: AC-3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[18:47:18] scan: audio 0x1: DCA, rate=48000Hz, bitrate=1536000 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...
[18:47:19] scan: 10 previews, 1920x800, 23.976 fps, autocrop = 0/2/0/0, aspect 2.40:1, PAR 1:1
[18:47:19] scan: title (0) job->width:1920, job->height:800
[18:47:19] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: D:\FD5 nl.mkv
  + duration: 01:31:50
  + size: 1920x800, pixel aspect: 1/1, display aspect: 2.40, 23.976 fps
  + autocrop: 0/2/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 01:31:50
  + audio tracks:
    + 1, English (DTS) (5.1 ch) (iso639-2: eng), 48000Hz, 1536000bps
    + 2, English (AC3) (5.1 ch) (iso639-2: eng), 48000Hz, 640000bps
  + subtitle tracks:
    + 1, Dutch (iso639-2: nld) (Text)(UTF-8)
    + 2, English (iso639-2: eng) (Text)(UTF-8)
    + 3, English (iso639-2: eng) (Text)(UTF-8)
Reading chapter markers from file E:\Hans\AppData\Local\Temp\FD5 nl-1 srt-1-chapters.csv
[18:47:19] 1 job(s) to process
[18:47:19] starting job
[18:47:19] sync: expecting 132153 video frames
[18:47:19] work: only 1 chapter, disabling chapter markers
[18:47:19] job configuration:
[18:47:19]  * source
[18:47:19]    + D:\FD5 nl.mkv
[18:47:19]    + title 1, chapter(s) 1 to 1
[18:47:19]    + container: matroska,webm
[18:47:19]    + data rate: 2176 kbps
[18:47:19]  * destination
[18:47:19]    + D:\FD5 nl-1 srt.m4v
[18:47:19]    + container: MPEG-4 (.mp4 and .m4v)
[18:47:19]      + 64-bit formatting
[18:47:19]  * video track
[18:47:19]    + decoder: h264
[18:47:19]    + frame rate: 23.976 fps -> peak rate limited to 29.970 fps
[18:47:19]    + loose anamorphic
[18:47:19]      + storage dimensions: 1920 * 800 -> 1024 * 432, crop 0/2/0/0, mod 0
[18:47:19]      + pixel aspect ratio: 135 / 133
[18:47:19]      + display dimensions: 1039 * 432
[18:47:19]    + encoder: x264
[18:47:19]      + quality: 20.00 (RF)
[18:47:19]  * subtitle track 0, Dutch (id ff) Text [SRT] -> Pass-Through, offset: 0, charset: UTF-8
[18:47:19]  * audio track 0
[18:47:19]    + decoder: English (DTS) (5.1 ch) (track 1, id 1)
[18:47:19]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[18:47:19]    + mixdown: Dolby Pro Logic II
[18:47:19]    + encoder: faac
[18:47:19]      + bitrate: 160 kbps, samplerate: 48000 Hz
[18:47:20] encx264: min-keyint: auto (29), keyint: 300
[18:47:20] encx264: encoding with stored aspect 135/133
[18:47:20] encx264: Encoding at constant RF 20.000000
x264 [info]: using SAR=135/133
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
x264 [info]: profile High, level 3.1
[18:47:20] reader: first SCR 0 id 0 DTS 0
Stream with high frequencies VQ coding
[18:47:20] sync: audio 1 time went backwards 0 ms, dropped 5 frames (next 184320, current 184320)
[21:06:03] reader: done. 1 scr changes
[21:06:03] dca_syncinfo failed
[21:06:05] work: average encoding speed for job is 15.867322 fps
[21:06:05] sync: got 132105 frames, 132153 expected
[21:06:05] h264-decoder done: 132105 frames, 0 decoder errors, 0 drops
[21:06:05] render: 132105 frames output, 0 dropped and 0 duped for CFR/PFR
[21:06:05] render: lost time: 0 (0 frames)
[21:06:05] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:1586  Avg QP:16.97  size: 43851  PSNR Mean Y:47.14 U:50.58 V:50.63 Avg:47.98 Global:47.39
x264 [info]: frame P:54667 Avg QP:20.32  size: 11045  PSNR Mean Y:44.80 U:49.22 V:49.02 Avg:45.79 Global:45.03
x264 [info]: frame B:75852 Avg QP:22.69  size:  2414  PSNR Mean Y:44.56 U:49.14 V:49.04 Avg:45.58 Global:44.88
x264 [info]: consecutive B-frames: 10.5% 30.7% 15.8% 43.0%
x264 [info]: mb I  I16..4: 11.0% 61.7% 27.3%
x264 [info]: mb P  I16..4:  1.2%  5.4%  1.4%  P16..4: 39.9% 17.6% 11.2%  0.0%  0.0%    skip:23.3%
x264 [info]: mb B  I16..4:  0.0%  0.3%  0.1%  B16..8: 41.3%  3.9%  1.0%  direct: 1.2%  skip:52.2%  L0:38.9% L1:53.7% BI: 7.4%
x264 [info]: 8x8 transform intra:66.0% inter:74.6%
x264 [info]: coded y,uvDC,uvAC intra: 72.4% 70.8% 37.3% inter: 16.8% 15.1% 1.4%
x264 [info]: i16 v,h,dc,p: 30% 20%  7% 43%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 18% 16%  6%  9%  9%  9%  8%  9%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 19% 15%  6% 10%  9%  9%  6%  6%
x264 [info]: i8c dc,h,v,p: 53% 20% 20%  7%
x264 [info]: Weighted P-Frames: Y:2.3% UV:1.4%
x264 [info]: ref P L0: 63.9% 14.4% 14.7%  6.9%  0.1%
x264 [info]: ref B L0: 87.9% 10.4%  1.7%
x264 [info]: ref B L1: 95.0%  5.0%
x264 [info]: SSIM Mean Y:0.9842973 (18.040db)
x264 [info]: PSNR Mean Y:44.689 U:49.188 V:49.050 Avg:45.693 Global:44.965 kb/s:1243.51
[21:06:10] mux: track 0, 132105 frames, 856388763 bytes, 1243.21 kbps, fifo 8
[21:06:10] mux: track 1, 258321 frames, 110043415 bytes, 159.75 kbps, fifo 512
[21:06:10] mux: track 2, 679 frames, 27213 bytes, 0.04 kbps, fifo 8
[21:06:10] libhb: work result = 0
Rip done!
HandBrake has exited.
Last edited by Anonymous on Thu Jan 05, 2012 10:41 pm, edited 1 time in total.
Reason: Activity Logs should be enclosed in [code] blocks
randomreuben
Veteran User
Posts: 468
Joined: Mon Nov 02, 2009 2:18 pm

Re: Subtitle problem (only one line) on Ipad

Post by randomreuben »

How did you encode the original MKV file? Also, how did you put the SRT file in the MKV in the first place? I'm assuming that your MKV file had an SRT file to start with.
Eug
Posts: 27
Joined: Tue Apr 10, 2007 2:01 am

Re: Subtitle problem (only one line) on Ipad

Post by Eug »

I've noticed this before too with some MKV files, and yes my solution was also to add in a separate srt file for the subs in the Subtitles tab in Handbrake before the encode.

This was on 0.9.5 MacGUI. I don't know if this issue still exists with the 698 nightly, because I haven't used it much... obviously since it only came out a few hours ago. :P
htcathtc
Posts: 2
Joined: Wed Jan 04, 2012 9:21 pm

Re: Subtitle problem (only one line) on Ipad

Post by htcathtc »

randomreuben wrote:How did you encode the original MKV file? Also, how did you put the SRT file in the MKV in the first place? I'm assuming that your MKV file had an SRT file to start with.
Yes, indeed the srt was in the mkv. It was an srt that I did put in the mkv with mkvmerge.
Eug wrote:I've noticed this before too with some MKV files, and yes my solution was also to add in a separate srt file for the subs in the Subtitles tab in Handbrake before the encode.

This was on 0.9.5 MacGUI. I don't know if this issue still exists with the 698 nightly, because I haven't used it much... obviously since it only came out a few hours ago. :P
I will have to try. I have been using 0.9.5 Windows.
Post Reply