Quick subtitle question

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
nickae
Posts: 6
Joined: Fri May 29, 2020 8:41 am

Quick subtitle question

Post by nickae »

Hi all.
Please excuse me if this has been answered before - I did try finding an answer but couldn't, surprisingly.

When I rip Ronin BluRay, the foreign audio scan doesn't pick up the foreign subtitle track, I guess because there is a fair amount of it during the film.
There are 2 English subtitle tracks - track 1 is the whole dialogue, and track 10 is the English translation of the foreign dialogue.
If I manually select both, with track 10 burnt in, I do get the foreign dialogue ones ok, but when I select track 1 in VLC, during those sections, I obviously get the subtitles twice, and since they are offset they obscure each other.

What's the best way to handle this? I guess I could deselect Burn In for track 10, rename it Foreign Dialogue or something, and then select one or the other in VLC, but I just wondered if there is a more elegant solution? I guess the ideal way would be to somehow remove the subtitles from track 1 whenever there is one shown in track 10, but I'm not sure HB can do that, and I don't hugely fancy manually editing subtitle files.

I've attached the log below, just in case it is of any use, and will attempt to post a screen grab.

Many thanks

Nick


https://i.imgur.com/xYcmQZU.png

Code: Select all

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.19041.0
CPU: Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
Ram: 16260 MB, 
GPU Information:
  Intel(R) HD Graphics 4600 - 20.19.15.4835
Screen: 3440x1440
Temp Dir: C:\Users\Nick\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Nick\AppData\Roaming\HandBrake

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


# Starting Encode ...

