[Commited] [Core] SSA burn-in support

Archive of historical development discussions
Discussions / Development has moved to GitHub
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
User avatar
JohnAStebbins
HandBrake Team
Posts: 5457
Joined: Sat Feb 09, 2008 7:21 pm

Re: [Patch] [Core] SSA burn-in support

Post by JohnAStebbins » Fri Oct 22, 2010 3:43 pm

Drifter wrote:At first I thought this might be the subers mistake, but then it happened on 2 different anime and different subers.

It has something to do with the letters like y,p,q,j ect that hang down. Makes it difficult to enjoy the anime.
You've given us almost no information. Show us an activity log of an encode with this problem.

davidfstr
Regular User
Posts: 149
Joined: Sun Apr 12, 2009 7:41 pm

Re: [Patch] [Core] SSA burn-in support

Post by davidfstr » Sat Oct 23, 2010 1:02 am

Drifter wrote:It has something to do with the letters like y,p,q,j ect that hang down. Makes it difficult to enjoy the anime.
Could you elaborate? I didn't see anything special in the screencap you showed, except perhaps some unusual shadowing on those letters.

jamiemlaw
Veteran User
Posts: 536
Joined: Thu Sep 17, 2009 4:52 pm

Re: [Patch] [Core] SSA burn-in support

Post by jamiemlaw » Sat Oct 23, 2010 1:16 am

I think that is the problem. I've experienced it too: the shadows on letters with descenders are mis-positioned.

Drifter
Posts: 7
Joined: Fri Sep 24, 2010 9:21 am

Re: [Patch] [Core] SSA burn-in support

Post by Drifter » Sun Oct 24, 2010 7:12 pm

Exactly what jamiemlaw is saying, the shadow and the fill are miss aligned, the fill is dropping down a bit. I believe this is happening will all conversions but the slimmer text/shadows are harder to see.
Image
look at the G closely, you will see at the top of it there is a hole showing.

Sorry JohnAStebbins, don't really know how to do that. I only joined this forum for this feature. Thought the solution would be obvious just seeing this image. Not really a coder so what do I know.

jamiemlaw
Veteran User
Posts: 536
Joined: Thu Sep 17, 2009 4:52 pm

Re: [Patch] [Core] SSA burn-in support

Post by jamiemlaw » Mon Oct 25, 2010 1:28 am

@JohnAStebbins, I've done an encode with the latest nightly on a video that used to display the mis-aligned shadow symptom, and it is now fine.

@Drifter, if you read the forum rules (listed as an announcement at the top of every sub-forum -- you have read the rules, right? ;-) ) they tell you how to post an activity log. Are you using the latest nightly build?

Drifter
Posts: 7
Joined: Fri Sep 24, 2010 9:21 am

Re: [Patch] [Core] SSA burn-in support

Post by Drifter » Mon Oct 25, 2010 8:45 am

I used Windows GUI svn3626 and still am getting this issue. But not on all my files.

KabutoTX

Re: [Patch] [Core] SSA burn-in support

Post by KabutoTX » Tue Oct 26, 2010 8:20 pm

davidfstr: Thanks for the deadlock patch. Unfortunately I don't have my Mac setup to compile, so I can't test unless it gets added to the nightly builds. *cough* *cough* :)

Ran into a small problem with a new show. The Batch torrent is at http://www.nyaatorrents.org/?page=torre ... tid=121745. You can get just episode 2 to test. There is one subtitle and the OP has three sections. English, Romanji, and Kanji/Kana. The Kanji/Kana is just showing squares. I am assuming maybe since it is English you aren't doing Unicode character set? The original looks fine in VLC.

davidfstr
Regular User
Posts: 149
Joined: Sun Apr 12, 2009 7:41 pm

Re: [Patch] [Core] SSA burn-in support

Post by davidfstr » Wed Oct 27, 2010 6:33 am

KabutoTX wrote:I am assuming maybe since it is English you aren't doing Unicode character set? The original looks fine in VLC.
As I recall, the input is assumed to be in UTF-8, which should handle anything under the sun. Will have to check though.

Probably won't see much activity from me until Nov 8 or so, since it's becoming serious crunch time at work.

User avatar
Rodeo
HandBrake Team
Posts: 12239
Joined: Tue Mar 03, 2009 8:55 pm

Re: [Patch] [Core] SSA burn-in support

Post by Rodeo » Wed Oct 27, 2010 1:23 pm

Would you mind abiding by the forum rules please?

KabutoTX

Re: [Patch] [Core] SSA burn-in support

Post by KabutoTX » Wed Oct 27, 2010 2:53 pm

Sorry but my cable modem went out at home where the files were. Now back up and here is the logs.

Code: Select all

HandBrake Activity Log for /Users/rgdavis-tx/Movies/[polished] Princess Lover! 02 [DVD][CB55DCE9].m4v: 2010-10-27 09:21:10 -0500
Handbrake Version: svn3625 x86_64 (2010102401)

[09:21:10] macgui: Rip: Pending queue count is 0
[09:21:10] macgui: getNextPendingQueueIndex next pending encod index is:4
[09:21:10] macgui: scanning specifically for title: 1
[09:21:10] hb_scan: path=/Users/rgdavis-tx/Movies/Princess Lover [polished]/[polished] Princess Lover! 02 [DVD][CB55DCE9].mkv, title_index=1
[09:21:10] thread 115f82000 started ("scan")
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening /Users/rgdavis-tx/Movies/Princess Lover [polished]/[polished] Princess Lover! 02 [DVD][CB55DCE9].mkv/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(/Users/rgdavis-tx/Movies/Princess Lover [polished]/[polished] Princess Lover! 02 [DVD][CB55DCE9].mkv) failed (0x126742c00)
[09:21:10] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 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
[09:21:10] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/Users/rgdavis-tx/Movies/Princess Lover [polished]/[polished] Princess Lover! 02 [DVD][CB55DCE9].mkv':
  Duration: 00:23:47.59, start: 0.000000, bitrate: N/A
    Chapter #0.0: start 0.000000, end 90.173000
    Metadata:
      title           : Prologue
    Chapter #0.1: start 90.173000, end 718.342000
    Metadata:
      title           : School and Reunion Part One
    Chapter #0.2: start 718.342000, end 1315.022000
    Metadata:
      title           : School and Reunion Part Two
    Chapter #0.3: start 1315.022000, end 1405.028000
    Metadata:
      title           : ED Credits
    Chapter #0.4: start 1405.028000, end 1427.593000
    Metadata:
      title           : Preview
    Stream #0.0(eng): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : English
    Stream #0.1(jpn): Video: h264, yuv420p, 720x480, PAR 199:163 DAR 597:326, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      title           : Princess Lover! 02 (DVD) AVC
    Stream #0.2(jpn): Audio: aac, 48000 Hz, stereo, s16
    Metadata:
      title           : 2.0 Japanese (MP4A)
    Stream #0.3: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : VINERITC.TTF
    Stream #0.4: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : IMPRISHA.TTF
    Stream #0.5: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : ahronbd.ttf
    Stream #0.6: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : ANTQUAB.TTF
    Stream #0.7: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : BKANT.TTF
    Stream #0.8: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : CALISTB.TTF
    Stream #0.9: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : Depot-Bold.ttf
    Stream #0.10: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : Depot-BoldItalic.ttf
    Stream #0.11: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : Depot-Medium.ttf
    Stream #0.12: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : Depot-MediumItalic.ttf
    Stream #0.13: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : STEINEMB.ttf
