How do I add subtitles to an MP4 or MKV file in Handbrake?

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
Doomster
Posts: 5
Joined: Thu Aug 30, 2018 5:22 pm

How do I add subtitles to an MP4 or MKV file in Handbrake?

Post by Doomster »

Description of problem or question:
How do I rip DVDs of foreign movies that have subtitles so that the resulting MP4/MKV files have the subtitles added?

I am able to rip the DVDs but there's no subtitles included. So when the movie is played, there are no subtitles but just the dialog in the original language.

In the Handbrake window, there is a Subtitles tab. I selected "1 English (VOBSUB)" with the Forced Only and Default checkboxes all selected. But when I rip the DVD, the subtitles are not in the MP4 or MKV file.

Doing something wrong here. Anyone know how to do this or point me to info that explains how to have the subtitles included?



Steps to reproduce the problem (If Applicable):
Hanbrake - Subtitles tab -> Add Track (?) (Not sure if these are the correct steps)



HandBrake version (e.g., 1.0.0):
Version 1.1.1



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows 7, 64-bit



HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

HandBrake 1.1.1 (2018061800) - 64bit
OS: Microsoft Windows NT 6.1.7601 Service Pack 1 - 64bit
CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
Ram: 32735 MB, 
GPU Information:
  Standard VGA Graphics Adapter - 6.1.7600.16385
Screen: 1024x768
Temp Dir: C:\Users\jpak\AppData\Local\Temp\
Install Dir: E:\Tools\Handbrake
Data Dir: C:\Users\jpak\AppData\Roaming\HandBrake Team\HandBrake\1.1.1.0

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


# Starting Encode ...

