[SSA error] unable to hardcode subtitles into video

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
freakhistorian
Posts: 1
Joined: Thu Mar 03, 2011 12:18 am

[SSA error] unable to hardcode subtitles into video

Post by freakhistorian »

Hi there,

Not sure if this has been covered before, but I did trawl the forums to check before posting.
My apologies if it has been dealt with in another thread.

I am attempting to hardcode .Ass subtitles into a video using the "Normal Profile". Under the subtitles tab I checked the "Burned In" option; in another attempt I checked both the "Burned In" and "Default" settings. The error only occurs in this batch of videos and not in other videos I've transcoded, which work perfectly.

Trouble is, the subtitles do not show up completely in the finished video, when played in Windows Media Player, Quicktime, or VLC.

Here is the encode log:

Code: Select all

# Windows GUI 0.9.5 2011010300
# Running: Microsoft Windows NT 6.1.7600.0
# CPU: Intel(R) Core(TM) i7 CPU       Q 720  @ 1.60GHz
# Ram: 3131 MB
# Screen: 1366x768
# Temp Dir: C:\Users\Gan Ee Kiat\AppData\Local\Temp\
# Install Dir: C:\Program Files\Handbrake
# Data Dir: C:\Users\Gan Ee Kiat\AppData\Roaming\HandBrake\HandBrake\0.9.5.3728

# CLI Query:  -i "C:\Users\Gan Ee Kiat\Desktop\Kaicho wa maid sama\[FFFpeeps] Kaichou wa Maid-sama 01.mkv" -t 1 -c 1 -o "C:\Users\Gan Ee Kiat\Desktop\Handbrake Conversion\[FFFpeeps] Kaichou wa Maid-sama 01.m4v"  -f mp4 --strict-anamorphic  -e x264 -q 20 -a 1 -E faac -6 dpl2 -R Auto -B 160 -D 0.0 --subtitle 1 --subtitle-burn=1 --subtitle-default=1 -x ref=2:bframes=2:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0 --verbose=1
# User Query: False
-------------------------------------------

[08:25:22] hb_init: checking cpu count
[08:25:22] hb_init: starting libhb thread
HandBrake 0.9.5 (2011010300) - MinGW i386 - http://handbrake.fr
8 CPUs detected
Opening C:\Users\Gan Ee Kiat\Desktop\Kaicho wa maid sama\[FFFpeeps] Kaichou wa Maid-sama 01.mkv...
[08:25:22] hb_scan: path=C:\Users\Gan Ee Kiat\Desktop\Kaicho wa maid sama\[FFFpeeps] Kaichou wa Maid-sama 01.mkv, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening C:\Users\Gan Ee Kiat\Desktop\Kaicho wa maid sama\[FFFpeeps] Kaichou wa Maid-sama 01.mkv/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(C:\Users\Gan Ee Kiat\Desktop\Kaicho wa maid sama\[FFFpeeps] Kaichou wa Maid-sama 01.mkv) failed (0x30ac70)
[08:25:22] 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
[08:25:22] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\Users\Gan Ee Kiat\Desktop\Kaicho wa maid sama\[FFFpeeps] Kaichou wa Maid-sama 01.mkv':
  Duration: 00:24:30.08, start: 0.000000, bitrate: 384 kb/s
    Stream #0.0: Video: h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 24.55 fps, 24.58 tbr, 1k tbn, 49.11 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, 3 channels (FL|FR|BC), s16, 384 kb/s
    Stream #0.2: Subtitle: [0][0][0][0] / 0x0000
[08:25:22] Channels reported by ffmpeg (3) != computed layout channels (2).
[08:25:22] scan: decoding previews for title 1
[08:25:22] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=384000 Unknown (AC3) (3.0 ch)
Scanning title 1...
Scanning title 1...
[08:25:22] scan: 10 previews, 1280x720, 24.554 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[08:25:22] scan: title (0) job->width:1280, job->height:720
[08:25:22] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: C:\Users\Gan Ee Kiat\Desktop\Kaicho wa maid sama\[FFFpeeps] Kaichou wa Maid-sama 01.mkv
  + duration: 00:24:30
  + size: 1280x720, pixel aspect: 1/1, display aspect: 1.78, 24.554 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:24:30
  + audio tracks:
    + 1, Unknown (AC3) (3.0 ch) (iso639-2: und), 48000Hz, 384000bps
  + subtitle tracks:
    + 1, Unknown (iso639-2: und) (Text)(SSA)