[09:21:10] Found ffmpeg 5 chapters, container=matroska,webm
[09:21:10] Added chapter 1, name='Prologue', dur=8115570, (00:01:30)
[09:21:10] Added chapter 2, name='School and Reunion Part One', dur=56535210, (00:10:28)
[09:21:10] Added chapter 3, name='School and Reunion Part Two', dur=53701200, (00:09:56)
[09:21:10] Added chapter 4, name='ED Credits', dur=8100540, (00:01:30)
[09:21:10] Added chapter 5, name='Preview', dur=2030850, (00:00:22)
[09:21:10] scan: decoding previews for title 1
[09:21:10] scan: preview 1
[09:21:10] scan: preview 2
[09:21:10] scan: preview 3
[09:21:10] scan: preview 4
[09:21:10] scan: preview 5
[09:21:10] scan: preview 6
[09:21:10] Title's mostly NTSC Film, setting fps to 23.976
[09:21:10] scan: preview 7
[09:21:10] scan: preview 8
[09:21:10] scan: preview 9
[09:21:10] scan: preview 10
[09:21:10] scan: 10 previews, 720x480, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 199:163
[09:21:10] scan: title (0) job->width:720, job->height:400
[09:21:10] thread 115f82000 exited ("scan")
[09:21:10] thread 115f82000 joined ("scan")
[09:21:10] libhb: scan thread found 1 valid title(s)
[09:21:10] macgui: ScanDone state received from fQueueEncodeLibhb
[09:21:10] macgui: Preset: iPhone & iPod Touch
[09:21:10] macgui: processNewQueueEncode number of passes expected is: 1
[09:21:10] macgui: Start / Stop set to chapters
[09:21:10] macgui: prepareJob exiting
[09:21:10] thread 115f82000 started ("work")
[09:21:10] 1 job(s) to process
[09:21:10] starting job
[09:21:10] sync: expecting 34251 video frames
[09:21:10] job configuration:
[09:21:10]  * source
[09:21:10]    + /Users/rgdavis-tx/Movies/Princess Lover [polished]/[polished] Princess Lover! 02 [DVD][CB55DCE9].mkv
[09:21:10]    + title 1, chapter(s) 1 to 5
[09:21:10]    + container: matroska,webm
[09:21:10]  * destination
[09:21:10]    + /Users/rgdavis-tx/Movies/[polished] Princess Lover! 02 [DVD][CB55DCE9].m4v
[09:21:10]    + container: MPEG-4 (.mp4 and .m4v)
[09:21:10]      + chapter markers
[09:21:10]  * video track
[09:21:10]    + decoder: h264
[09:21:10]    + frame rate: same as source (around 23.976 fps)
[09:21:10]    + dimensions: 720 * 480 -> 480 * 256, crop 0/0/0/0
[09:21:10]    + encoder: x264
[09:21:10]      + options: cabac=0:ref=2:me=umh:bframes=0:weightp=0:subq=6:8x8dct=0:trellis=0
[09:21:10]      + quality: 20.00 (RF)
[09:21:10]  * subtitle track 0, English (id 0) Text [SSA] -> Render/Burn in
[09:21:10]  * audio track 0
[09:21:10]    + decoder: Japanese (AAC) (2.0 ch) (track 1, id 2)
[09:21:10]    + mixdown: Stereo
[09:21:10]    + encoder: ca_aac
[09:21:10]      + bitrate: 128 kbps, samplerate: 48000 Hz
[09:21:10] thread 116005000 started ("reader")
[09:21:10] thread 117ddd000 started ("AudioSynchronization")
[09:21:10] thread 117e60000 started ("Video decoder (ffmpeg streams)")
[09:21:10] thread 117ee3000 started ("Renderer")
[09:21:10] encx264: min-keyint: 24, keyint: 240
[09:21:10] encx264: Encoding at constant RF 20.000000
[09:21:10] encx264: opening libx264 (pass 0)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[09:21:10] Seeking to chapter 1: starts 0, ends 8115570, AV pos 0
[09:21:10] reader: first SCR 0 id 1 DTS 0
x264 [info]: profile Constrained Baseline, level 2.1
[09:21:10] thread 11892c000 started ("H.264/AVC encoder (libx264)")
Fontconfig error: Cannot load default config file
[09:21:10] [ass] No usable fontconfig configuration file found, using fallback.
Fontconfig error: Cannot load default config file
[09:21:10] thread 118b32000 started ("SSA Subtitle Decoder")
[09:21:10] thread 118bb5000 started ("Audio decoder (ffmpeg streams)")
[09:21:11] thread 118c38000 started ("AAC encoder (Apple)")
[09:21:11] thread 118cbb000 started ("Video Synchronization")
[09:21:11] muxmp4: track 0, chunk duration 15015
[09:21:11] muxmp4: track 1, chunk duration 8008
[09:21:11] thread 118e9d000 started ("Muxer")
[09:21:15] [ass] Glyph 0x8FCE not found, selecting one more font for (Calisto MT, 80, 0)
[09:21:15] [ass] Glyph 0x3048 not found, selecting one more font for (Calisto MT, 80, 0)
[09:21:15] [ass] Glyph 0x306B not found, selecting one more font for (Calisto MT, 80, 0)
[09:21:15] [ass] Glyph 0x304D not found, selecting one more font for (Calisto MT, 80, 0)
[09:21:15] [ass] Glyph 0x3066 not found, selecting one more font for (Calisto MT, 80, 0)
[09:21:15] [ass] Glyph 0x3088 not found, selecting one more font for (Calisto MT, 80, 0)
[09:21:15] [ass] Glyph 0x3068 not found, selecting one more font for (Calisto MT, 80, 0)
[09:21:15] [ass] Glyph 0x307C not found, selecting one more font for (Calisto MT, 80, 0)
[09:21:15] [ass] Glyph 0x3064 not found, selecting one more font for (Calisto MT, 80, 0)
[09:21:15] [ass] Glyph 0x308A not found, selecting one more font for (Calisto MT, 80, 0)
[09:21:15] [ass] Glyph 0x545F not found, selecting one more font for (Calisto MT, 80, 0)
[09:21:15] [ass] Glyph 0x3044 not found, selecting one more font for (Calisto MT, 80, 0)
[09:21:15] [ass] Glyph 0x305F not found, selecting one more font for (Calisto MT, 80, 0)
*etc*
Style section for op_jp Kanji section from subtitles

Code: Select all

Style: op_jp,Calisto MT,30,&H00FFFFFF,&HFF0000FF,&H32000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,8,10,10,10,1

davidfstr
Regular User
Posts: 149
Joined: Sun Apr 12, 2009 7:41 pm

Re: [Patch] [Core] SSA burn-in support

Post by davidfstr » Wed Nov 10, 2010 2:41 am

Finally back.

John, did you ever get to look at the deadlock situation I described?

Outstanding bug list:
* Bad kanji display - Need to repro. Have sample file.
* Fontconfig warnings - Need to repro. Probably need to spin up a fresh machine to try this.
* Strange shadows on letters that hang down - Insufficient information. Suspect rendering code in libfreetype.

User avatar
Rodeo
HandBrake Team
Posts: 12239
Joined: Tue Mar 03, 2009 8:55 pm

Re: [Patch] [Core] SSA burn-in support

Post by Rodeo » Wed Nov 10, 2010 2:48 am

davidfstr wrote:Outstanding bug list:
* Bad kanji display - Need to repro. Have sample file.
* Fontconfig warnings - Need to repro. Probably need to spin up a fresh machine to try this.
* Strange shadows on letters that hang down - Insufficient information. Suspect rendering code in libfreetype.
Apparently SSA burn-in still doesn't work at all under Windows. With a release scheduled for Nov. 23, this should probably be the first SSA-related priority.

s55 and j45 are currently investigating it, although they could probably use some help.

User avatar
JohnAStebbins
HandBrake Team
Posts: 5457
Joined: Sat Feb 09, 2008 7:21 pm

Re: [Patch] [Core] SSA burn-in support

Post by JohnAStebbins » Wed Nov 10, 2010 3:13 am

davidfstr, sorry, could you refresh my memory about that deadlock. How do I reproduce it?

davidfstr
Regular User
Posts: 149
Joined: Sun Apr 12, 2009 7:41 pm

Re: [Patch] [Core] SSA burn-in support

Post by davidfstr » Wed Nov 10, 2010 5:42 am

JohnAStebbins wrote:davidfstr, sorry, could you refresh my memory about that deadlock. How do I reproduce it?
See this post + the following 4 or so (including a proposed fix). I have two sample files that this will repro on, which I will send you links to.
Rodeo wrote:Apparently SSA burn-in still doesn't work at all under Windows.
That is serious. I didn't know there was a complete SSA failure under Windows. I'll prioritize that then.
Last edited by davidfstr on Thu Nov 11, 2010 1:40 am, edited 1 time in total.
Reason: typo

bazald
Posts: 2
Joined: Wed Nov 10, 2010 6:43 am

Re: [Patch] [Core] SSA burn-in support

Post by bazald » Wed Nov 10, 2010 6:57 am

I can verify that SSA burn-in works for svn3667-Win_GUI in Windows 7 (x64), if not perfectly.

I observed that the GUI option to offset the start time didn't seem to impact the subtitles, causing them to be be delayed by the offset. (Selecting seconds 30-60 would cause subtitles from seconds 0-30 to be rendered.)

Also, dangling glyphs [jpqy] seem to go below the bottom of the screen slightly. (small quibble)

User avatar
s55
HandBrake Team
Posts: 9586
Joined: Sun Dec 24, 2006 1:05 pm

Re: [Patch] [Core] SSA burn-in support

Post by s55 » Wed Nov 10, 2010 10:19 am

Bazald, can you please post a log of where it is working. I always get a fontconfig missing config file error when using burnin.
[10:19:12] [ass] No usable fontconfig configuration file found, using fallback.
Fontconfig error: Cannot load default config file


Passthru seems to work fine though.

User avatar
s55
HandBrake Team
Posts: 9586
Joined: Sun Dec 24, 2006 1:05 pm

Re: [Patch] [Core] SSA burn-in support

Post by s55 » Wed Nov 10, 2010 10:21 am

Wonder if it's detecting another fonts.conf file somewhere else on your system.

bazald
Posts: 2
Joined: Wed Nov 10, 2010 6:43 am

Re: [Patch] [Core] SSA burn-in support

Post by bazald » Wed Nov 10, 2010 4:39 pm

s55 wrote:Bazald, can you please post a log of where it is working. I always get a fontconfig missing config file error when using burnin.
[10:19:12] [ass] No usable fontconfig configuration file found, using fallback.
Fontconfig error: Cannot load default config file
I get the same error (warning?), but it doesn't seem to impact the final result.

Code: Select all