[18:12:12] hb_init: starting libhb thread
[18:12:12] 1 job(s) to process
[18:12:12] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 1,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "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"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "E:\\Media.Capture\\Temp.Handbrake\\PATHER_PANCHALI-2.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 131072
  },
  "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": 11,
        "Settings": {
          "crop-bottom": "4",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "4",
          "height": "472",
          "width": "720"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 8,
    "Den": 9
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 25
    },
    "Title": 2,
    "Path": "D:\\"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": [
      {
        "Burn": true,
        "Default": false,
        "Forced": true,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      }
    ]
  },
  "Video": {
    "Encoder": 65536,
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "main",
    "Quality": 22.0,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[18:12:12] CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
[18:12:12]  - Intel microarchitecture Sandy Bridge
[18:12:12]  - logical processor count: 8
[18:12:12] Intel Quick Sync Video support: no
[18:12:12] hb_scan: path=D:\, title_index=2
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
[18:12:12] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
libdvdnav: Unable to open device file D:\.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient
libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000151
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000001ae
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00000fa6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00000ff0
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00001029
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x00307bdf
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x00307c18
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x003080f7
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x00308130
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x0032b1d6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x0032b20f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_0.VOB at 0x0037a8c6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_1.VOB at 0x0037a8ff
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_0.VOB at 0x003b7439
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_1.VOB at 0x003b7472
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_0.VOB at 0x003d3ec6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_1.VOB at 0x003d3eff
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_0.VOB at 0x003d6fa0
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_1.VOB at 0x003d6fd9
libdvdread: Elapsed time 0
libdvdread: Found 9 VTS's
libdvdread: Elapsed time 0
[18:12:13] scan: DVD has 9 title(s)
[18:12:13] scan: scanning title 2
[18:12:13] scan: opening IFO for VTS 2
[18:12:13] scan: duration is 02:05:45 (7545667 ms)
[18:12:13] pgc_id: 1, pgn: 1: pgc: 000000001D2C9530
[18:12:13] scan: vts=2, ttn=1, cells=0->24, blocks=0->3173250, 3173251 blocks
[18:12:13] scan: checking audio 1
[18:12:13] scan: id=0x80bd, lang=Bangla (AC3), 3cc=ben ext=0
[18:12:13] scan: checking subtitle 1
[18:12:13] scan: id=0x20bd, lang=English (4:3) [VOBSUB], 3cc=eng ext=0
[18:12:13] scan: title 2 has 25 chapters
[18:12:13] scan: chap 1 c=0->0, b=0->72039 (72040), 156333 ms
[18:12:13] scan: chap 2 c=1->1, b=72040->179176 (107137), 266767 ms
[18:12:13] scan: chap 3 c=2->2, b=179177->325012 (145836), 367700 ms
[18:12:13] scan: chap 4 c=3->3, b=325013->387530 (62518), 157166 ms
[18:12:13] scan: chap 5 c=4->4, b=387531->490228 (102698), 271800 ms
[18:12:13] scan: chap 6 c=5->5, b=490229->655470 (165242), 400633 ms
[18:12:13] scan: chap 7 c=6->6, b=655471->763667 (108197), 274200 ms
[18:12:13] scan: chap 8 c=7->7, b=763668->916025 (152358), 345200 ms
[18:12:13] scan: chap 9 c=8->8, b=916026->1008653 (92628), 248934 ms
[18:12:13] scan: chap 10 c=9->9, b=1008654->1196494 (187841), 466934 ms
[18:12:13] scan: chap 11 c=10->10, b=1196495->1381476 (184982), 463333 ms
[18:12:13] scan: chap 12 c=11->11, b=1381477->1570816 (189340), 409967 ms
[18:12:13] scan: chap 13 c=12->12, b=1570817->1728984 (158168), 389834 ms
[18:12:13] scan: chap 14 c=13->13, b=1728985->1829804 (100820), 234266 ms
[18:12:13] scan: chap 15 c=14->14, b=1829805->1958071 (128267), 246600 ms
[18:12:13] scan: chap 16 c=15->15, b=1958072->2061750 (103679), 233967 ms
[18:12:13] scan: chap 17 c=16->16, b=2061751->2235860 (174110), 420834 ms
[18:12:13] scan: chap 18 c=17->17, b=2235861->2309123 (73263), 181467 ms
[18:12:13] scan: chap 19 c=18->18, b=2309124->2371268 (62145), 150734 ms
[18:12:13] scan: chap 20 c=19->19, b=2371269->2483679 (112411), 254467 ms
[18:12:13] scan: chap 21 c=20->20, b=2483680->2601556 (117877), 245367 ms
[18:12:13] scan: chap 22 c=21->21, b=2601557->2779627 (178071), 425266 ms
[18:12:13] scan: chap 23 c=22->22, b=2779628->2970446 (190819), 439000 ms
[18:12:13] scan: chap 24 c=23->23, b=2970447->3173228 (202782), 494433 ms
[18:12:13] scan: chap 25 c=24->24, b=3173229->3173250 (22), 467 ms
[18:12:13] scan: aspect = 4:3
[18:12:13] scan: decoding previews for title 2
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[18:12:13] scan: title angle(s) 1
[ac3 @ 000000001d531a20] frame sync error
[18:12:13] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=384000 Bangla (AC3) (1.0 ch)
[18:12:15] scan: 10 previews, 720x480, 23.976 fps, autocrop = 4/4/0/0, aspect 4:3, PAR 8:9
[18:12:15] libhb: scan thread found 1 valid title(s)
[18:12:15] Skipping subtitle scan.  No suitable subtitle tracks.
[18:12:15] starting job
[18:12:15] decomb filter thread started for segment 0
[18:12:15] decomb filter thread started for segment 1
[18:12:15] decomb filter thread started for segment 2
[18:12:15] decomb filter thread started for segment 3
[18:12:15] decomb filter thread started for segment 4
[18:12:15] decomb filter thread started for segment 5
[18:12:15] decomb filter thread started for segment 6
[18:12:15] decomb filter thread started for segment 7
[18:12:15] decomb check thread started for segment 0
[18:12:15] decomb check thread started for segment 1
[18:12:15] decomb check thread started for segment 2
[18:12:15] decomb check thread started for segment 3
[18:12:15] decomb check thread started for segment 4
[18:12:15] decomb check thread started for segment 5
[18:12:15] decomb check thread started for segment 6
[18:12:15] decomb check thread started for segment 7
[18:12:15] mask filter thread started for segment 0
[18:12:15] mask filter thread started for segment 1
[18:12:15] mask filter thread started for segment 2
[18:12:15] mask filter thread started for segment 3
[18:12:15] mask filter thread started for segment 4
[18:12:15] mask filter thread started for segment 5
[18:12:15] mask filter thread started for segment 6
[18:12:15] mask filter thread started for segment 7
[18:12:15] mask erode thread started for segment 0
[18:12:15] mask erode thread started for segment 1
[18:12:15] mask erode thread started for segment 2
[18:12:15] mask erode thread started for segment 3
[18:12:15] mask erode thread started for segment 4
[18:12:15] mask erode thread started for segment 5
[18:12:15] mask erode thread started for segment 6
[18:12:15] mask erode thread started for segment 7
[18:12:15] mask dilate thread started for segment 0
[18:12:15] mask dilate thread started for segment 1
[18:12:15] mask dilate thread started for segment 2
[18:12:15] mask dilate thread started for segment 3
[18:12:15] mask dilate thread started for segment 4
[18:12:15] mask dilate thread started for segment 5
[18:12:15] mask dilate thread started for segment 6
[18:12:15] mask dilate thread started for segment 7
[18:12:15] yadif thread started for segment 0
[18:12:15] yadif thread started for segment 1
[18:12:15] yadif thread started for segment 2
[18:12:15] yadif thread started for segment 3
[18:12:15] yadif thread started for segment 4
[18:12:15] yadif thread started for segment 5
[18:12:15] yadif thread started for segment 6
[18:12:15] yadif thread started for segment 7
[18:12:15] work: track 1, dithering not supported by codec
[18:12:15] job configuration:
[18:12:15]  * source
[18:12:15]    + D:\
[18:12:15]    + title 2, chapter(s) 1 to 25
[18:12:15]  * destination
[18:12:15]    + E:\Media.Capture\Temp.Handbrake\PATHER_PANCHALI-2.mp4
[18:12:15]    + container: MPEG-4 (libavformat)
[18:12:15]      + align initial A/V stream timestamps
[18:12:15]      + chapter markers
[18:12:15]  * video track
[18:12:15]    + decoder: mpeg2video
[18:12:15]      + bitrate 9800 kbps
[18:12:15]    + filters
[18:12:15]      + 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)
[18:12:15]      + Decomb (mode=39)
[18:12:15]      + Framerate Shaper (mode=2:rate=27000000/900000)
[18:12:15]        + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[18:12:15]      + Subtitle renderer ()
[18:12:15]      + Crop and Scale (width=720:height=472:crop-top=4:crop-bottom=4:crop-left=0:crop-right=0)
[18:12:15]        + source: 720 * 480, crop (4/4/0/0): 720 * 472, scale: 720 * 472
[18:12:15]    + Output geometry
[18:12:15]      + storage dimensions: 720 x 472
[18:12:15]      + pixel aspect ratio: 8 : 9
[18:12:15]      + display dimensions: 640 x 472
[18:12:15]    + encoder: H.264 (libx264)
[18:12:15]      + preset:  fast
[18:12:15]      + profile: main
[18:12:15]      + level:   4.0
[18:12:15]      + quality: 22.00 (RF)
[18:12:15]  * subtitle track 1, English (4:3) [VOBSUB] (track 0, id 0x20bd, Picture) -> Render/Burn-in, Forced Only
[18:12:15]  * audio track 1
[18:12:15]    + decoder: Bangla (AC3) (1.0 ch) (track 1, id 0x80bd)
[18:12:15]      + bitrate: 384 kbps, samplerate: 48000 Hz
[18:12:15]    + mixdown: Mono
[18:12:15]    + encoder: AAC (libavcodec)
[18:12:15]      + bitrate: 160 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 5.0.3
libdvdnav: Unable to open device file D:\.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient
libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000151
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000001ae
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00000fa6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00000ff0
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00001029
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x00307bdf
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x00307c18
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x003080f7
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x00308130
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x0032b1d6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x0032b20f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_0.VOB at 0x0037a8c6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_1.VOB at 0x0037a8ff
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_0.VOB at 0x003b7439
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_1.VOB at 0x003b7472
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_0.VOB at 0x003d3ec6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_1.VOB at 0x003d3eff
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_0.VOB at 0x003d6fa0
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_1.VOB at 0x003d6fd9
libdvdread: Elapsed time 0
libdvdread: Found 9 VTS's
libdvdread: Elapsed time 0
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[18:12:15] sync: expecting 180915 video frames
[18:12:15] encx264: min-keyint: 24, keyint: 240
[18:12:15] encx264: encoding at constant RF 22.000000
[18:12:15] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=8/9
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile Main, level 4.0
[18:12:15] sync: first pts video is 0
[18:12:15] sync: "Chapter 1" (1) at frame 1 time 0
[18:12:15] sync: first pts audio 0x80bd is 0
[18:12:43] sync: "Chapter 2" (2) at frame 3753 time 14084070
[18:13:28] sync: "Chapter 3" (3) at frame 10155 time 38115577
[18:14:25] sync: "Chapter 4" (4) at frame 18980 time 71242421
[18:14:48] sync: "Chapter 5" (5) at frame 22752 time 85401566
[18:15:28] sync: "Chapter 6" (6) at frame 29275 time 109887277
[18:16:31] sync: "Chapter 7" (7) at frame 38890 time 145979583
[18:17:15] sync: "Chapter 8" (8) at frame 45471 time 170683012
[18:18:11] sync: "Chapter 9" (9) at frame 53756 time 201782831
[18:18:44] sync: "Chapter 10" (10) at frame 59730 time 224207733
[18:19:59] sync: "Chapter 11" (11) at frame 70937 time 266276010
[18:20:59] sync: "Chapter 12" (12) at frame 82057 time 308017710
[18:22:05] sync: "Chapter 13" (13) at frame 91896 time 344950856
[18:23:03] sync: "Chapter 14" (14) at frame 101252 time 380070941
[18:23:40] sync: "Chapter 15" (15) at frame 106874 time 401174523
[18:24:27] sync: "Chapter 16" (16) at frame 112793 time 423392970
[18:25:05] sync: "Chapter 17" (17) at frame 118408 time 444470276
[18:26:04] sync: "Chapter 18" (18) at frame 128508 time 482383151
[18:26:34] sync: "Chapter 19" (19) at frame 132863 time 498730732
[18:26:58] sync: "Chapter 20" (20) at frame 136481 time 512311800
[18:27:40] sync: "Chapter 21" (21) at frame 142588 time 535235951
[18:28:24] sync: "Chapter 22" (22) at frame 148477 time 557341785
[18:29:18] sync: "Chapter 23" (23) at frame 158683 time 595652557
[18:30:28] sync: "Chapter 24" (24) at frame 169219 time 635202067
[18:31:46] reader: done. 1 scr changes
[18:31:46] work: average encoding speed for job is 154.610046 fps
[18:31:46] comb detect: heavy 1342 | light 8398 | uncombed 171357 | total 181097
[18:31:46] decomb: deinterlaced 1342 | blended 8398 | unfiltered 171357 | total 181097
[18:31:46] vfr: 181097 frames output, 0 dropped and 0 duped for CFR/PFR
[18:31:46] vfr: lost time: 0 (0 frames)
[18:31:46] vfr: gained time: 0 (0 frames) (0 not accounted for)
[18:31:46] ac3-decoder done: 236038 frames, 0 decoder errors
[18:31:46] mpeg2video-decoder done: 181097 frames, 0 decoder errors
[18:31:46] sync: got 181097 frames, 180915 expected
[18:31:46] sync: framerate min 23.981 fps, max 29.970 fps, avg 23.976 fps
x264 [info]: frame I:1218  Avg QP:19.41  size: 47858
x264 [info]: frame P:47989 Avg QP:22.78  size: 13764
x264 [info]: frame B:131890 Avg QP:26.03  size:  2500
x264 [info]: consecutive B-frames:  2.2%  1.3%  2.1% 94.4%
x264 [info]: mb I  I16..4: 15.7%  0.0% 84.3%
x264 [info]: mb P  I16..4:  1.2%  0.0%  6.3%  P16..4: 40.5% 23.6% 15.1%  0.0%  0.0%    skip:13.3%
x264 [info]: mb B  I16..4:  1.4%  0.0%  0.9%  B16..8: 23.8%  7.4%  0.9%  direct: 8.9%  skip:56.5%  L0:35.4% L1:41.7% BI:22.9%
x264 [info]: coded y,uvDC,uvAC intra: 71.9% 0.0% 0.0% inter: 21.6% 0.0% 0.0%
x264 [info]: i16 v,h,dc,p: 35% 20% 27% 18%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 16% 15%  7%  9%  8%  9%  8%  8%
x264 [info]: i8c dc,h,v,p: 100%  0%  0%  0%
x264 [info]: Weighted P-Frames: Y:22.1% UV:0.0%
x264 [info]: ref P L0: 62.1% 37.9%
x264 [info]: ref B L0: 81.3% 18.7%
x264 [info]: ref B L1: 94.9%  5.1%
x264 [info]: kb/s:1110.56
[18:31:47] mux: track 0, 181097 frames, 1048490358 bytes, 1110.50 kbps, fifo 8192
[18:31:47] mux: track 1, 354058 frames, 139546116 bytes, 147.80 kbps, fifo 16384
[18:31:47] libhb: work result = 0