[09:42:37] base preset: DVD, no subtitle scan
[21:42:37] hb_init: starting libhb thread
[21:42:37] Starting work at: Fri Oct 09 21:42:37 2020
[21:42:37] 1 job(s) to process
[21:42:37] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": "copy:dts",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [],
    "FallbackEncoder": "none"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      },
      {
        "Name": "Chapter 13"
      },
      {
        "Name": "Chapter 14"
      },
      {
        "Name": "Chapter 15"
      },
      {
        "Name": "Chapter 16"
      },
      {
        "Name": "Chapter 17"
      },
      {
        "Name": "Chapter 18"
      },
      {
        "Name": "Chapter 19"
      },
      {
        "Name": "Chapter 20"
      },
      {
        "Name": "Chapter 21"
      },
      {
        "Name": "Chapter 22"
      },
      {
        "Name": "Chapter 23"
      },
      {
        "Name": "Chapter 24"
      },
      {
        "Name": "Chapter 25"
      },
      {
        "Name": "Chapter 26"
      },
      {
        "Name": "Chapter 27"
      },
      {
        "Name": "Chapter 28"
      },
      {
        "Name": "Chapter 29"
      },
      {
        "Name": "Chapter 30"
      },
      {
        "Name": "Chapter 31"
      },
      {
        "Name": "Chapter 32"
      },
      {
        "Name": "Chapter 33"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "N:\\Videos\\Ronin F1-5.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "40",
          "block-width": "16",
          "filter-mode": "2",
          "mode": "3",
          "motion-thresh": "1",
          "spatial-metric": "2",
          "spatial-thresh": "1"
        }
      },
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "134",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "134",
          "height": "812",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/1080000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 22,
      "End": 22
    },
    "Title": 5,
    "Path": "D:\\"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      },
      {
        "Burn": true,
        "Default": false,
        "Forced": false,
        "ID": 10,
        "Offset": 0,
        "Track": 9
      }
    ]
  },
  "Video": {
    "Encoder": "x264",
    "Level": "3.1",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "medium",
    "Profile": "main",
    "Quality": 20.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[21:42:37] CPU: Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
[21:42:37]  - Intel microarchitecture Haswell
[21:42:37]  - logical processor count: 4
[21:42:37] Intel Quick Sync Video support: yes
[21:42:37]  - Intel Media SDK hardware: API 1.20 (minimum: 1.3)
[21:42:37]  - H.264 encoder: yes
[21:42:37]     - preferred implementation: hardware (any) via D3D11
[21:42:37]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[21:42:37]  - H.265 encoder: no
[21:42:37] hb_scan: path=D:\, title_index=5
[21:42:37] scan: BD has 16 title(s)
[21:42:37] bd: scanning title 5
[21:42:37] bd: playlist 00019.MPLS
[21:42:37] bd: duration is 02:01:33 (7293786 ms)
[21:42:37] bd: video id=0x1011, stream type=MPEG2, format 1080p
[21:42:37] bd: aspect = 16:9
[21:42:37] bd: audio id=0x711100, lang=English (DTS), 3cc=eng
[21:42:37] bd: audio id=0x1100, lang=English (DTS-HD MA), 3cc=eng
[21:42:37] bd: audio id=0x1101, lang=italiano (DTS), 3cc=ita
[21:42:37] bd: audio id=0x1102, lang=español (DTS), 3cc=spa
[21:42:37] bd: subtitle id=0x1200, lang=English [PGS], 3cc=eng
[21:42:37] bd: subtitle id=0x1201, lang=italiano [PGS], 3cc=ita
[21:42:37] bd: subtitle id=0x1202, lang=italiano [PGS], 3cc=ita
[21:42:37] bd: subtitle id=0x1203, lang=español [PGS], 3cc=spa
[21:42:37] bd: subtitle id=0x1204, lang=español [PGS], 3cc=spa
[21:42:37] bd: subtitle id=0x1205, lang=dansk [PGS], 3cc=dan
[21:42:37] bd: subtitle id=0x1206, lang=suomi [PGS], 3cc=fin
[21:42:37] bd: subtitle id=0x1207, lang=norsk [PGS], 3cc=nor
[21:42:37] bd: subtitle id=0x1208, lang=svenska [PGS], 3cc=swe
[21:42:37] bd: subtitle id=0x1209, lang=English [PGS], 3cc=eng
[21:42:37] bd: chap 1, 421796 ms
[21:42:37] bd: chap 2, 207165 ms
[21:42:37] bd: chap 3, 294377 ms
[21:42:37] bd: chap 4, 118743 ms
[21:42:37] bd: chap 5, 92967 ms
[21:42:37] bd: chap 6, 317734 ms
[21:42:37] bd: chap 7, 127877 ms
[21:42:37] bd: chap 8, 59476 ms
[21:42:37] bd: chap 9, 242033 ms
[21:42:37] bd: chap 10, 152318 ms
[21:42:37] bd: chap 11, 325408 ms
[21:42:37] bd: chap 12, 119452 ms
[21:42:37] bd: chap 13, 242367 ms
[21:42:37] bd: chap 14, 269519 ms
[21:42:37] bd: chap 15, 104604 ms
[21:42:37] bd: chap 16, 179721 ms
[21:42:37] bd: chap 17, 176676 ms
[21:42:37] bd: chap 18, 80997 ms
[21:42:37] bd: chap 19, 148106 ms
[21:42:37] bd: chap 20, 463254 ms
[21:42:37] bd: chap 21, 343676 ms
[21:42:37] bd: chap 22, 317775 ms
[21:42:37] bd: chap 23, 235443 ms
[21:42:37] bd: chap 24, 183850 ms
[21:42:37] bd: chap 25, 478978 ms
[21:42:37] bd: chap 26, 267600 ms
[21:42:37] bd: chap 27, 353186 ms
[21:42:37] bd: chap 28, 237153 ms
[21:42:37] bd: chap 29, 147147 ms
[21:42:37] bd: chap 30, 116991 ms
[21:42:37] bd: chap 31, 136177 ms
[21:42:37] bd: chap 32, 330955 ms
[21:42:37] bd: chap 33, 250 ms
[21:42:37] bd: title 5 has 33 chapters
[21:42:37] scan: decoding previews for title 5
[21:42:37] scan: title angle(s) 1
[21:42:37] scan: audio 0x711100: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[21:42:37] scan: audio 0x1100: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[21:42:37] scan: audio 0x1101: dca, rate=48000Hz, bitrate=768000 italiano (DTS) (5.1 ch) (768 kbps)
[21:42:37] scan: audio 0x1102: dca, rate=48000Hz, bitrate=768000 español (DTS) (5.1 ch) (768 kbps)
[21:42:38] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 134/134/0/0, aspect 16:9, PAR 1:1
[21:42:38] stream: 7 good frames, 0 errors (0%)
[21:42:38] libhb: scan thread found 1 valid title(s)
[21:42:38] Starting Task: Encoding Pass
[21:42:38] work: only 1 chapter, disabling chapter markers
[21:42:38] job configuration:
[21:42:38]  * source
[21:42:38]    + D:\
[21:42:38]    + title 5, chapter(s) 22 to 22
[21:42:38]  * destination
[21:42:38]    + N:\Videos\Ronin F1-5.mkv
[21:42:38]    + container: Matroska (libavformat)
[21:42:38]  * video track
[21:42:38]    + decoder: mpeg2video
[21:42:38]      + bitrate 200 kbps
[21:42:38]    + filters
[21:42:38]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[21:42:38]      + Decomb (mode=39)
[21:42:38]      + Framerate Shaper (mode=2:rate=27000000/1080000)
[21:42:38]        + frame rate: 23.976 fps -> peak rate limited to 25.000 fps
[21:42:38]      + Subtitle renderer ()
[21:42:38]      + Crop and Scale (width=1920:height=812:crop-top=134:crop-bottom=134:crop-left=0:crop-right=0)
[21:42:38]        + source: 1920 * 1080, crop (134/134/0/0): 1920 * 812, scale: 1920 * 812
[21:42:38]    + Output geometry
[21:42:38]      + storage dimensions: 1920 x 812
[21:42:38]      + pixel aspect ratio: 1 : 1
[21:42:38]      + display dimensions: 1920 x 812
[21:42:38]    + encoder: H.264 (libx264)
[21:42:38]      + preset:  medium
[21:42:38]      + profile: main
[21:42:38]      + level:   3.1
[21:42:38]      + quality: 20.00 (RF)
[21:42:38]      + color profile: 1-1-1
[21:42:38]  * subtitle track 1, English [PGS] (track 0, id 0x1200, Picture) -> Passthrough
[21:42:38]  * subtitle track 2, English [PGS] (track 9, id 0x1209, Picture) -> Render/Burn-in
[21:42:38]  * audio track 1
[21:42:38]    + decoder: English (DTS) (5.1 ch) (1536 kbps) (track 1, id 0x711100)
[21:42:38]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[21:42:38]    + DTS Passthru
[21:42:38] sync: expecting 7619 video frames
[21:42:38] encx264: min-keyint: 24, keyint: 240
[21:42:38] encx264: encoding at constant RF 20.000000
[21:42:38] apply_h264_level [warning]: frame size (1920x816, 6120 macroblocks) too high for level 3.1 (max. 3600 macroblocks)
[21:42:38] encx264: unparsed options: level=3.1:ref=2:b-pyramid=none:8x8dct=0:vbv-bufsize=14000:vbv-maxrate=14000
x264 [info]: using SAR=1/1
x264 [warning]: frame MB size (120x51) > level limit (3600)
x264 [warning]: MB rate (146733) > level limit (108000)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.1, 4:2:0, 8-bit
[21:42:39] sync: first pts audio 0x711100 is 0
[21:42:39] sync: first pts video is 37271
[21:42:39] sync: "Chapter 22" (22) at frame 1 time 37271
[21:43:01] sync: first pts subtitle 0x1200 is 1906638
[21:47:04] sync: first pts subtitle 0x1209 is 17090557
[21:50:01] reader: end of chapter 22 (media 22) reached at media chapter 23
[21:50:01] reader: done. 2 scr changes
[21:50:13] work: average encoding speed for job is 17.071533 fps
[21:50:13] comb detect: heavy 13 | light 81 | uncombed 7525 | total 7619
[21:50:13] decomb: deinterlaced 13 | blended 81 | unfiltered 7525 | total 7619
[21:50:13] vfr: 7619 frames output, 0 dropped and 0 duped for CFR/PFR
[21:50:13] vfr: lost time: 0 (0 frames)
[21:50:13] vfr: gained time: 0 (0 frames) (0 not accounted for)
[21:50:13] stream: 7620 good frames, 0 errors (0%)
[21:50:13] dca-decoder done: 29787 frames, 0 decoder errors
[21:50:13] mpeg2video-decoder done: 7619 frames, 0 decoder errors
[21:50:13] sync: got 7619 frames, 7619 expected
[21:50:13] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
x264 [info]: frame I:73    Avg QP:17.77  size:121962
x264 [info]: frame P:2596  Avg QP:20.66  size: 43566
x264 [info]: frame B:4950  Avg QP:22.07  size: 21836
x264 [info]: consecutive B-frames: 13.0%  0.5%  1.6% 84.8%
x264 [info]: mb I  I16..4: 15.2%  0.0% 84.8%
x264 [info]: mb P  I16..4:  1.1%  0.0%  3.9%  P16..4: 55.7% 23.4% 12.8%  0.0%  0.0%    skip: 3.1%
x264 [info]: mb B  I16..4:  0.1%  0.0%  0.3%  B16..8: 61.1%  7.2%  1.1%  direct: 8.3%  skip:21.9%  L0:44.8% L1:53.1% BI: 2.2%
x264 [info]: coded y,uvDC,uvAC intra: 91.9% 73.8% 21.9% inter: 36.2% 45.9% 0.1%
x264 [info]: i16 v,h,dc,p: 20% 10% 13% 58%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 12% 19%  8%  8%  9%  6%  7%  4%
x264 [info]: i8c dc,h,v,p: 56% 15% 25%  4%
x264 [info]: Weighted P-Frames: Y:4.5% UV:0.7%
x264 [info]: ref P L0: 61.8% 14.2% 23.5%  0.6%
x264 [info]: kb/s:5792.40
[21:50:14] mux: track 0, 7619 frames, 230083050 bytes, 5784.74 kbps, fifo 512
[21:50:14] mux: track 1, 29787 frames, 59931444 bytes, 1506.80 kbps, fifo 2048
[21:50:14] mux: track 2, 110 frames, 988458 bytes, 24.85 kbps, fifo 16
[21:50:14] Finished work at: Fri Oct 09 21:50:14 2020
[21:50:14] libhb: work result = 0

# Encode Completed ...
Last edited by Rodeo on Fri Oct 09, 2020 9:40 pm, edited 1 time in total.
Reason: Logs in between [code][/code] blocks please
Woodstock
Veteran User
Posts: 3790
Joined: Tue Aug 27, 2013 6:39 am

Re: Quick subtitle question

Post by Woodstock »

Do you have a log where you actually had handbrake do a foreign audio scan? The FAS counts subtitles in each track, and it will report what it found in the log... but it wasn't used for the encode posted here.

And your picture shows just what you asked for - a burned in subtitle, with a passed-through subtitle over the top.

By the way - most player will display whatever the FIRST subtitle track is in the file, so if you don't burn one in, make sure the one you want to display by default is listed first in the subtitle selections.
nickae
Posts: 6
Joined: Fri May 29, 2020 8:41 am

Re: Quick subtitle question

Post by nickae »

Thanks for your reply, and apologies; here is a a rip with FAS selected.

Just to be clear, my question is not so much about FAS not picking up the track - I can manually do that. More, a general question about what folks tend to do in this situation.
If I play the disc in VLC, by default I get the foreign audio. If I select subtitles on, I get the full dialogue, but obviously with no doubling up during foreign dialogue. It would be great if there was a way to make that behaviour happen in the MKV.

Code: Select all

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.19041.0
CPU: Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
Ram: 16260 MB, 
GPU Information:
  Intel(R) HD Graphics 4600 - 20.19.15.4835
Screen: 3440x1440
Temp Dir: C:\Users\Nick\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Nick\AppData\Roaming\HandBrake

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


# Starting Encode ...

[10:04:08] base preset: DVD, AC3 passthru
[10:04:08] hb_init: starting libhb thread
[10:04:08] Starting work at: Sat Oct 10 10:04:08 2020
[10:04:08] 1 job(s) to process
[10:04:08] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": "copy:dts",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [],
    "FallbackEncoder": "none"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      },
      {
        "Name": "Chapter 13"
      },
      {
        "Name": "Chapter 14"
      },
      {
        "Name": "Chapter 15"
      },
      {
        "Name": "Chapter 16"
      },
      {
        "Name": "Chapter 17"
      },
      {
        "Name": "Chapter 18"
      },
      {
        "Name": "Chapter 19"
      },
      {
        "Name": "Chapter 20"
      },
      {
        "Name": "Chapter 21"
      },
      {
        "Name": "Chapter 22"
      },
      {
        "Name": "Chapter 23"
      },
      {
        "Name": "Chapter 24"
      },
      {
        "Name": "Chapter 25"
      },
      {
        "Name": "Chapter 26"
      },
      {
        "Name": "Chapter 27"
      },
      {
        "Name": "Chapter 28"
      },
      {
        "Name": "Chapter 29"
      },
      {
        "Name": "Chapter 30"
      },
      {
        "Name": "Chapter 31"
      },
      {
        "Name": "Chapter 32"
      },
      {
        "Name": "Chapter 33"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "N:\\Videos\\Ronin F1-5(1).mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "40",
          "block-width": "16",
          "filter-mode": "2",
          "mode": "3",
          "motion-thresh": "1",
          "spatial-metric": "2",
          "spatial-thresh": "1"
        }
      },
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "134",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "134",
          "height": "812",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/1080000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 22,
      "End": 22
    },
    "Title": 5,
    "Path": "D:\\"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 10,
        "Offset": 0,
        "Track": 9
      }
    ]
  },
  "Video": {
    "Encoder": "x264",
    "Level": "3.1",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "medium",
    "Profile": "main",
    "Quality": 20.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[10:04:08] CPU: Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
[10:04:08]  - Intel microarchitecture Haswell
[10:04:08]  - logical processor count: 4
[10:04:08] Intel Quick Sync Video support: yes
[10:04:08]  - Intel Media SDK hardware: API 1.20 (minimum: 1.3)
[10:04:08]  - H.264 encoder: yes
[10:04:08]     - preferred implementation: hardware (any) via D3D11
[10:04:08]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[10:04:08]  - H.265 encoder: no
[10:04:08] hb_scan: path=D:\, title_index=5
[10:04:08] scan: BD has 16 title(s)
[10:04:08] bd: scanning title 5
[10:04:08] bd: playlist 00019.MPLS
[10:04:08] bd: duration is 02:01:33 (7293786 ms)
[10:04:08] bd: video id=0x1011, stream type=MPEG2, format 1080p
[10:04:08] bd: aspect = 16:9
[10:04:08] bd: audio id=0x711100, lang=English (DTS), 3cc=eng
[10:04:08] bd: audio id=0x1100, lang=English (DTS-HD MA), 3cc=eng
[10:04:08] bd: audio id=0x1101, lang=italiano (DTS), 3cc=ita
[10:04:08] bd: audio id=0x1102, lang=español (DTS), 3cc=spa
[10:04:08] bd: subtitle id=0x1200, lang=English [PGS], 3cc=eng
[10:04:08] bd: subtitle id=0x1201, lang=italiano [PGS], 3cc=ita
[10:04:08] bd: subtitle id=0x1202, lang=italiano [PGS], 3cc=ita
[10:04:08] bd: subtitle id=0x1203, lang=español [PGS], 3cc=spa
[10:04:08] bd: subtitle id=0x1204, lang=español [PGS], 3cc=spa
[10:04:08] bd: subtitle id=0x1205, lang=dansk [PGS], 3cc=dan
[10:04:08] bd: subtitle id=0x1206, lang=suomi [PGS], 3cc=fin
[10:04:08] bd: subtitle id=0x1207, lang=norsk [PGS], 3cc=nor
[10:04:08] bd: subtitle id=0x1208, lang=svenska [PGS], 3cc=swe
[10:04:08] bd: subtitle id=0x1209, lang=English [PGS], 3cc=eng
[10:04:08] bd: chap 1, 421796 ms
[10:04:08] bd: chap 2, 207165 ms
[10:04:08] bd: chap 3, 294377 ms
[10:04:08] bd: chap 4, 118743 ms
[10:04:08] bd: chap 5, 92967 ms
[10:04:08] bd: chap 6, 317734 ms
[10:04:08] bd: chap 7, 127877 ms
[10:04:08] bd: chap 8, 59476 ms
[10:04:08] bd: chap 9, 242033 ms
[10:04:08] bd: chap 10, 152318 ms
[10:04:08] bd: chap 11, 325408 ms
[10:04:08] bd: chap 12, 119452 ms
[10:04:08] bd: chap 13, 242367 ms
[10:04:08] bd: chap 14, 269519 ms
[10:04:08] bd: chap 15, 104604 ms
[10:04:08] bd: chap 16, 179721 ms
[10:04:08] bd: chap 17, 176676 ms
[10:04:08] bd: chap 18, 80997 ms
[10:04:08] bd: chap 19, 148106 ms
[10:04:08] bd: chap 20, 463254 ms
[10:04:08] bd: chap 21, 343676 ms
[10:04:08] bd: chap 22, 317775 ms
[10:04:08] bd: chap 23, 235443 ms
[10:04:08] bd: chap 24, 183850 ms
[10:04:08] bd: chap 25, 478978 ms
[10:04:08] bd: chap 26, 267600 ms
[10:04:08] bd: chap 27, 353186 ms
[10:04:08] bd: chap 28, 237153 ms
[10:04:08] bd: chap 29, 147147 ms
[10:04:08] bd: chap 30, 116991 ms
[10:04:08] bd: chap 31, 136177 ms
[10:04:08] bd: chap 32, 330955 ms
[10:04:08] bd: chap 33, 250 ms
[10:04:08] bd: title 5 has 33 chapters
[10:04:08] scan: decoding previews for title 5
[10:04:08] scan: title angle(s) 1
[10:04:08] scan: audio 0x711100: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[10:04:08] scan: audio 0x1100: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[10:04:08] scan: audio 0x1101: dca, rate=48000Hz, bitrate=768000 italiano (DTS) (5.1 ch) (768 kbps)
[10:04:08] scan: audio 0x1102: dca, rate=48000Hz, bitrate=768000 español (DTS) (5.1 ch) (768 kbps)
[10:04:08] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 134/134/0/0, aspect 16:9, PAR 1:1
[10:04:08] stream: 7 good frames, 0 errors (0%)
[10:04:08] libhb: scan thread found 1 valid title(s)
[10:04:09] Starting Task: Subtitle Scan
[10:04:09] work: only 1 chapter, disabling chapter markers
[10:04:09] job configuration:
[10:04:09]  * source
[10:04:09]    + D:\
[10:04:09]    + title 5, chapter(s) 22 to 22
[10:04:09]  * destination
[10:04:09]    + N:\Videos\Ronin F1-5(1).mkv
[10:04:09]    + container: Matroska (libavformat)
[10:04:09]  * video track
[10:04:09]    + decoder: mpeg2video
[10:04:09]      + bitrate 200 kbps
[10:04:09]    + filters
[10:04:09]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[10:04:09]      + Decomb (mode=39)
[10:04:09]      + Framerate Shaper (mode=2:rate=27000000/1080000)
[10:04:09]        + frame rate: 23.976 fps -> peak rate limited to 25.000 fps
[10:04:09]      + Crop and Scale (width=1920:height=812:crop-top=134:crop-bottom=134:crop-left=0:crop-right=0)
[10:04:09]        + source: 1920 * 1080, crop (134/134/0/0): 1920 * 812, scale: 1920 * 812
[10:04:09]    + Output geometry
[10:04:09]      + storage dimensions: 1920 x 812
[10:04:09]      + pixel aspect ratio: 1 : 1
[10:04:09]      + display dimensions: 1920 x 812
[10:04:09]  * Foreign Audio Search: Render/Burn-in, Forced Only
[10:04:09]    + subtitle, English [PGS] (track 0, id 0x1200, Picture)
[10:04:09]    + subtitle, English [PGS] (track 9, id 0x1209, Picture)
[10:04:09] sync: expecting 7619 video frames
[10:04:38] reader: end of chapter 22 (media 22) reached at media chapter 23
[10:04:38] reader: done. 2 scr changes
[10:04:38] work: average encoding speed for job is 0.000000 fps
[10:04:38] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[10:04:38] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[10:04:38] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[10:04:38] vfr: lost time: 0 (0 frames)
[10:04:38] vfr: gained time: 0 (0 frames) (0 not accounted for)
[10:04:38] stream: 7620 good frames, 0 errors (0%)
[10:04:38] mpeg2video-decoder done: 0 frames, 1 decoder errors
[10:04:38] sync: got 0 frames, 7619 expected
[10:04:38] Subtitle track 0 (id 0x1200) 'English [PGS]': 55 hits (0 forced)
[10:04:38] Subtitle track 9 (id 0x1209) 'English [PGS]': 24 hits (0 forced)
[10:04:38] No candidate detected during subtitle scan
[10:04:38] Starting Task: Encoding Pass
[10:04:38] work: only 1 chapter, disabling chapter markers
[10:04:38] job configuration:
[10:04:38]  * source
[10:04:38]    + D:\
[10:04:38]    + title 5, chapter(s) 22 to 22
[10:04:38]  * destination
[10:04:38]    + N:\Videos\Ronin F1-5(1).mkv
[10:04:38]    + container: Matroska (libavformat)
[10:04:38]  * video track
[10:04:38]    + decoder: mpeg2video
[10:04:38]      + bitrate 200 kbps
[10:04:38]    + filters
[10:04:38]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[10:04:38]      + Decomb (mode=39)
[10:04:38]      + Framerate Shaper (mode=2:rate=27000000/1080000)
[10:04:38]        + frame rate: 23.976 fps -> peak rate limited to 25.000 fps
[10:04:38]      + Crop and Scale (width=1920:height=812:crop-top=134:crop-bottom=134:crop-left=0:crop-right=0)
[10:04:38]        + source: 1920 * 1080, crop (134/134/0/0): 1920 * 812, scale: 1920 * 812
[10:04:38]    + Output geometry
[10:04:38]      + storage dimensions: 1920 x 812
[10:04:38]      + pixel aspect ratio: 1 : 1
[10:04:38]      + display dimensions: 1920 x 812
[10:04:38]    + encoder: H.264 (libx264)
[10:04:38]      + preset:  medium
[10:04:38]      + profile: main
[10:04:38]      + level:   3.1
[10:04:38]      + quality: 20.00 (RF)
[10:04:38]      + color profile: 1-1-1
[10:04:38]  * subtitle track 1, English [PGS] (track 0, id 0x1200, Picture) -> Passthrough
[10:04:38]  * subtitle track 2, English [PGS] (track 9, id 0x1209, Picture) -> Passthrough
[10:04:38]  * audio track 1
[10:04:38]    + decoder: English (DTS) (5.1 ch) (1536 kbps) (track 1, id 0x711100)
[10:04:38]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[10:04:38]    + DTS Passthru
[10:04:38] sync: expecting 7619 video frames
[10:04:38] encx264: min-keyint: 24, keyint: 240
[10:04:38] encx264: encoding at constant RF 20.000000
[10:04:38] apply_h264_level [warning]: frame size (1920x816, 6120 macroblocks) too high for level 3.1 (max. 3600 macroblocks)
[10:04:38] encx264: unparsed options: level=3.1:ref=2:b-pyramid=none:8x8dct=0:vbv-bufsize=14000:vbv-maxrate=14000
x264 [info]: using SAR=1/1
x264 [warning]: frame MB size (120x51) > level limit (3600)
x264 [warning]: MB rate (146733) > level limit (108000)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.1, 4:2:0, 8-bit
[10:04:39] sync: first pts audio 0x711100 is 0
[10:04:39] sync: first pts video is 37271
[10:04:39] sync: "Chapter 22" (22) at frame 1 time 37271
[10:04:58] sync: first pts subtitle 0x1200 is 1906638
[10:08:35] sync: first pts subtitle 0x1209 is 17090557
[10:12:15] reader: end of chapter 22 (media 22) reached at media chapter 23
[10:12:15] reader: done. 2 scr changes
[10:12:25] work: average encoding speed for job is 16.554010 fps
[10:12:26] comb detect: heavy 13 | light 81 | uncombed 7525 | total 7619
[10:12:26] decomb: deinterlaced 13 | blended 81 | unfiltered 7525 | total 7619
[10:12:26] vfr: 7619 frames output, 0 dropped and 0 duped for CFR/PFR
[10:12:26] vfr: lost time: 0 (0 frames)
[10:12:26] vfr: gained time: 0 (0 frames) (0 not accounted for)
[10:12:26] stream: 7620 good frames, 0 errors (0%)
[10:12:26] dca-decoder done: 29787 frames, 0 decoder errors
[10:12:26] mpeg2video-decoder done: 7619 frames, 0 decoder errors
[10:12:26] sync: got 7619 frames, 7619 expected
[10:12:26] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
x264 [info]: frame I:76    Avg QP:17.76  size:122279
x264 [info]: frame P:2637  Avg QP:20.66  size: 43461
x264 [info]: frame B:4906  Avg QP:22.06  size: 21859
x264 [info]: consecutive B-frames: 13.7%  0.6%  1.8% 83.8%
x264 [info]: mb I  I16..4: 15.2%  0.0% 84.8%
x264 [info]: mb P  I16..4:  1.1%  0.0%  3.8%  P16..4: 55.7% 23.5% 12.9%  0.0%  0.0%    skip: 3.0%
x264 [info]: mb B  I16..4:  0.1%  0.0%  0.3%  B16..8: 61.3%  7.2%  1.1%  direct: 8.3%  skip:21.7%  L0:44.9% L1:52.9% BI: 2.2%
x264 [info]: coded y,uvDC,uvAC intra: 92.1% 74.0% 22.3% inter: 36.4% 46.1% 0.1%
x264 [info]: i16 v,h,dc,p: 19%  9% 13% 59%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 12% 19%  8%  8%  9%  6%  7%  4%
x264 [info]: i8c dc,h,v,p: 56% 15% 25%  4%
x264 [info]: Weighted P-Frames: Y:4.6% UV:0.8%
x264 [info]: ref P L0: 61.5% 14.1% 23.7%  0.6%
x264 [info]: kb/s:5818.87
[10:12:27] mux: track 0, 7619 frames, 231134143 bytes, 5811.17 kbps, fifo 512
[10:12:27] mux: track 1, 29787 frames, 59931444 bytes, 1506.80 kbps, fifo 2048
[10:12:27] mux: track 2, 110 frames, 988458 bytes, 24.85 kbps, fifo 16
[10:12:27] mux: track 3, 48 frames, 377824 bytes, 9.50 kbps, fifo 16
[10:12:27] Finished work at: Sat Oct 10 10:12:27 2020
[10:12:27] libhb: work result = 0

# Encode Completed ...

Woodstock
Veteran User
Posts: 3790
Joined: Tue Aug 27, 2013 6:39 am

Re: Quick subtitle question

Post by Woodstock »

OK, this seems to be the issue:

Code: Select all

[10:04:38] Subtitle track 0 (id 0x1200) 'English [PGS]': 55 hits (0 forced)
[10:04:38] Subtitle track 9 (id 0x1209) 'English [PGS]': 24 hits (0 forced)
[10:04:38] No candidate detected during subtitle scan
The rules for FAS are that a candidate must use the "forced" flag within it (neither of these do), or that one candidate have no more than 10% as many subtitles as other candidates for the chosen language.

Since 24/55 > .10, FAS cannot make a judgment. FAS works for a lot of things, but it doesn't cover all basis. When it doesn't, you have to determine which track you want manually.
nickae
Posts: 6
Joined: Fri May 29, 2020 8:41 am

Re: Quick subtitle question

Post by nickae »

Hi
I understand that. I am not asking why FAS doesn't pick this up. As I said in the first post, this film has a lot of foreign dialogue. I don't need FAS. I know that track 10 is the foreign dialogue track.

My question is, how would you encode this? Is there some way I am not aware of, to get the MKV file to behave the same way as the original disc when played in VLC. ie, foreign subtitles shown all the time, with the ability to additionally select English dialogue subtitles if necessary, without then having 2 sets overlaying each other during foreign dialogue scenes, meaning neither set can be read in these scenes?

I think the best option is to manually add both tracks, without burning either in, rename track 10 as 'foreign dialogue', and just remember to select it. Then if I am watching in a noisy environment, I can manually switch over. Unless you can think of a better way?

Thanks for taking the time to reply so far.

Nick
Woodstock
Veteran User
Posts: 3790
Joined: Tue Aug 27, 2013 6:39 am

Re: Quick subtitle question

Post by Woodstock »

If track 10 is the one you want to be displayed by default, make it the first selection in the Subtitle tab. You can also set the "default" attribute, but not every player will honor that flag.
Post Reply