# Windows GUI svn3667 2010111001
# Running: Microsoft Windows NT 6.1.7600.0
# CPU: Intel(R) Core(TM) i7 CPU       Q 820  @ 1.73GHz
# Ram: 2036 MB
# Screen: 1920x1080
# Temp Dir: C:\Users\bazald\AppData\Local\Temp\
# Install Dir: C:\Program Files (x86)\Handbrake
# Data Dir: C:\Users\bazald\AppData\Roaming\HandBrake\HandBrake\0.9.4.3667

# CLI Query:  -i "C:\Users\bazald\Videos\PS3\input.mkv" -t 1 --start-at duration:0 --stop-at duration:60 -o "C:\Users\bazald\Videos\PS3\output.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 --markers="C:\Users\bazald\AppData\Local\Temp\output-1-chapters.csv" -x ref=2:bframes=2:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0 -v 1
# User Query: False
-------------------------------------------

[11:32:10] hb_init: checking cpu count
[11:32:10] hb_init: starting libhb thread
HandBrake svn3667 (2010111001) - MinGW i386 - http://handbrake.fr
8 CPUs detected
Opening C:\Users\bazald\Videos\PS3\input.mkv...
[11:32:10] hb_scan: path=C:\Users\bazald\Videos\PS3\input.mkv, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening C:\Users\bazald\Videos\PS3\input.mkv/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(C:\Users\bazald\Videos\PS3\input.mkv) failed (0x1a3b8c0)
[11:32:10] 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
[11:32:10] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\Users\bazald\Videos\PS3\input.mkv':
  Metadata:
    title           : TITLE
  Duration: 00:24:11.66, start: 0.000000, bitrate: N/A
    Chapter #0.0: start 0.000000, end 115.032000
    Metadata:
      title           : TITLE
    Chapter #0.1: start 115.032000, end 204.830000
    Metadata:
      title           : TITLE
    Chapter #0.2: start 204.830000, end 1329.787000
    Metadata:
      title           : TITLE
    Chapter #0.3: start 1329.787000, end 1419.793000
    Metadata:
      title           : TITLE
    Chapter #0.4: start 1419.793000, end 1451.660000
    Metadata:
      title           : TITLE
    Stream #0.0: Video: h264, yuv420p, 1920x1080, PAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      title           : TITLE
    Stream #0.1(jpn): Audio: flac, 48000 Hz, 2 channels, s32
    Metadata:
      title           : 2.0 FLAC
    Stream #0.2(eng): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : English
    Stream #0.3: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : FONT.ttf
[11:32:10] scan: decoding previews for 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...
[11:32:11] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[11:32:11] scan: title (0) job->width:1920, job->height:1072
[11:32:12] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: C:\Users\bazald\Videos\PS3\input.mkv
  + duration: 00:24:11
  + 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:55
    + 2: cells 0->0, 0 blocks, duration 00:01:29
    + 3: cells 0->0, 0 blocks, duration 00:18:44
    + 4: cells 0->0, 0 blocks, duration 00:01:30
    + 5: cells 0->0, 0 blocks, duration 00:00:31
  + audio tracks:
    + 1, Japanese (FLAC) (2.0 ch) (iso639-2: jpn)
  + subtitle tracks:
    + 1, English (iso639-2: eng) (Text)(SSA)
Reading chapter markers from file C:\Users\bazald\AppData\Local\Temp\output-1-chapters.csv
[11:32:12] 1 job(s) to process
[11:32:12] starting job
[11:32:12] work: sanitizing track 0 mixdown Dolby Pro Logic II to Stereo
[11:32:12] sync: expecting 1462 video frames
[11:32:12] job configuration:
[11:32:12]  * source
[11:32:12]    + C:\Users\bazald\Videos\PS3\input.mkv
[11:32:12]    + title 1, chapter(s) 1 to 5
[11:32:12]    + container: matroska,webm
[11:32:12]  * destination
[11:32:12]    + C:\Users\bazald\Videos\PS3\output.m4v
[11:32:12]    + container: MPEG-4 (.mp4 and .m4v)
[11:32:12]      + chapter markers
[11:32:12]  * video track
[11:32:12]    + decoder: h264
[11:32:12]    + frame rate: same as source (around 23.976 fps)
[11:32:12]    + strict anamorphic
[11:32:12]      + storage dimensions: 1920 * 1080 -> 1920 * 1080, crop 0/0/0/0, mod 0
[11:32:12]      + pixel aspect ratio: 1 / 1
[11:32:12]      + display dimensions: 1920 * 1080
[11:32:12]    + encoder: x264
[11:32:12]      + options: ref=2:bframes=2:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0
[11:32:12]      + quality: 20.00 (RF)
[11:32:12]  * subtitle track 0, English (id 2) Text [SSA] -> Render/Burn in
[11:32:12]  * audio track 0
[11:32:12]    + decoder: Japanese (FLAC) (2.0 ch) (track 1, id 1)
[11:32:12]    + mixdown: Stereo
[11:32:12]    + encoder: faac
[11:32:12]      + bitrate: 160 kbps, samplerate: 48000 Hz
[11:32:12] encx264: min-keyint: auto (23), keyint: 240
[11:32:12] encx264: encoding with stored aspect 1/1
[11:32:12] 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 4.0
Fontconfig error: Cannot load default config file
[11:32:12] [ass] No usable fontconfig configuration file found, using fallback.
Fontconfig error: Cannot load default config file
[11:32:12] reader: first SCR 0 id 0 DTS 0
[11:32:12] sync: adding 256 ms of silence to audio 1  start 61470, next 38400
[11:33:09] sync: reached pts 5401620, exiting early
[11:33:13] work: average encoding speed for job is 25.216568 fps
[11:33:13] sync: got 1439 frames, 1462 expected
[11:33:13] h264-decoder done: 1650 frames, 0 decoder errors, 0 drops
[11:33:13] reader: done. 1 scr changes
[11:33:13] render: lost time: 0 (0 frames)
[11:33:13] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:21    Avg QP:14.00  size:107576  PSNR Mean Y:56.01 U:58.52 V:58.57 Avg:56.68 Global:53.74
x264 [info]: frame P:529   Avg QP:16.29  size: 16549  PSNR Mean Y:50.44 U:53.40 V:53.18 Avg:51.17 Global:50.31
x264 [info]: frame B:889   Avg QP:18.61  size:  2756  PSNR Mean Y:50.34 U:53.11 V:52.88 Avg:51.04 Global:50.17
x264 [info]: consecutive B-frames:  4.4%  6.3% 89.3%
x264 [info]: mb I  I16..4: 42.6%  0.0% 57.4%
x264 [info]: mb P  I16..4:  5.7%  0.0%  3.1%  P16..4: 31.8%  5.3%  3.5%  0.0%  0.0%    skip:50.6%
x264 [info]: mb B  I16..4:  1.8%  0.0%  0.1%  B16..8: 13.4%  0.9%  0.0%  direct: 3.0%  skip:80.9%  L0:46.4% L1:52.2% BI: 1.4%
x264 [info]: coded y,uvDC,uvAC intra: 27.0% 46.0% 30.2% inter: 2.1% 7.0% 0.5%
x264 [info]: i16 v,h,dc,p: 60% 20% 12%  8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 16% 27%  6%  6%  5%  5%  5%  3%
x264 [info]: i8c dc,h,v,p: 64% 16% 18%  3%
x264 [info]: Weighted P-Frames: Y:6.8%
x264 [info]: ref P L0: 71.2%  4.8% 23.8%  0.3%
x264 [info]: ref B L0: 69.0% 31.0%
x264 [info]: ref B L1: 87.1% 12.9%
x264 [info]: SSIM Mean Y:0.9940471 (22.253db)
x264 [info]: PSNR Mean Y:50.463 U:53.298 V:53.075 Avg:51.171 Global:50.256 kb/s:1794.55
[11:33:13] flac-decoder done: 0 frames, 0 decoder errors, 0 drops
[11:33:13] mux: track 0, 1439 frames, 13462745 bytes, 1791.99 kbps, fifo 8
[11:33:13] mux: track 1, 2817 frames, 1202013 bytes, 160.00 kbps, fifo 512
[11:33:13] libhb: work result = 0
Rip done!
HandBrake has exited.

davidfstr
Regular User
Posts: 149
Joined: Sun Apr 12, 2009 7:41 pm

Re: [Patch] [Core] SSA burn-in support

Post by davidfstr » Wed Nov 17, 2010 6:08 am

bazald wrote:I get the same error (warning?), but it doesn't seem to impact the final result.
Ditto. Since this isn't actually causing a failure on Windows, I am deescalating it again.

On another note, I've extracted the parts of this thread about the older SSA stall issue (including my proposed fix) to a separate thread, since it's becoming too complicated to read here: http://forum.handbrake.fr/viewtopic.php ... 06&start=0

User avatar
Rodeo
HandBrake Team
Posts: 12239
Joined: Tue Mar 03, 2009 8:55 pm

Re: [Patch] [Core] SSA burn-in support

Post by Rodeo » Sun Nov 28, 2010 11:09 pm

Here's what I get using the latest WinGUI svn under a Windows 7 VM:

[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].mkv (works under both platforms)

WinGUI: http://paste.handbrake.fr/pastebin.php?show=1907

Code: Select all

# Windows GUI svn3688 2010112801
# Running: Microsoft Windows NT 6.1.7600.0
# CPU: Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz
# Ram: 1023 MB
# Screen: 1024x768
# Temp Dir: C:\Users\Timothy\AppData\Local\Temp\
# Install Dir: C:\Program Files (x86)\Handbrake
# Data Dir: C:\Users\Timothy\AppData\Roaming\HandBrake\HandBrake\0.9.4.3688

# CLI Query:  -i "\\vmware-host\Shared Folders\TestClips\Misc\Subtitles & Captions\[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].mkv" -t 1 -c 1 -o "C:\Users\Timothy\Desktop\[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].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 -x ref=2:bframes=2:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0 -v 1
# User Query: False
-------------------------------------------

[23:46:46] hb_init: checking cpu count
[23:46:46] hb_init: starting libhb thread
HandBrake svn3688 (2010112801) - MinGW i386 - http://handbrake.fr
1 CPU detected
Opening \\vmware-host\Shared Folders\TestClips\Misc\Subtitles & Captions\[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].mkv...
[23:46:46] hb_scan: path=\\vmware-host\Shared Folders\TestClips\Misc\Subtitles & Captions\[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].mkv, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening \\vmware-host\Shared Folders\TestClips\Misc\Subtitles & Captions\[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].mkv/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(\\vmware-host\Shared Folders\TestClips\Misc\Subtitles & Captions\[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].mkv) failed (0x19b9838)
[23:46:47] 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
[23:46:47] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '\\vmware-host\Shared Folders\TestClips\Misc\Subtitles & Captions\[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].mkv':
  Duration: 00:10:22.48, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: mpeg4, yuv420p, 1024x768 [PAR 1:1 DAR 4:3], 15 fps, 15 tbr, 1k tbn, 15 tbc
    Metadata:
      title           : Video
    Stream #0.1(eng): Audio: vorbis, 22050 Hz, mono, s16
    Metadata:
      title           : English Narration
    Stream #0.2(eng): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : English Subtitles
    Stream #0.3(por): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : Brazilian Portuguese Subtitles
    Stream #0.4(ger): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : German Subtitles
    Stream #0.5(fre): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : French Subtitles
    Stream #0.6: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : ARLRDBD.TTF
    Stream #0.7: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : GARA.TTF
[23:46:47] scan: decoding previews for title 1
Scanning title 1...
[23:46:47] scan: 10 previews, 1024x768, 15.000 fps, autocrop = 0/2/0/0, aspect 4:3, PAR 1:1
[23:46:47] Title is likely interlaced or telecined (9 out of 10 previews). You should do something about that.
[23:46:47] scan: title (0) job->width:1024, job->height:768
[23:46:47] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: \\vmware-host\Shared Folders\TestClips\Misc\Subtitles & Captions\[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].mkv
  + duration: 00:10:22
  + size: 1024x768, pixel aspect: 1/1, display aspect: 1.33, 15.000 fps
  + autocrop: 0/2/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:10:22
  + audio tracks:
    + 1, English (VORBIS) (1.0 ch) (iso639-2: eng)
  + subtitle tracks:
    + 1, English (iso639-2: eng) (Text)(SSA)
    + 2, Portuguese (iso639-2: por) (Text)(SSA)
    + 3, German (iso639-2: deu) (Text)(SSA)
    + 4, French (iso639-2: fra) (Text)(SSA)
  + combing detected, may be interlaced or telecined
[23:46:47] 1 job(s) to process
[23:46:47] starting job
[23:46:47] work: sanitizing track 0 mixdown Dolby Pro Logic II to Mono
[23:46:47] work: sanitizing track 0 audio bitrate 160 to 96
[23:46:47] sync: expecting 9352 video frames
[23:46:47] job configuration:
[23:46:47]  * source
[23:46:47]    + \\vmware-host\Shared Folders\TestClips\Misc\Subtitles & Captions\[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].mkv
[23:46:47]    + title 1, chapter(s) 1 to 1
[23:46:47]    + container: matroska,webm
[23:46:47]  * destination
[23:46:47]    + C:\Users\Timothy\Desktop\[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].m4v
[23:46:47]    + container: MPEG-4 (.mp4 and .m4v)
[23:46:47]  * video track
[23:46:47]    + decoder: mpeg4
[23:46:47]    + frame rate: same as source (around 15.000 fps)
[23:46:47]    + strict anamorphic
[23:46:47]      + storage dimensions: 1024 * 768 -> 1024 * 766, crop 0/2/0/0, mod 0
[23:46:47]      + pixel aspect ratio: 1 / 1
[23:46:47]      + display dimensions: 1024 * 766
[23:46:47]    + encoder: x264
[23:46:47]      + options: ref=2:bframes=2:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0
[23:46:47]      + quality: 20.00 (RF)
[23:46:47]  * subtitle track 0, English (id 2) Text [SSA] -> Render/Burn in
[23:46:47]  * audio track 0
[23:46:47]    + decoder: English (VORBIS) (1.0 ch) (track 1, id 1)
[23:46:47]    + mixdown: Mono
[23:46:47]    + encoder: faac
[23:46:47]      + bitrate: 96 kbps, samplerate: 22050 Hz
[23:46:47] encx264: min-keyint: auto (15), keyint: 150
[23:46:47] encx264: encoding with stored aspect 1/1
[23:46:47] encx264: Encoding at constant RF 20.000000
x264 [info]: [23:46:47] reader: first SCR 0 id 0 DTS 0
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
[23:46:47] [ass] No usable fontconfig configuration file found, using fallback.
Fontconfig error: Cannot load default config file
[23:50:16] reader: done. 1 scr changes
[23:50:19] work: average encoding speed for job is 44.326366 fps
[23:50:19] sync: got 9332 frames, 9352 expected
[23:50:19] mpeg4-decoder done: 9332 frames, 0 decoder errors, 0 drops
[23:50:19] render: lost time: 0 (0 frames)
[23:50:19] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:65    Avg QP:14.92  size:109626  PSNR Mean Y:49.80 U:53.37 V:53.36 Avg:50.65 Global:49.28
x264 [info]: frame P:3440  Avg QP:17.41  size:  2292  PSNR Mean Y:48.39 U:50.74 V:50.69 Avg:49.01 Global:48.85
x264 [info]: frame B:5827  Avg QP:22.77  size:   180  PSNR Mean Y:48.50 U:50.67 V:50.60 Avg:49.09 Global:48.97
x264 [info]: consecutive B-frames:  5.4%  1.1% 93.5%
x264 [info]: mb I  I16..4: 58.5%  0.0% 41.5%
x264 [info]: mb P  I16..4:  1.1%  0.0%  0.6%  P16..4:  3.8%  0.5%  0.5%  0.0%  0.0%    skip:93.5%
x264 [info]: mb B  I16..4:  0.2%  0.0%  0.0%  B16..8:  0.8%  0.1%  0.0%  direct: 0.4%  skip:98.5%  L0:40.1% L1:58.4% BI: 1.5%
x264 [info]: coded y,uvDC,uvAC intra: 33.3% 43.8% 38.6% inter: 0.4% 1.2% 0.2%
x264 [info]: i16 v,h,dc,p: 39% 56%  2%  3%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 34% 15%  3%  5%  4%  6%  4%  5%
x264 [info]: i8c dc,h,v,p: 37% 46% 13%  4%
x264 [info]: Weighted P-Frames: Y:0.5%
x264 [info]: ref P L0: 81.5%  2.7% 15.8%  0.0%
x264 [info]: ref B L0: 78.6% 21.4%
x264 [info]: ref B L1: 83.9% 16.1%
x264 [info]: SSIM Mean Y:0.9979495 (26.881db)
x264 [info]: PSNR Mean Y:48.470 U:50.717 V:50.655 Avg:49.072 Global:48.925 kb/s:206.54
[23:50:19] vorbis-decoder done: 0 frames, 0 decoder errors, 0 drops
[23:50:19] mux: track 0, 9332 frames, 16059552 bytes, 206.49 kbps, fifo 8
[23:50:19] mux: track 1, 13390 frames, 6215658 bytes, 79.92 kbps, fifo 256
[23:50:19] libhb: work result = 0
Rip done!
HandBrake has exited.
MacGUI: http://paste.handbrake.fr/pastebin.php?show=1909

Code: Select all

HandBrake Activity Log for /Users/tim/Desktop/[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].mp4: 2010-11-28 23:55:57 +0100
Handbrake Version: svn3688 x86_64 (2010112801)