[08:25:22] 1 job(s) to process
[08:25:22] starting job
[08:25:22] work: sanitizing track 0 mixdown Dolby Pro Logic II to Stereo
[08:25:22] sync: expecting 36120 video frames
[08:25:22] job configuration:
[08:25:22]  * source
[08:25:22]    + C:\Users\Gan Ee Kiat\Desktop\Kaicho wa maid sama\[FFFpeeps] Kaichou wa Maid-sama 01.mkv
[08:25:22]    + title 1, chapter(s) 1 to 1
[08:25:22]    + container: matroska,webm
[08:25:22]    + data rate: 384 kbps
[08:25:22]  * destination
[08:25:22]    + C:\Users\Gan Ee Kiat\Desktop\Handbrake Conversion\[FFFpeeps] Kaichou wa Maid-sama 01.m4v
[08:25:22]    + container: MPEG-4 (.mp4 and .m4v)
[08:25:22]  * video track
[08:25:22]    + decoder: h264
[08:25:22]    + frame rate: same as source (around 24.554 fps)
[08:25:22]    + strict anamorphic
[08:25:22]      + storage dimensions: 1280 * 720 -> 1280 * 720, crop 0/0/0/0, mod 0
[08:25:22]      + pixel aspect ratio: 1 / 1
[08:25:22]      + display dimensions: 1280 * 720
[08:25:22]    + encoder: x264
[08:25:22]      + options: ref=2:bframes=2:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0
[08:25:22]      + quality: 20.00 (RF)
[08:25:22]  * subtitle track 0, Unknown (id 2) Text [SSA] -> Render/Burn in, Default
[08:25:22]  * audio track 0
[08:25:22]    + decoder: Unknown (AC3) (3.0 ch) (track 1, id 1)
[08:25:22]      + bitrate: 384 kbps, samplerate: 48000 Hz
[08:25:22]    + mixdown: Stereo
[08:25:22]    + encoder: faac
[08:25:22]      + bitrate: 160 kbps, samplerate: 48000 Hz
[08:25:22] encx264: encoding with stored aspect 1/1
[08:25:22] encx264: Encoding at constant RF 20.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264 [info]: profile Main, level 3.1
Fontconfig error: Cannot load default config file
[08:25:22] [ass] No usable fontconfig configuration file found, using fallback.
Fontconfig error: Cannot load default config file
No accelerated IMDCT transform found
[08:25:22] reader: first SCR 0 id 0 DTS 0
[08:38:02] reader: done. 1 scr changes
[08:38:04] work: average encoding speed for job is 47.437206 fps
[08:38:05] sync: got 36096 frames, 36120 expected
[08:38:05] h264-decoder done: 36096 frames, 0 decoder errors, 0 drops
[08:38:05] render: lost time: 0 (0 frames)
[08:38:05] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:348   Avg QP:14.45  size: 77194  PSNR Mean Y:51.89 U:58.24 V:58.63 Avg:53.15 Global:52.37
x264 [info]: frame P:15025 Avg QP:16.49  size: 10098  PSNR Mean Y:48.34 U:52.83 V:53.23 Avg:49.39 Global:48.75
x264 [info]: frame B:20723 Avg QP:19.50  size:  1489  PSNR Mean Y:48.77 U:52.83 V:53.28 Avg:49.76 Global:49.18
x264 [info]: consecutive B-frames: 11.6%  5.8% 82.6%
x264 [info]: mb I  I16..4: 28.2%  0.0% 71.8%
x264 [info]: mb P  I16..4:  5.2%  0.0%  3.9%  P16..4: 31.8%  6.8%  3.6%  0.0%  0.0%    skip:48.8%
x264 [info]: mb B  I16..4:  0.9%  0.0%  0.2%  B16..8: 11.4%  1.3%  0.1%  direct: 3.7%  skip:82.5%  L0:41.4% L1:56.0% BI: 2.6%
x264 [info]: coded y,uvDC,uvAC intra: 38.4% 61.3% 34.1% inter: 3.3% 10.9% 0.5%
x264 [info]: i16 v,h,dc,p: 45% 27% 15% 13%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 18% 23%  5%  6%  7%  4%  5%  4%
x264 [info]: i8c dc,h,v,p: 52% 20% 22%  6%
x264 [info]: Weighted P-Frames: Y:3.2% UV:2.4%
x264 [info]: ref P L0: 74.7%  4.7% 20.5%  0.1%
x264 [info]: ref B L0: 72.8% 27.2%
x264 [info]: ref B L1: 88.0% 12.0%
x264 [info]: SSIM Mean Y:0.9943549 (22.483db)
x264 [info]: PSNR Mean Y:48.623 U:52.882 V:53.311 Avg:49.636 Global:49.014 kb/s:1139.82
[08:38:07] mux: track 0, 36096 frames, 209438382 bytes, 1139.72 kbps, fifo 8
[08:38:07] mux: track 1, 68911 frames, 29390082 bytes, 159.93 kbps, fifo 512
[08:38:07] libhb: work result = 0
Rip done!
HandBrake has exited.
And the scan log if required:

Code: Select all

# Windows GUI 0.9.5 2011010300
# Running: Microsoft Windows NT 6.1.7600.0
# CPU: Intel(R) Core(TM) i7 CPU       Q 720  @ 1.60GHz
# Ram: 3131 MB
# Screen: 1366x768
# Temp Dir: C:\Users\Gan Ee Kiat\AppData\Local\Temp\
# Install Dir: C:\Program Files\Handbrake
# Data Dir: C:\Users\Gan Ee Kiat\AppData\Roaming\HandBrake\HandBrake\0.9.5.3728

-------------------------------------------

Query:  -i "C:\Users\Gan Ee Kiat\Desktop\Kaicho wa maid sama\[FFFpeeps] Kaichou wa Maid-sama 01.mkv" -t0  -v 
[08:19:59] hb_init: checking cpu count
[08:19:59] hb_init: starting libhb thread
HandBrake 0.9.5 (2011010300) - MinGW i386 - http://handbrake.fr
8 CPUs detected
Opening C:\Users\Gan Ee Kiat\Desktop\Kaicho wa maid sama\[FFFpeeps] Kaichou wa Maid-sama 01.mkv...
[08:19:59] hb_scan: path=C:\Users\Gan Ee Kiat\Desktop\Kaicho wa maid sama\[FFFpeeps] Kaichou wa Maid-sama 01.mkv, title_index=0
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening C:\Users\Gan Ee Kiat\Desktop\Kaicho wa maid sama\[FFFpeeps] Kaichou wa Maid-sama 01.mkv/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(C:\Users\Gan Ee Kiat\Desktop\Kaicho wa maid sama\[FFFpeeps] Kaichou wa Maid-sama 01.mkv) failed (0x30a240)
[08:19:59] 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
[08:19:59] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\Users\Gan Ee Kiat\Desktop\Kaicho wa maid sama\[FFFpeeps] Kaichou wa Maid-sama 01.mkv':
  Duration: 00:24:30.08, start: 0.000000, bitrate: 384 kb/s
    Stream #0.0: Video: h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 24.55 fps, 24.58 tbr, 1k tbn, 49.11 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, 3 channels (FL|FR|BC), s16, 384 kb/s
    Stream #0.2: Subtitle: [0][0][0][0] / 0x0000
[08:19:59] Channels reported by ffmpeg (3) != computed layout channels (2).
[08:19:59] scan: decoding previews for title 1
[08:19:59] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=384000 Unknown (AC3) (3.0 ch)
Scanning title 1 of 1...
Scanning title 1 of 1...
[08:20:00] scan: 10 previews, 1280x720, 24.554 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[08:20:00] scan: title (0) job->width:1280, job->height:720
[08:20:00] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: C:\Users\Gan Ee Kiat\Desktop\Kaicho wa maid sama\[FFFpeeps] Kaichou wa Maid-sama 01.mkv
  + duration: 00:24:30
  + size: 1280x720, pixel aspect: 1/1, display aspect: 1.78, 24.554 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:24:30
  + audio tracks:
    + 1, Unknown (AC3) (3.0 ch) (iso639-2: und), 48000Hz, 384000bps
  + subtitle tracks:
    + 1, Unknown (iso639-2: und) (Text)(SSA)
HandBrake has exited.
Thanks for any assistance!
davidfstr
Enlightened
Posts: 149
Joined: Sun Apr 12, 2009 7:41 pm

Re: [SSA error] unable to hardcode subtitles into video

Post by davidfstr »

freakhistorian wrote:the subtitles do not show up completely in the finished video
Could you be more specific?

Ideally, could you provide screencaps of (1) a frame from the original source file that displays a subtitle and (2) approximately the same frame in the HandBrake output file that shows the incorrectly rendered subtitle.
Deleted User 11865

Re: [SSA error] unable to hardcode subtitles into video

Post by Deleted User 11865 »

Your MKV does not have an embedded font. SSA burn-in is known to often (probably always) fail under Windows if there isn't any font file embedded in the input file.
davidfstr
Enlightened
Posts: 149
Joined: Sun Apr 12, 2009 7:41 pm

Re: [SSA error] unable to hardcode subtitles into video

Post by davidfstr »

I've attached this report to the existing bug on the Trac: https://trac.handbrake.fr/ticket/131
Post Reply