subtitle problem with sn2592

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
zorglou
Posts: 6
Joined: Sun Oct 26, 2008 11:05 pm

subtitle problem with sn2592

Post by zorglou »

Hello
very good job for this release !! and many thanks
the subtitle work very well for me, but i have still a problem (sorry for my so poor english)
i make MKV/x264 with 2 languages and subtitle, work fine with Plex and VLC but the subtitle are near the middle of the movie ! It is possible to decide the position of the subtitle during the encoding ?
I encode with anamorphic strict : is that the problem for the subtitle ?
Thank you again

Code: Select all

[10:55:01] pgc_id: 4, pgn: 1: pgc: 0x18679380
[10:55:01] scan: vts=1, ttn=4, cells=0->0, blocks=3403955->3418250, 14296 blocks
[10:55:01] scan: duration is 00:00:58 (58120 ms)
[10:55:01] scan: checking audio 1
[10:55:01] scan: audio channel is not active
[10:55:01] scan: checking audio 2
[10:55:01] scan: audio channel is not active
[10:55:01] scan: checking audio 3
[10:55:01] scan: id=83bd, lang=English (AC3), 3cc=eng ext=0
[10:55:01] scan: checking subtitle 1
[10:55:01] scan: id=20bd, lang=English, 3cc=eng
[10:55:01] scan: checking subtitle 2
[10:55:01] scan: id=21bd, lang=Francais, 3cc=fra
[10:55:01] scan: checking subtitle 3
[10:55:01] scan: id=22bd, lang=Nederlands, 3cc=nld
[10:55:01] scan: checking subtitle 4
[10:55:01] scan: id=23bd, lang=Arabic, 3cc=ara
[10:55:01] scan: checking subtitle 5
[10:55:01] scan: id=24bd, lang=English, 3cc=eng
[10:55:01] scan: checking subtitle 6
[10:55:01] scan: id=25bd, lang=Francais, 3cc=fra
[10:55:01] scan: title 4 has 1 chapters
[10:55:01] scan: chap 1 c=0->0, b=3403955->3418250 (14296), 58120 ms
[10:55:01] scan: aspect = 0
[10:55:01] scan: decoding previews for title 1
[10:55:02] scan: title angle(s) 1
[10:55:02] scan: audio 0x81bd: AC-3, rate=48000Hz, bitrate=384000 Francais (AC3) (5.1 ch)
[10:55:02] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)
[10:55:03] scan: 10 previews, 720x576, 25.000 fps, autocrop = 76/76/0/0, aspect 16:9, PAR 64:45
[10:55:03] scan: decoding previews for title 2
[10:55:03] scan: title angle(s) 1
[10:55:03] scan: audio 0x81bd: AC-3, rate=48000Hz, bitrate=384000 Francais (AC3) (5.1 ch)
[10:55:03] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)
[10:55:04] scan: 10 previews, 720x576, 25.000 fps, autocrop = 8/0/0/2, aspect 16:9, PAR 64:45
[10:55:04] scan: decoding previews for title 3
[10:55:04] scan: title angle(s) 1
[10:55:04] scan: audio 0x81bd: AC-3, rate=48000Hz, bitrate=384000 Francais (AC3) (5.1 ch)
[10:55:04] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)
[10:55:04] scan: 10 previews, 720x576, 25.000 fps, autocrop = 76/76/0/0, aspect 16:9, PAR 64:45
[10:55:04] scan: decoding previews for title 4
[10:55:04] scan: title angle(s) 1
[10:55:04] scan: audio 0x83bd: AC-3, rate=48000Hz, bitrate=192000 English (AC3) (Dolby Surround)
[10:55:05] scan: 10 previews, 720x576, 25.000 fps, autocrop = 70/70/4/4, aspect 16:9, PAR 64:45
[10:55:05] scan: title (0) job->width:720, job->height:304
[10:55:05] scan: title (1) job->width:720, job->height:400
[10:55:05] scan: title (2) job->width:720, job->height:304
[10:55:05] scan: title (3) job->width:720, job->height:304
[10:55:05] libhb: scan thread found 4 valid title(s)
[10:55:05] macgui: ScanDone state received from fHandle
[10:55:52] macgui: Rip: Pending queue count is 0
[10:55:52] macgui: Rip: No pending jobs, so sending this one to doAddToQueue
[10:55:52] macgui: Rip: Going right to performNewQueueScan
[10:55:52] macgui: scanning specifically for title: 1
[10:55:52] macgui: performNewQueueScan currentQueueEncodeIndex is: 0
[10:55:52] hb_scan: path=/Users/apple/Movies/FullDisc/TROY, title_index=1
[10:55:52] scan: trying to open with libdvdread
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdread: Couldn't find device name.
[10:55:52] scan: DVD has 4 title(s)
[10:55:52] scan: scanning title 1
[10:55:52] scan: opening IFO for VTS 1
[10:55:52] pgc_id: 1, pgn: 1: pgc: 0x186709d0
[10:55:52] scan: vts=1, ttn=1, cells=0->47, blocks=3953->3403954, 3398938 blocks
[10:55:52] scan: duration is 02:36:06 (9366000 ms)
[10:55:52] scan: checking audio 1
[10:55:52] scan: id=80bd, lang=English (AC3), 3cc=eng ext=0
[10:55:52] scan: checking audio 2
[10:55:52] scan: id=81bd, lang=Francais (AC3), 3cc=fra ext=0
[10:55:52] scan: checking audio 3
[10:55:52] scan: audio channel is not active
[10:55:52] scan: checking subtitle 1
[10:55:52] scan: id=20bd, lang=English, 3cc=eng
[10:55:52] scan: checking subtitle 2
[10:55:52] scan: id=21bd, lang=Francais, 3cc=fra
[10:55:52] scan: checking subtitle 3
[10:55:52] scan: id=22bd, lang=Nederlands, 3cc=nld
[10:55:52] scan: checking subtitle 4
[10:55:52] scan: id=23bd, lang=Arabic, 3cc=ara
[10:55:52] scan: checking subtitle 5
[10:55:52] scan: id=24bd, lang=English, 3cc=eng
[10:55:52] scan: checking subtitle 6
[10:55:52] scan: id=25bd, lang=Francais, 3cc=fra
[10:55:52] scan: title 1 has 44 chapters
[10:55:52] scan: chap 1 c=0->3, b=3953->78939 (73923), 116194 ms
[10:55:52] scan: chap 2 c=4->4, b=78940->176653 (97714), 271687 ms
[10:55:52] scan: chap 3 c=5->5, b=176654->232170 (55517), 151346 ms
[10:55:52] scan: chap 4 c=6->6, b=232171->331172 (99002), 297696 ms
[10:55:52] scan: chap 5 c=7->7, b=331173->426303 (95131), 282663 ms
[10:55:52] scan: chap 6 c=8->8, b=426304->460742 (34439), 104436 ms
[10:55:52] scan: chap 7 c=9->9, b=460743->526229 (65487), 187451 ms
[10:55:52] scan: chap 8 c=10->10, b=526230->583097 (56868), 167310 ms
[10:55:52] scan: chap 9 c=11->11, b=583098->644535 (61438), 164496 ms
[10:55:52] scan: chap 10 c=12->12, b=644536->707929 (63394), 190615 ms
[10:55:52] scan: chap 11 c=13->13, b=707930->830853 (122924), 338757 ms
[10:55:52] scan: chap 12 c=14->14, b=830854->930377 (99524), 261451 ms
[10:55:52] scan: chap 13 c=15->15, b=930378->1026453 (96076), 280500 ms
[10:55:52] scan: chap 14 c=16->16, b=1026454->1099141 (72688), 212398 ms
[10:55:52] scan: chap 15 c=17->17, b=1099142->1182393 (83252), 246649 ms
[10:55:52] scan: chap 16 c=18->18, b=1182394->1250562 (68169), 206599 ms
[10:55:52] scan: chap 17 c=19->19, b=1250563->1305373 (54811), 166449 ms
[10:55:52] scan: chap 18 c=20->20, b=1305374->1343165 (37792), 114421 ms
[10:55:52] scan: chap 19 c=21->21, b=1343166->1444672 (101507), 245568 ms
[10:55:52] scan: chap 20 c=22->22, b=1444673->1514463 (69791), 183374 ms
[10:55:52] scan: chap 21 c=23->23, b=1514464->1612871 (98408), 264726 ms
[10:55:52] scan: chap 22 c=24->24, b=1612872->1705235 (92364), 207521 ms
[10:55:52] scan: chap 23 c=25->25, b=1705236->1773105 (67870), 149263 ms
[10:55:52] scan: chap 24 c=26->27, b=1773106->1845287 (72182), 220360 ms
[10:55:52] scan: chap 25 c=28->28, b=1845288->1922171 (76884), 324656 ms
[10:55:52] scan: chap 26 c=29->29, b=1922172->2028237 (106066), 242653 ms
[10:55:52] scan: chap 27 c=30->30, b=2028238->2104043 (75806), 224696 ms
[10:55:52] scan: chap 28 c=31->31, b=2104044->2223005 (118962), 251517 ms
[10:55:52] scan: chap 29 c=32->32, b=2223006->2270797 (47792), 102293 ms
[10:55:52] scan: chap 30 c=33->33, b=2270798->2327091 (56294), 195422 ms
[10:55:52] scan: chap 31 c=34->34, b=2327092->2472726 (145635), 327731 ms
[10:55:52] scan: chap 32 c=35->35, b=2472727->2536348 (63622), 138527 ms
[10:55:52] scan: chap 33 c=36->36, b=2536349->2624850 (88502), 185488 ms
[10:55:52] scan: chap 34 c=37->37, b=2624851->2678819 (53969), 121432 ms
[10:55:52] scan: chap 35 c=38->38, b=2678820->2763958 (85139), 338547 ms
[10:55:52] scan: chap 36 c=39->39, b=2763959->2797591 (33633), 116194 ms
[10:55:52] scan: chap 37 c=40->40, b=2797592->2865547 (67956), 207471 ms
[10:55:52] scan: chap 38 c=41->41, b=2865548->2951236 (85689), 182293 ms
[10:55:52] scan: chap 39 c=42->42, b=2951237->3044497 (93261), 233710 ms
[10:55:52] scan: chap 40 c=43->43, b=3044498->3087913 (43416), 123344 ms
[10:55:52] scan: chap 41 c=44->44, b=3087914->3151417 (63504), 173510 ms
[10:55:52] scan: chap 42 c=45->45, b=3151418->3214564 (63147), 173500 ms
[10:55:52] scan: chap 43 c=46->46, b=3214565->3251854 (37290), 106219 ms
[10:55:52] scan: chap 44 c=47->47, b=3251855->3403954 (152100), 564846 ms
[10:55:52] scan: aspect = 0
[10:55:52] scan: decoding previews for title 1
[10:55:52] scan: title angle(s) 1
[10:55:52] scan: audio 0x81bd: AC-3, rate=48000Hz, bitrate=384000 Francais (AC3) (5.1 ch)
[10:55:52] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)
[10:55:52] scan: 10 previews, 720x576, 25.000 fps, autocrop = 76/76/0/0, aspect 16:9, PAR 64:45
[10:55:52] scan: title (0) job->width:720, job->height:304
[10:55:52] libhb: scan thread found 1 valid title(s)
[10:55:53] macgui: ScanDone state received from fQueueEncodeLibhb
[10:55:53] macgui: Preset: Custom
[10:55:53] macgui: processNewQueueEncode number of passes expected is: 1
[10:55:53] macgui: Setting Subtitle: ½ 
[10:55:53] macgui: prepareJob audiotrack 2 is: 1
[10:55:53] macgui: prepareJob exiting
[10:55:53] 1 job(s) to process
[10:55:53] starting job
[10:55:53] job configuration:
[10:55:53]  * source
[10:55:53]    + /Users/apple/Movies/FullDisc/TROY
[10:55:53]    + title 1, chapter(s) 1 to 44
[10:55:53]  * destination
[10:55:53]    + /Users/apple/Desktop/TROY-1.mkv
[10:55:53]    + container: Matroska (.mkv)
[10:55:53]      + chapter markers
[10:55:53]  * video track
[10:55:53]    + decoder: mpeg2
[10:55:53]      + bitrate 7500 kbps
[10:55:53]    + frame rate: same as source (around 25.000 fps)
[10:55:53]    + strict anamorphic
[10:55:53]      + modulus: 0
[10:55:53]      + storage dimensions: 720 * 576 -> 720 * 424, crop 76/76/0/0
[10:55:53]      + pixel aspect ratio: 64 / 45
[10:55:53]      + display dimensions: 1024 * 424
[10:55:53]    + encoder: x264
[10:55:53]      + options: ref=2:bframes=2:me=umh
[10:55:53]      + bitrate: 1500 kbps, pass: 0
[10:55:53]  * subtitle track 1, English (id 20bd) Picture [VOBSUB] -> Pass-Through 
[10:55:53]  * audio track 0
[10:55:53]    + decoder: English (AC3) (5.1 ch) (track 1, id 80bd)
[10:55:53]      + bitrate: 384 kbps, samplerate: 48000 Hz
[10:55:53]    + mixdown: Dolby Pro Logic II
[10:55:53]    + encoder: faac
[10:55:53]      + bitrate: 128 kbps, samplerate: 48000 Hz
[10:55:53]  * audio track 1
[10:55:53]    + decoder: Francais (AC3) (5.1 ch) (track 2, id 81bd)
[10:55:53]      + bitrate: 384 kbps, samplerate: 48000 Hz
[10:55:53]    + mixdown: Dolby Pro Logic II
[10:55:53]    + dynamic range compression: 1.000000
[10:55:53]    + encoder: faac
[10:55:53]      + bitrate: 128 kbps, samplerate: 48000 Hz
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdread: Couldn't find device name.
[10:55:53] encx264: encoding with stored aspect 64/45
x264 [warning]: width or height not divisible by 16 (720x424), compression will suffer.
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile Main, level 3.0
No accelerated IMDCT transform found
[10:55:53] reader: first SCR 184
[10:55:53] mpeg2: "Chapter  1" (1) at frame 0 time 10800
No accelerated IMDCT transform found
[10:55:53] sync: expecting 234175 video frames
[10:55:53] sync: first pts is 10800
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: subtitle problem with sn2592

Post by JohnAStebbins »

We pass the subtitles through with no modification. There is no way to change the subtitle position. vobsubs have a relatively complex instruction code that says when and where to show the subtitle. Decoding those instructions and re-coding them for new positions was more effort than I wanted to put into it and would have been very error prone. The player is given the dimensions of the original frame and the position of the subtitle in the original frame. It also knows the the dimensions of the resulting encoded video. So it should be able to make an intelligent decision about where to place the subtitle. Unfortunately, several players do a straight linear scale horiz and vert to calculate the position. A better method would be to note the obvious that the horiz and vert scale are not the same and assume the more common case of cropped video. Then pick the dimension that is not cropped and use it's scale.

Anyway, if you really want the subtitles in their original positions, you can set cropping to 0. This isn't usually recommended because encoding black bars is wasteful and/or affects video quality. But it's all you can really do if your player isn't cooperating.
Post Reply