[23:55:57] macgui: Rip: Pending queue count is 2
[23:55:57] macgui: getNextPendingQueueIndex next pending encod index is:0
[23:55:57] macgui: scanning specifically for title: 1
[23:55:57] hb_scan: path=/Volumes/LaCieDisk/excluded/TestClips/Misc/Subtitles & Captions/[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].mkv, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening /Volumes/LaCieDisk/excluded/TestClips/Misc/Subtitles & Captions/[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].mkv/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(/Volumes/LaCieDisk/excluded/TestClips/Misc/Subtitles & Captions/[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].mkv) failed (0x102201a00)
[23:55:57] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 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
[23:55:57] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/Volumes/LaCieDisk/excluded/TestClips/Misc/Subtitles & Captions/[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].mkv':
  Duration: 00:10:22.48, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: mpeg4, yuv420p, 1024x768 [PAR 1:1 DAR 4:3], 15 fps, 15 tbr, 1k tbn, 15 tbc
    Metadata:
      title           : Video
    Stream #0.1(eng): Audio: vorbis, 22050 Hz, mono, s16
    Metadata:
      title           : English Narration
    Stream #0.2(eng): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : English Subtitles
    Stream #0.3(por): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : Brazilian Portuguese Subtitles
    Stream #0.4(ger): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : German Subtitles
    Stream #0.5(fre): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : French Subtitles
    Stream #0.6: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : ARLRDBD.TTF
    Stream #0.7: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : GARA.TTF
[23:55:57] scan: decoding previews for title 1
[23:55:58] scan: 30 previews, 1024x768, 15.000 fps, autocrop = 0/2/0/0, aspect 4:3, PAR 1:1
[23:55:58] Title is likely interlaced or telecined (29 out of 30 previews). You should do something about that.
[23:55:58] scan: title (0) job->width:1024, job->height:768
[23:55:58] libhb: scan thread found 1 valid title(s)
[23:55:58] macgui: ScanDone state received from fQueueEncodeLibhb
[23:55:58] macgui: Preset: Normal (Default)
[23:55:58] macgui: processNewQueueEncode number of passes expected is: 1
[23:55:58] macgui: Start / Stop set to chapters
[23:55:58] macgui: prepareJob exiting
[23:55:58] 1 job(s) to process
[23:55:58] starting job
[23:55:58] sync: expecting 9352 video frames
[23:55:58] job configuration:
[23:55:58]  * source
[23:55:58]    + /Volumes/LaCieDisk/excluded/TestClips/Misc/Subtitles & Captions/[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].mkv
[23:55:58]    + title 1, chapter(s) 1 to 1
[23:55:58]    + container: matroska,webm
[23:55:58]  * destination
[23:55:58]    + /Users/tim/Desktop/[Aegisub]_Visual_Typesetting_Tutorial_[8B24834E].mp4
[23:55:58]    + container: MPEG-4 (.mp4 and .m4v)
[23:55:58]  * video track
[23:55:58]    + decoder: mpeg4
[23:55:58]    + frame rate: same as source (around 15.000 fps)
[23:55:58]    + strict anamorphic
[23:55:58]      + storage dimensions: 1024 * 768 -> 1024 * 766, crop 0/2/0/0, mod 16
[23:55:58]      + pixel aspect ratio: 1 / 1
[23:55:58]      + display dimensions: 1024 * 766
[23:55:58]    + encoder: x264
[23:55:58]      + options: ref=2:bframes=2:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0
[23:55:58]      + quality: 20.00 (RF)
[23:55:58]  * subtitle track 0, English (id 2) Text [SSA] -> Render/Burn in
[23:55:58]  * audio track 0
[23:55:58]    + decoder: English (VORBIS) (1.0 ch) (track 1, id 1)
[23:55:58]    + mixdown: Mono
[23:55:58]    + encoder: ca_aac
[23:55:58]      + bitrate: 40 kbps, samplerate: 22050 Hz
[23:55:58] reader: first SCR 0 id 0 DTS 0
[23:55:58] encx264: min-keyint: auto (15), keyint: 150
[23:55:58] encx264: encoding with stored aspect 1/1
[23:55:58] 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
[23:56:54] reader: done. 1 scr changes
[23:56:54] work: average encoding speed for job is 169.116852 fps
[23:56:54] sync: got 9332 frames, 9352 expected
[23:56:55] mpeg4-decoder done: 9332 frames, 0 decoder errors, 0 drops
[23:56:55] render: lost time: 0 (0 frames)
[23:56:55] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:65    Avg QP:14.92  size:109627  PSNR Mean Y:49.80 U:53.37 V:53.36 Avg:50.65 Global:49.28
x264 [info]: frame P:3441  Avg QP:17.42  size:  2284  PSNR Mean Y:48.37 U:50.77 V:50.72 Avg:49.00 Global:48.84
x264 [info]: frame B:5826  Avg QP:22.78  size:   181  PSNR Mean Y:48.49 U:50.68 V:50.61 Avg:49.08 Global:48.96
x264 [info]: consecutive B-frames:  5.4%  1.1% 93.5%
x264 [info]: mb I  I16..4: 58.5%  0.0% 41.5%
x264 [info]: mb P  I16..4:  1.1%  0.0%  0.6%  P16..4:  3.8%  0.5%  0.5%  0.0%  0.0%    skip:93.6%
x264 [info]: mb B  I16..4:  0.2%  0.0%  0.0%  B16..8:  0.8%  0.1%  0.0%  direct: 0.4%  skip:98.5%  L0:40.2% L1:58.3% BI: 1.5%
x264 [info]: coded y,uvDC,uvAC intra: 33.2% 43.6% 38.6% inter: 0.4% 1.1% 0.2%
x264 [info]: i16 v,h,dc,p: 38% 56%  2%  3%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 34% 15%  3%  5%  4%  6%  4%  5%
x264 [info]: i8c dc,h,v,p: 37% 47% 13%  4%
x264 [info]: Weighted P-Frames: Y:0.5% UV:0.4%
x264 [info]: ref P L0: 81.5%  2.7% 15.9%  0.0%
x264 [info]: ref B L0: 78.5% 21.5%
x264 [info]: ref B L1: 83.9% 16.1%
x264 [info]: SSIM Mean Y:0.9979484 (26.879db)
x264 [info]: PSNR Mean Y:48.458 U:50.729 V:50.668 Avg:49.064 Global:48.916 kb/s:206.26
[23:56:55] vorbis-decoder done: 0 frames, 0 decoder errors, 0 drops
[23:56:55] mux: track 0, 9332 frames, 16037498 bytes, 206.20 kbps, fifo 8
[23:56:55] mux: track 1, 13390 frames, 3196082 bytes, 41.09 kbps, fifo 256
[23:56:55] libhb: work result = 0
SSA_15subtitles.mkv (fails under Windows)

WinGUI: http://paste.handbrake.fr/pastebin.php?show=1908

Code: Select all

# Windows GUI svn3688 2010112801
# Running: Microsoft Windows NT 6.1.7600.0
# CPU: Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz
# Ram: 1023 MB
# Screen: 1024x768
# Temp Dir: C:\Users\Timothy\AppData\Local\Temp\
# Install Dir: C:\Program Files (x86)\Handbrake
# Data Dir: C:\Users\Timothy\AppData\Roaming\HandBrake\HandBrake\0.9.4.3688

# CLI Query:  -i "\\vmware-host\Shared Folders\TestClips\Misc\Subtitles & Captions\SSA_15subtitles.mkv" -t 1 -c 1 -o "C:\Users\Timothy\Desktop\SSA_15subtitles.m4v"  -f mp4 --strict-anamorphic  -e x264 -q 20 -a 1 -E faac -6 dpl2 -R Auto -B 160 -D 0.0 --subtitle 3 --subtitle-burn=1 -x ref=2:bframes=2:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0 -v 1
# User Query: False
-------------------------------------------