# Encode Completed ...

Pastebin URL: https://pastebin.com/pfJ4cdGG
Woodstock
Veteran User
Posts: 4623
Joined: Tue Aug 27, 2013 6:39 am

Re: How do I add subtitles to an MP4 or MKV file in Handbrake?

Post by Woodstock »

Take "forced only" off, and you'll have subtitles. The subtitle scan only found one track, and that track did not have any flagged as "forced", so it didn't include them.

The usual way of mastering DVDs and Bluray disks is to have a separate track for what would be called "forced only" subtitles. The subtitle scan can usually figure these out, but... when there is only one track... it cannot apply its rules.

Just selecting track 1, and leaving "forced only" unchecked, you'll get subtitles... but you'll get ALL of them.
Doomster
Posts: 5
Joined: Thu Aug 30, 2018 5:22 pm

Re: How do I add subtitles to an MP4 or MKV file in Handbrake?

Post by Doomster »

Woodstock,
Thanks for the instructions. I re-ripped it with the "forced only" checkbox off, added a track for "1 English (4:3)", and set this English track with the "Burn In" checkbox checked.

It worked - when I played it back via Kodi, the movie played with the subtitle.

For future reference, is there a link or some documentation that explains what these tabs like "Subtitles", buttons like "Selection Behavior", and checkboxes like "Forced Only" or "Default" do?
Woodstock
Veteran User
Posts: 4623
Joined: Tue Aug 27, 2013 6:39 am

Re: How do I add subtitles to an MP4 or MKV file in Handbrake?

Post by Woodstock »

Yes, there is documentation... https://handbrake.fr/docs/ is where it starts.

Subtitles are a general pain in the ... to deal with. There area many ways to do them without violating the DVD and Bluray standards, and disk authors try to push them.

The "Scan" option will work for most people, most of the time. "Most" is defined as "more than 50.0%".... :)
Post Reply