[23:50:19] hb_init: checking cpu count
[23:50:19] hb_init: starting libhb thread
HandBrake svn3688 (2010112801) - MinGW i386 - http://handbrake.fr
1 CPU detected
Opening \\vmware-host\Shared Folders\TestClips\Misc\Subtitles & Captions\SSA_15subtitles.mkv...
[23:50:19] hb_scan: path=\\vmware-host\Shared Folders\TestClips\Misc\Subtitles & Captions\SSA_15subtitles.mkv, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening \\vmware-host\Shared Folders\TestClips\Misc\Subtitles & Captions\SSA_15subtitles.mkv/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(\\vmware-host\Shared Folders\TestClips\Misc\Subtitles & Captions\SSA_15subtitles.mkv) failed (0x1b796d8)
[23:50: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
[23:50:20] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '\\vmware-host\Shared Folders\TestClips\Misc\Subtitles & Captions\SSA_15subtitles.mkv':
  Duration: 00:00:58.18, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc
    Stream #0.1(jpn): Audio: vorbis, 48000 Hz, stereo, s16
    Stream #0.2(eng): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.3(dut): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.4(eng): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.5(fin): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.6(fre): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.7(ger): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.8(heb): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.9(hun): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.10(ita): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.11(jpn): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.12(nor): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.13(pol): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.14(por): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.15(rus): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.16(spa): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.17(swe): Subtitle: [0][0][0][0] / 0x0000
[23:50:20] scan: decoding previews for title 1
Scanning title 1...
[23:50:20] scan: 10 previews, 640x480, 23.976 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 1:1
[23:50:20] scan: title (0) job->width:640, job->height:480
Scanning title 1...
[23:50:20] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: \\vmware-host\Shared Folders\TestClips\Misc\Subtitles & Captions\SSA_15subtitles.mkv
  + duration: 00:00:58
  + size: 640x480, pixel aspect: 1/1, display aspect: 1.33, 23.976 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:00:58
  + audio tracks:
    + 1, Japanese (VORBIS) (2.0 ch) (iso639-2: jpn)
  + subtitle tracks:
    + 1, English (iso639-2: eng) (Text)(SSA)
    + 2, Dutch (iso639-2: nld) (Text)(SSA)
    + 3, English (iso639-2: eng) (Text)(SSA)
    + 4, Finnish (iso639-2: fin) (Text)(SSA)
    + 5, French (iso639-2: fra) (Text)(SSA)
    + 6, German (iso639-2: deu) (Text)(SSA)
    + 7, Hebrew (iso639-2: heb) (Text)(SSA)
    + 8, Hungarian (iso639-2: hun) (Text)(SSA)
    + 9, Italian (iso639-2: ita) (Text)(SSA)
    + 10, Japanese (iso639-2: jpn) (Text)(SSA)
    + 11, Norwegian (iso639-2: nor) (Text)(SSA)
    + 12, Polish (iso639-2: pol) (Text)(SSA)
    + 13, Portuguese (iso639-2: por) (Text)(SSA)
    + 14, Russian (iso639-2: rus) (Text)(SSA)
    + 15, Spanish (iso639-2: spa) (Text)(SSA)
    + 16, Swedish (iso639-2: swe) (Text)(SSA)
[23:50:21] 1 job(s) to process
[23:50:21] starting job
[23:50:21] work: sanitizing track 0 mixdown Dolby Pro Logic II to Stereo
[23:50:21] sync: expecting 1418 video frames
[23:50:21] job configuration:
[23:50:21]  * source
[23:50:21]    + \\vmware-host\Shared Folders\TestClips\Misc\Subtitles & Captions\SSA_15subtitles.mkv
[23:50:21]    + title 1, chapter(s) 1 to 1
[23:50:21]    + container: matroska,webm
[23:50:21]  * destination
[23:50:21]    + C:\Users\Timothy\Desktop\SSA_15subtitles.m4v
[23:50:21]    + container: MPEG-4 (.mp4 and .m4v)
[23:50:21]  * video track
[23:50:21]    + decoder: mpeg4
[23:50:21]    + frame rate: same as source (around 23.976 fps)
[23:50:21]    + strict anamorphic
[23:50:21]      + storage dimensions: 640 * 480 -> 640 * 480, crop 0/0/0/0, mod 0
[23:50:21]      + pixel aspect ratio: 1 / 1
[23:50:21]      + display dimensions: 640 * 480
[23:50:21]    + encoder: x264
[23:50:21]      + options: ref=2:bframes=2:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0
[23:50:21]      + quality: 20.00 (RF)
[23:50:21]  * subtitle track 0, English (id 4) Text [SSA] -> Render/Burn in
[23:50:21]  * audio track 0
[23:50:21]    + decoder: Japanese (VORBIS) (2.0 ch) (track 1, id 1)
[23:50:21]    + mixdown: Stereo
[23:50:21]    + encoder: faac
[23:50:21]      + bitrate: 160 kbps, samplerate: 48000 Hz
[23:50:21] encx264: min-keyint: auto (23), keyint: 240
[23:50:21] encx264: encoding with stored aspect 1/1
[23:50:21] 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.0
Fontconfig error: Cannot load default config file
[23:50:21] [ass] No usable fontconfig configuration file found, using fallback.
Fontconfig error: Cannot load default config file
[23:50:21] reader: first SCR 0 id 0 DTS 0
[23:50:48] sync: adding 104 ms of silence to audio 1  start 5245380, next 5235960
[23:50:48] reader: done. 1 scr changes
[23:50:52] work: average encoding speed for job is 48.371666 fps
[23:50:52] sync: got 1395 frames, 1418 expected
[23:50:52] mpeg4-decoder done: 1395 frames, 0 decoder errors, 0 drops
[23:50:52] render: lost time: 0 (0 frames)
[23:50:52] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:15    Avg QP:15.62  size: 45042  PSNR Mean Y:47.95 U:51.87 V:51.51 Avg:48.85 Global:47.11
x264 [info]: frame P:938   Avg QP:19.40  size:  7787  PSNR Mean Y:43.44 U:47.33 V:47.12 Avg:44.33 Global:43.28
x264 [info]: frame B:442   Avg QP:20.90  size:   554  PSNR Mean Y:46.01 U:49.68 V:49.36 Avg:46.81 Global:45.73
x264 [info]: consecutive B-frames: 50.4%  6.1% 43.5%
x264 [info]: mb I  I16..4: 35.2%  0.0% 64.8%
x264 [info]: mb P  I16..4:  3.1%  0.0%  3.4%  P16..4: 36.0%  8.1%  6.2%  0.0%  0.0%    skip:43.1%
x264 [info]: mb B  I16..4:  1.7%  0.0%  0.2%  B16..8:  6.0%  1.0%  0.2%  direct: 3.1%  skip:87.9%  L0:40.6% L1:52.3% BI: 7.1%
x264 [info]: coded y,uvDC,uvAC intra: 47.1% 81.8% 58.4% inter: 10.4% 20.3% 4.9%
x264 [info]: i16 v,h,dc,p: 48% 24% 19%  8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 16% 22%  5%  6%  7%  5%  7%  5%
x264 [info]: i8c dc,h,v,p: 42% 24% 26%  9%
x264 [info]: Weighted P-Frames: Y:3.1%
x264 [info]: ref P L0: 83.1%  6.1% 10.8%  0.0%
x264 [info]: ref B L0: 86.7% 13.3%
x264 [info]: ref B L1: 91.8%  8.2%
x264 [info]: SSIM Mean Y:0.9902463 (20.108db)
x264 [info]: PSNR Mean Y:44.304 U:48.122 V:47.879 Avg:45.168 Global:43.949 kb/s:1130.93
[23:50:52] vorbis-decoder done: 0 frames, 0 decoder errors, 0 drops
[23:50:52] mux: track 0, 1395 frames, 8224583 bytes, 1128.43 kbps, fifo 8
[23:50:52] mux: track 1, 2733 frames, 1162724 bytes, 159.53 kbps, fifo 512
[23:50:52] libhb: work result = 0
Rip done!
HandBrake has exited.
MacGUI: http://paste.handbrake.fr/pastebin.php?show=1910

Code: Select all

HandBrake Activity Log for /Users/tim/Desktop/SSA_15subtitles.mp4: 2010-11-28 23:56:55 +0100
Handbrake Version: svn3688 x86_64 (2010112801)

[23:56:55] macgui: getNextPendingQueueIndex next pending encod index is:1
[23:56:55] macgui: incrementQueueItemDone new pending items found: 1
[23:56:55] macgui: scanning specifically for title: 1
[23:56:55] hb_scan: path=/Volumes/LaCieDisk/excluded/TestClips/Misc/Subtitles & Captions/SSA_15subtitles.mkv, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening /Volumes/LaCieDisk/excluded/TestClips/Misc/Subtitles & Captions/SSA_15subtitles.mkv/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(/Volumes/LaCieDisk/excluded/TestClips/Misc/Subtitles & Captions/SSA_15subtitles.mkv) failed (0x114a64000)
[23:56:55] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 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
[23:56:55] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/Volumes/LaCieDisk/excluded/TestClips/Misc/Subtitles & Captions/SSA_15subtitles.mkv':
  Duration: 00:00:58.18, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc
    Stream #0.1(jpn): Audio: vorbis, 48000 Hz, stereo, s16
    Stream #0.2(eng): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.3(dut): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.4(eng): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.5(fin): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.6(fre): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.7(ger): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.8(heb): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.9(hun): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.10(ita): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.11(jpn): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.12(nor): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.13(pol): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.14(por): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.15(rus): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.16(spa): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.17(swe): Subtitle: [0][0][0][0] / 0x0000
[23:56:55] scan: decoding previews for title 1
[23:56:55] Warning: Could not read data for preview 29, skipped
[23:56:55] Warning: Could not read data for preview 30, skipped
[23:56:55] scan: 28 previews, 640x480, 23.976 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 1:1
[23:56:55] scan: title (0) job->width:640, job->height:480
[23:56:55] libhb: scan thread found 1 valid title(s)
[23:56:56] macgui: ScanDone state received from fQueueEncodeLibhb
[23:56:56] macgui: Preset: Normal (Default)
[23:56:56] macgui: processNewQueueEncode number of passes expected is: 1
[23:56:56] macgui: Start / Stop set to chapters
[23:56:56] macgui: prepareJob exiting
[23:56:56] 1 job(s) to process
[23:56:56] starting job
[23:56:56] sync: expecting 1418 video frames
[23:56:56] job configuration:
[23:56:56]  * source
[23:56:56]    + /Volumes/LaCieDisk/excluded/TestClips/Misc/Subtitles & Captions/SSA_15subtitles.mkv
[23:56:56]    + title 1, chapter(s) 1 to 1
[23:56:56]    + container: matroska,webm
[23:56:56]  * destination
[23:56:56]    + /Users/tim/Desktop/SSA_15subtitles.mp4
[23:56:56]    + container: MPEG-4 (.mp4 and .m4v)
[23:56:56]  * video track
[23:56:56]    + decoder: mpeg4
[23:56:56]    + frame rate: same as source (around 23.976 fps)
[23:56:56]    + strict anamorphic
[23:56:56]      + storage dimensions: 640 * 480 -> 640 * 480, crop 0/0/0/0, mod 16
[23:56:56]      + pixel aspect ratio: 1 / 1
[23:56:56]      + display dimensions: 640 * 480
[23:56:56]    + encoder: x264
[23:56:56]      + options: ref=2:bframes=2:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0
[23:56:56]      + quality: 20.00 (RF)
[23:56:56]  * subtitle track 0, English (id 4) Text [SSA] -> Render/Burn in
[23:56:56]  * audio track 0
[23:56:56]    + decoder: Japanese (VORBIS) (2.0 ch) (track 1, id 1)
[23:56:56]    + mixdown: Stereo
[23:56:56]    + encoder: ca_aac
[23:56:56]      + bitrate: 160 kbps, samplerate: 48000 Hz
[23:56:56] encx264: min-keyint: auto (23), keyint: 240
[23:56:56] encx264: encoding with stored aspect 1/1
[23:56:56] encx264: Encoding at constant RF 20.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[23:56:56] reader: first SCR 0 id 0 DTS 0
x264 [info]: profile Main, level 3.0
[23:56:56] [ass] fontconfig: Selected font is not the requested one: 'Bitstream Vera Sans Bold' != 'Verdana'
[23:57:02] [ass] fontconfig: Selected font is not the requested one: 'Bitstream Vera Serif Bold' != 'Times New Roman'
[23:57:03] reader: done. 1 scr changes
[23:57:03] sync: adding 104 ms of silence to audio 1  start 5245380, next 5235960
[23:57:04] work: average encoding speed for job is 183.125870 fps
[23:57:04] sync: got 1395 frames, 1418 expected
[23:57:04] mpeg4-decoder done: 1395 frames, 0 decoder errors, 0 drops
[23:57:04] render: lost time: 0 (0 frames)
[23:57:04] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:15    Avg QP:15.64  size: 46204  PSNR Mean Y:48.11 U:51.95 V:51.54 Avg:48.99 Global:46.87
x264 [info]: frame P:935   Avg QP:19.46  size:  8015  PSNR Mean Y:43.30 U:47.12 V:46.89 Avg:44.18 Global:43.11
x264 [info]: frame B:445   Avg QP:21.05  size:   560  PSNR Mean Y:45.75 U:49.40 V:49.09 Avg:46.56 Global:45.42
x264 [info]: consecutive B-frames: 50.1%  6.2% 43.7%
x264 [info]: mb I  I16..4: 36.0%  0.0% 64.0%
x264 [info]: mb P  I16..4:  3.1%  0.0%  3.5%  P16..4: 36.0%  8.0%  6.2%  0.0%  0.0%    skip:43.2%
x264 [info]: mb B  I16..4:  1.4%  0.0%  0.1%  B16..8:  6.0%  1.0%  0.2%  direct: 3.0%  skip:88.3%  L0:42.0% L1:50.7% BI: 7.3%
x264 [info]: coded y,uvDC,uvAC intra: 48.3% 82.8% 59.5% inter: 10.5% 20.2% 5.0%
x264 [info]: i16 v,h,dc,p: 47% 25% 20%  9%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 16% 21%  5%  6%  7%  5%  7%  5%
x264 [info]: i8c dc,h,v,p: 41% 24% 25%  9%
x264 [info]: Weighted P-Frames: Y:3.4% UV:3.1%
x264 [info]: ref P L0: 82.7%  6.4% 10.9%  0.0%
x264 [info]: ref B L0: 87.0% 13.0%
x264 [info]: ref B L1: 92.0%  8.0%
x264 [info]: SSIM Mean Y:0.9902437 (20.107db)
x264 [info]: PSNR Mean Y:44.135 U:47.901 V:47.644 Avg:44.993 Global:43.754 kb/s:1159.96
[23:57:04] vorbis-decoder done: 0 frames, 0 decoder errors, 0 drops
[23:57:04] mux: track 0, 1395 frames, 8435794 bytes, 1157.41 kbps, fifo 8
[23:57:04] mux: track 1, 2733 frames, 1196783 bytes, 164.20 kbps, fifo 512
[23:57:04] libhb: work result = 0
Based on the logs, I'd say it works under Windows when the source contains an "embedded" font file (like KabutoTX's sample), but fails when the file doesn't have any font.

davidfstr
Regular User
Posts: 149
Joined: Sun Apr 12, 2009 7:41 pm

Re: [Patch] [Core] SSA burn-in support

Post by davidfstr » Tue Nov 30, 2010 3:41 am

Rodeo wrote:Based on the logs, I'd say it works under Windows when the source contains an "embedded" font file (like KabutoTX's sample), but fails when the file doesn't have any font.
Makes sense. I'll investigate in this direction.

ios
Regular User
Posts: 103
Joined: Sun Jun 06, 2010 1:48 am

Re: [Patch] [Core] SSA burn-in support

Post by ios » Fri Dec 03, 2010 6:22 am

@davidstr

ill try again to request that you add ASS/SSA soft subtitle pass-through on mkv container but using mkvmerge for it (but if handbrake doesnt use mkvmerge then you can discard this post of mine) i found out that you can just re-mux the chapters, attachments and subs on the source video to the output video like this

Code: Select all

mkvmerge -o TheNewOutputVideoReMux.mkv -S -M TheOutputVideoFromHandbrake.mkv -A -D TheInputVideoWithSubs.mkv
where:
-o output file
-S no subs
-M no attachments
-A no audio
-D no video

thanks for reading :)

User avatar
s55
HandBrake Team
Posts: 9586
Joined: Sun Dec 24, 2006 1:05 pm

Re: [Patch] [Core] SSA burn-in support

Post by s55 » Fri Dec 03, 2010 8:48 am

HandBrake does not use mkvmerge.

HotDogWolf

Re: [Patch] [Core] SSA burn-in support

Post by HotDogWolf » Thu Dec 16, 2010 2:28 am

This feature works great for the most part on OS X, just when there are subtitles displayed at the top to the right they letters overlap and it can't be read.

Here is a screen shot and log

http://oi53.tinypic.com/30xisjt.jpg

Code: Select all

[12:55:35] hb_init: checking cpu count
[12:55:35] hb_init: starting libhb thread
[12:55:35] macgui: Handbrake Version: svn3707 x86_64 (2010121301)
[12:55:35] hb_init: checking cpu count
[12:55:35] hb_init: starting libhb thread
[12:55:35] hb_init: checking cpu count
[12:55:35] hb_init: starting libhb thread
[12:55:35] macgui: hbInstances path to this instance: /Applications/HandBrake.app
[12:55:35] macgui: hbInstance found instance pidnum:17669 at path: /Applications/HandBrake.app
[12:55:35] macgui: hbInstance MATCH FOUND, our pidnum is:17669
[12:55:35] macgui: Pid for this instance:17669
[12:55:35] macgui: HBQueueController : My Pidnum is 17669
[12:55:44] macgui: trying to open video_ts folder (parent directory chosen)
[12:55:44] macgui: Preview: Disabling HUD Controls
[12:55:44] macgui: Minimum length of title for scan: 900000
[12:55:44] hb_scan: path=/Users/robertporcaro/Downloads/Macross_Frontier_(2008)_[720p,BluRay,x264]_-_THORA/Macross_Frontier_Ep01_Close_Encounter_[720p,BluRay,x264]_-_THORA.mkv, title_index=0
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening /Users/robertporcaro/Downloads/Macross_Frontier_(2008)_[720p,BluRay,x264]_-_THORA/Macross_Frontier_Ep01_Close_Encounter_[720p,BluRay,x264]_-_THORA.mkv/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(/Users/robertporcaro/Downloads/Macross_Frontier_(2008)_[720p,BluRay,x264]_-_THORA/Macross_Frontier_Ep01_Close_Encounter_[720p,BluRay,x264]_-_THORA.mkv) failed (0x1029ba600)
[12:55:44] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 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
[12:55:44] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/Users/robertporcaro/Downloads/Macross_Frontier_(2008)_[720p,BluRay,x264]_-_THORA/Macross_Frontier_Ep01_Close_Encounter_[720p,BluRay,x264]_-_THORA.mkv':
  Metadata:
    title           : Macross Frontier ep. 01 (Yack Deculture Edition)
  Duration: 00:32:14.46, start: 0.000000, bitrate: 320 kb/s
    Stream #0.0(jpn): Video: h264, yuv420p, 1280x720, PAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0.1(jpn): Audio: ac3, 48000 Hz, stereo, s16, 320 kb/s
    Stream #0.2(eng): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.3: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : MyriadPro-Regular.otf
    Stream #0.4: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : 9SALERNO.TTF
    Stream #0.5: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : arial.ttf
    Stream #0.6: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : ARLRDBD.TTF
    Stream #0.7: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : BellGothicStd-Black.otf
    Stream #0.8: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : ChaparralPro-Semibold.otf
    Stream #0.9: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : EnigmaU_2.TTF
    Stream #0.10: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : Francis.ttf
[12:55:44] scan: decoding previews for title 1
[12:55:44] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=320000 Japanese (AC3) (2.0 ch)
[12:55:45] scan: 10 previews, 1280x720, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[12:55:45] scan: title (0) job->width:1280, job->height:720
[12:55:45] libhb: scan thread found 1 valid title(s)
[12:55:45] macgui: showNewScan: This is a new source item scan
[12:55:45] macgui: Preview: Enabling HUD Controls
[12:59:37] macgui: Rip: Pending queue count is 0
[12:59:37] macgui: getNextPendingQueueIndex next pending encode index is:0
[12:59:38] macgui: scanning specifically for title: 1
[12:59:38] hb_scan: path=/Users/robertporcaro/Downloads/Macross_Frontier_(2008)_[720p,BluRay,x264]_-_THORA/Macross_Frontier_Ep01_Close_Encounter_[720p,BluRay,x264]_-_THORA.mkv, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening /Users/robertporcaro/Downloads/Macross_Frontier_(2008)_[720p,BluRay,x264]_-_THORA/Macross_Frontier_Ep01_Close_Encounter_[720p,BluRay,x264]_-_THORA.mkv/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(/Users/robertporcaro/Downloads/Macross_Frontier_(2008)_[720p,BluRay,x264]_-_THORA/Macross_Frontier_Ep01_Close_Encounter_[720p,BluRay,x264]_-_THORA.mkv) failed (0x10293a600)
[12:59:38] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 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
[12:59:38] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/Users/robertporcaro/Downloads/Macross_Frontier_(2008)_[720p,BluRay,x264]_-_THORA/Macross_Frontier_Ep01_Close_Encounter_[720p,BluRay,x264]_-_THORA.mkv':
  Metadata:
    title           : Macross Frontier ep. 01 (Yack Deculture Edition)
  Duration: 00:32:14.46, start: 0.000000, bitrate: 320 kb/s
    Stream #0.0(jpn): Video: h264, yuv420p, 1280x720, PAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0.1(jpn): Audio: ac3, 48000 Hz, stereo, s16, 320 kb/s
    Stream #0.2(eng): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.3: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : MyriadPro-Regular.otf
    Stream #0.4: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : 9SALERNO.TTF
    Stream #0.5: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : arial.ttf
    Stream #0.6: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : ARLRDBD.TTF
    Stream #0.7: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : BellGothicStd-Black.otf
    Stream #0.8: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : ChaparralPro-Semibold.otf
    Stream #0.9: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : EnigmaU_2.TTF
    Stream #0.10: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : Francis.ttf
[12:59:38] scan: decoding previews for title 1
[12:59:38] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=320000 Japanese (AC3) (2.0 ch)
[12:59:38] scan: 10 previews, 1280x720, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[12:59:38] scan: title (0) job->width:1280, job->height:720
[12:59:38] libhb: scan thread found 1 valid title(s)
[12:59:38] macgui: ScanDone state received from fQueueEncodeLibhb
[12:59:38] macgui: Preset: Custom
[12:59:38] macgui: processNewQueueEncode number of passes expected is: 1
[12:59:38] macgui: Start / Stop set to chapters
[12:59:38] macgui: prepareJob exiting
[12:59:38] 1 job(s) to process
[12:59:38] starting job
[12:59:38] sync: expecting 46404 video frames
[12:59:38] job configuration:
[12:59:38]  * source
[12:59:38]    + /Users/robertporcaro/Downloads/Macross_Frontier_(2008)_[720p,BluRay,x264]_-_THORA/Macross_Frontier_Ep01_Close_Encounter_[720p,BluRay,x264]_-_THORA.mkv
[12:59:38]    + title 1, chapter(s) 1 to 1
[12:59:38]    + container: matroska,webm
[12:59:38]    + data rate: 320 kbps
[12:59:38]  * destination
[12:59:38]    + /Users/robertporcaro/Desktop/Macross_Frontier_Ep01_Close_Encounter_[720p,BluRay,x264]_-_THORA.m4v
[12:59:38]    + container: MPEG-4 (.mp4 and .m4v)
[12:59:38]      + 64-bit formatting
[12:59:38]  * video track
[12:59:38]    + decoder: h264
[12:59:38]    + frame rate: 23.976 fps -> peak rate limited to 29.970 fps
[12:59:38]    + loose anamorphic
[12:59:38]      + storage dimensions: 1280 * 720 -> 1280 * 720, crop 0/0/0/0, mod 16
[12:59:38]      + pixel aspect ratio: 1 / 1
[12:59:38]      + display dimensions: 1280 * 720
[12:59:38]    + encoder: x264
[12:59:38]      + quality: 16.00 (RF)
[12:59:38]  * subtitle track 0, English (id 2) Text [SSA] -> Render/Burn in
[12:59:38]  * audio track 0
[12:59:38]    + decoder: Japanese (AC3) (2.0 ch) (track 1, id 1)
[12:59:38]      + bitrate: 320 kbps, samplerate: 48000 Hz
[12:59:38]    + mixdown: Stereo
[12:59:38]    + encoder: ca_aac
[12:59:38]      + bitrate: 160 kbps, samplerate: 48000 Hz
[12:59:38] encx264: min-keyint: auto (29), keyint: 300
[12:59:38] encx264: encoding with stored aspect 1/1
[12:59:38] encx264: Encoding at constant RF 16.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[12:59:39] reader: first SCR 0 id 0 DTS 0
x264 [info]: profile High, level 3.1
Fontconfig error: Cannot load default config file
[12:59:39] [ass] No usable fontconfig configuration file found, using fallback.
Fontconfig error: Cannot load default config file
No accelerated IMDCT transform found
[14:21:28] reader: done. 1 scr changes
[14:21:29] work: average encoding speed for job is 9.417531 fps
[14:21:29] sync: got 46259 frames, 46404 expected
[14:21:29] h264-decoder done: 46259 frames, 0 decoder errors, 0 drops
[14:21:29] render: 46259 frames output, 0 dropped and 0 duped for CFR/PFR
[14:21:29] render: lost time: 0 (0 frames)
[14:21:29] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:721   Avg QP:11.98  size:102651  PSNR Mean Y:51.92 U:56.71 V:56.75 Avg:52.94 Global:52.29
x264 [info]: frame P:21642 Avg QP:15.27  size: 28364  PSNR Mean Y:48.89 U:52.97 V:53.01 Avg:49.81 Global:49.14
x264 [info]: frame B:23896 Avg QP:17.63  size:  4797  PSNR Mean Y:49.72 U:54.83 V:54.78 Avg:50.76 Global:49.78
x264 [info]: consecutive B-frames: 24.5% 14.0%  7.7% 53.8%
x264 [info]: mb I  I16..4: 14.7% 69.0% 16.3%
x264 [info]: mb P  I16..4:  3.0% 11.1%  2.4%  P16..4: 31.7% 18.2%  9.8%  0.0%  0.0%    skip:23.9%
x264 [info]: mb B  I16..4:  0.1%  0.3%  0.1%  B16..8: 32.2%  3.7%  0.8%  direct: 1.7%  skip:61.1%  L0:44.2% L1:49.6% BI: 6.2%
x264 [info]: 8x8 transform intra:67.7% inter:69.8%
x264 [info]: coded y,uvDC,uvAC intra: 73.3% 84.4% 63.0% inter: 18.2% 19.4% 3.1%
x264 [info]: i16 v,h,dc,p: 28% 15%  9% 48%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 18% 26%  6%  7%  6%  8%  7%  8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 18% 24%  6%  9%  7%  7%  5%  4%
x264 [info]: i8c dc,h,v,p: 48% 20% 16% 15%
x264 [info]: Weighted P-Frames: Y:2.8% UV:2.0%
x264 [info]: ref P L0: 63.6%  8.5% 17.6% 10.1%  0.2%
x264 [info]: ref B L0: 82.5% 14.1%  3.5%
x264 [info]: ref B L1: 93.3%  6.7%
x264 [info]: SSIM Mean Y:0.9932521 (21.708db)
x264 [info]: PSNR Mean Y:49.367 U:53.989 V:53.980 Avg:50.350 Global:49.498 kb/s:3327.51
[14:21:29] mux: track 0, 46259 frames, 802485863 bytes, 3318.69 kbps, fifo 8
[14:21:29] mux: track 1, 90679 frames, 39626815 bytes, 163.88 kbps, fifo 512
[14:21:29] libhb: work result = 0
[14:21:30] macgui: incrementQueueItemDone there are no more pending encodes

davidfstr
Regular User
Posts: 149
Joined: Sun Apr 12, 2009 7:41 pm

Re: [Patch] [Core] SSA burn-in support

Post by davidfstr » Thu Dec 16, 2010 5:33 pm

Thanks. Looks like some smart bit of code is moving around letters that are too close to the edge. Added to my bug list.

Now I just need to find some time to fix it.

Post Reply