Subtitles not copied in transcode

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
k9393
Posts: 9
Joined: Tue Mar 07, 2023 1:35 am

Subtitles not copied in transcode

Post by k9393 »

Description of problem or question:
When I trans-code a movie file the subtitles are not copied. I tried various combinations of the subtitle settings be could not get it to work



Steps to reproduce the problem (If Applicable):
Basic trans-code to reduce video resolution and copy audio and subtitles as is.



HandBrake version (e.g., 1.0.0):
1.6.1



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows 10 version 21H2



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

Code: Select all

HandBrake 1.6.1 (2023012300)
OS: Microsoft Windows NT 10.0.19044.0
CPU: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz
Ram: 16234 MB, 
GPU Information:
  Intel(R) UHD Graphics 630 - 31.0.101.2111
Screen: 2560x1440
Temp Dir: C:\Users\kotj\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\kotj\AppData\Roaming\HandBrake

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

 # Starting Encode ...

[20:18:34] base preset: 720p30-H.265-all English subs (Modified)
[20:18:34] Remote Process started with Process ID: 11704 using port: 8037. Max Allowed Instances: 1
[20:18:34] Worker: Starting HandBrake Engine ...
[20:18:34] Worker: Starting Web Server on port 8037 ...
[20:18:34] Worker: Disconnected worker monitoring enabled!
[20:18:34] Compile-time hardening features are enabled
[20:18:35] qsv: is available on this system
[20:18:35] vcn: not available on this system
Cannot load nvEncodeAPI64.dll
[20:18:35] hb_init: starting libhb thread
[20:18:35] Starting work at: Mon Mar 06 20:18:35 2023
[20:18:35] 1 job(s) to process
[20:18:35] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Dolby TrueHD/Atmos Audio / 7.1 / 48 kHz / 4304 kbps / 24-bit",
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac"
    ]
  },
  "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"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "C:\\Z\\DV\\4HB2\\tmp4\\Top Gun Maverick 2022-RF21-720p30-H.265sE0\u002B1\u002B2.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "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": 14,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "720",
          "width": "1280"
        }
      },
      {
        "ID": 7,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 270,
    "Den": 253
  },
  "Metadata": {
    "Name": "Top Gun: Maverick (2022)"
  },
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 2,
      "End": 2
    },
    "Title": 1,
    "Path": "C:\\Z\\DV\\4HB2\\tmp4\\Top Gun Maverick 2022.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": true,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": true,
        "ID": 2,
        "Offset": 0,
        "Track": 1,
        "Name": "SDH"
      }
    ]
  },
  "Video": {
    "Encoder": "x265",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "auto",
    "Quality": 21,
    "QSV": {
      "Decode": false
    },
    "HardwareDecode": 0
  }
}
[20:18:35] CPU: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz
[20:18:35]  - Intel microarchitecture Kaby Lake
[20:18:35]  - logical processor count: 6
[20:18:35] Intel Quick Sync Video support: yes, gpu list: 0
[20:18:35] Intel Quick Sync Video integrated adapter with index 0
[20:18:35] Impl mfxhw64 library path: C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_51f685305808e3a5\libmfxhw64.dll
[20:18:35]  - Intel Media SDK hardware: API 1.35 (minimum: 1.3)
[20:18:35]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes)
[20:18:35]  - H.264 encoder: yes
[20:18:35]     - preferred implementation: hardware (1) via D3D11
[20:18:35]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[20:18:35]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[20:18:35]     - preferred implementation: hardware (1) via D3D11
[20:18:35]     - capabilities (hardware):  bpyramid icq vsinfo masteringinfo cllinfo opt1
[20:18:35]  - AV1 encoder: no
[20:18:35] hb_scan: path=C:\Z\DV\4HB2\tmp4\Top Gun Maverick 2022.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image C:\Z\DV\4HB2\tmp4\Top Gun Maverick 2022.mkv
src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
[20:18:35] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdlibdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
vdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[20:18:35] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\Z\DV\4HB2\tmp4\Top Gun Maverick 2022.mkv':
  Metadata:
    title           : Top Gun: Maverick (2022)
    creation_time   : 2022-10-25T17:56:40.000000Z
    ENCODER         : Lavf58.29.100
  Duration: 02:10:14.52, start: 0.000000, bitrate: 4187 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 185.560000
      Metadata:
        title           : Chapter 1
    Chapter #0:1: start 185.560000, end 820.111000
      Metadata:
        title           : Chapter 2
    Chapter #0:2: start 820.111000, end 1283.282000
      Metadata:
        title           : Chapter 3
    Chapter #0:3: start 1283.282000, end 1959.416000
      Metadata:
        title           : Chapter 4
    Chapter #0:4: start 1959.416000, end 2687.768000
      Metadata:
        title           : Chapter 5
    Chapter #0:5: start 2687.768000, end 3234.940000
      Metadata:
        title           : Chapter 6
    Chapter #0:6: start 3234.940000, end 3609.856000
      Metadata:
        title           : Chapter 7
    Chapter #0:7: start 3609.856000, end 4059.305000
      Metadata:
        title           : Chapter 8
    Chapter #0:8: start 4059.305000, end 4546.250000
      Metadata:
        title           : Chapter 9
    Chapter #0:9: start 4546.250000, end 5017.721000
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 5017.721000, end 5509.212000
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 5509.212000, end 6092.920000
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 6092.920000, end 6528.272000
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 6528.272000, end 7042.410000
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 7042.410000, end 7393.136000
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 7393.136000, end 7814.515000
      Metadata:
        title           : Chapter 16
  Stream #0:0: Video: hevc (Main), yuv420p(tv, bt709), 1920x1008 [SAR 252:253 DAR 480:253], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      DURATION        : 02:10:14.520000000
  Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default)
    Metadata:
      title           : Dolby TrueHD/Atmos Audio / 7.1 / 48 kHz / 4304 kbps / 24-bit
      DURATION        : 02:10:14.496000000
  Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      DURATION        : 02:00:20.094000000
  Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : SDH
      DURATION        : 02:03:05.175000000
[20:18:35] scan: decoding previews for title 1
[20:18:35] scan: audio 0x1: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch) (640 kbps)
[20:18:35] scan: 10 previews, 1920x1008, 23.976 fps, autocrop = 0/0/0/0, aspect 1.90:1, PAR 252:253, color profile: 1-1-1, chroma location: left
[20:18:35] scan: supported video decoders: avcodec qsv
[20:18:35] libhb: scan thread found 1 valid title(s)
[20:18:35] qsv: integrated qsv adapter with index 0 has been selected
[20:18:35] Starting Task: Subtitle Scan
[20:18:35] work: only 1 chapter, disabling chapter markers
[20:18:35] job configuration:
[20:18:35]  * source
[20:18:35]    + C:\Z\DV\4HB2\tmp4\Top Gun Maverick 2022.mkv
[20:18:35]    + title 1, chapter(s) 2 to 2
[20:18:35]    + container: matroska,webm
[20:18:35]    + data rate: 4187 kbps
[20:18:35]  * destination
[20:18:35]    + C:\Z\DV\4HB2\tmp4\Top Gun Maverick 2022-RF21-720p30-H.265sE0+1+2.mp4
[20:18:35]    + container: MPEG-4 (libavformat)
[20:18:35]  * video track
[20:18:35]    + decoder: hevc 8-bit (yuv420p)
[20:18:35]    + filters
[20:18:35]      + 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)
[20:18:35]      + Decomb (mode=39)
[20:18:35]      + Framerate Shaper (mode=2:rate=27000000/900000)
[20:18:35]        + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[20:18:35]      + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[20:18:35]        + source: 1920 * 1008, crop (0/0/0/0): 1920 * 1008, scale: 1280 * 720
[20:18:35]    + Output geometry
[20:18:35]      + storage dimensions: 1280 x 720
[20:18:35]      + pixel aspect ratio: 270 : 253
[20:18:35]      + display dimensions: 1366 x 720
[20:18:35]  * Foreign Audio Search: Render/Burn-in, Forced Only
[20:18:35]    + subtitle, English [PGS] (track 0, id 0x2, Picture)
[20:18:35]    + subtitle, English [PGS] (track 1, id 0x3, Picture)
[20:18:35] sync: expecting 15214 video frames
[20:18:35] reader: end of chapter 2 (media 2) reached at media chapter 3
[20:18:35] reader: done. 1 scr changes
[20:18:35] work: average encoding speed for job is 0.000000 fps
[20:18:35] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[20:18:35] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[20:18:35] vfr: lost time: 0 (0 frames)
[20:18:35] vfr: gained time: 0 (0 frames) (0 not accounted for)
[20:18:35] hevc-decoder done: 0 frames, 0 decoder errors
[20:18:35] sync: got 0 frames, 15214 expected
[20:18:35] Subtitle track 0 (id 0x2) 'English [PGS]': 101 hits (0 forced)
[20:18:35] Subtitle track 1 (id 0x3) 'English [PGS]': 137 hits (0 forced)
[20:18:35] No candidate detected during subtitle scan
[20:18:35] Starting Task: Encoding Pass
[20:18:35] Subtitle pass-thru requested and input track is not compatible with container.  Changing track 0 to burned-in subtitle.
[20:18:35] Subtitle pass-thru requested and input track is not compatible with container.  One track already burned, dropping track 1.
[20:18:35] work: track 1, dithering not supported by codec
[20:18:35] work: only 1 chapter, disabling chapter markers
[20:18:35] job configuration:
[20:18:35]  * source
[20:18:35]    + C:\Z\DV\4HB2\tmp4\Top Gun Maverick 2022.mkv
[20:18:35]    + title 1, chapter(s) 2 to 2
[20:18:35]    + container: matroska,webm
[20:18:35]    + data rate: 4187 kbps
[20:18:35]  * destination
[20:18:35]    + C:\Z\DV\4HB2\tmp4\Top Gun Maverick 2022-RF21-720p30-H.265sE0+1+2.mp4
[20:18:35]    + container: MPEG-4 (libavformat)
[20:18:35]  * video track
[20:18:35]    + decoder: hevc 8-bit (yuv420p)
[20:18:35]    + filters
[20:18:35]      + 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)
[20:18:35]      + Decomb (mode=39)
[20:18:35]      + Framerate Shaper (mode=2:rate=27000000/900000)
[20:18:35]        + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[20:18:35]      + Subtitle renderer ()
[20:18:35]      + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[20:18:35]        + source: 1920 * 1008, crop (0/0/0/0): 1920 * 1008, scale: 1280 * 720
[20:18:35]    + Output geometry
[20:18:35]      + storage dimensions: 1280 x 720
[20:18:35]      + pixel aspect ratio: 270 : 253
[20:18:35]      + display dimensions: 1366 x 720
[20:18:35]    + encoder: H.265 (libx265)
[20:18:35]      + preset:  fast
[20:18:35]      + profile: auto
[20:18:35]      + level:   auto
[20:18:35]      + quality: 21.00 (RF)
[20:18:36]      + color profile: 1-1-1
[20:18:36]      + chroma location: left
[20:18:36]  * subtitle track 1, English [PGS] (track 0, id 0x2, Picture) -> Render/Burn-in, Forced Only
[20:18:36]  * audio track 1
[20:18:36]    + name: Dolby TrueHD/Atmos Audio / 7.1 / 48 kHz / 4304 kbps / 24-bit
[20:18:36]    + decoder: English (AC3) (5.1 ch) (640 kbps) (track 1, id 0x1)
[20:18:36]      + bitrate: 640 kbps, samplerate: 48000 Hz
[20:18:36]    + mixdown: Stereo
[20:18:36]    + encoder: AAC (libavcodec)
[20:18:36]      + bitrate: 160 kbps, samplerate: 48000 Hz
[20:18:36] sync: expecting 15214 video frames
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Windows][GCC 10.2.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main profile, Level-3.1 (Main tier)
x265 [info]: Thread pool created using 6 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 2 / wpp(12 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
x265 [info]: Keyframe min / max / scenecut / bias  : 24 / 240 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-21.0 / 0.60
x265 [info]: tools: rd=2 psy-rd=2.00 rskip mode=1 signhide tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing lslices=4 deblock sao
[20:18:36] sync: first pts video is 0
[20:18:36] sync: first pts audio 0x1 is 1080
[20:18:36] sync: "Chapter 2" (2) at frame 58 time 213963
[20:22:56] reader: end of chapter 2 (media 2) reached at media chapter 3
[20:22:56] reader: done. 1 scr changes
[20:22:56] sync: "Chapter 3" (3) at frame 15272 time 57323516
[20:22:57] work: average encoding speed for job is 58.387054 fps
[20:22:57] comb detect: heavy 202 | light 509 | uncombed 14561 | total 15272
[20:22:57] decomb: deinterlaced 202 | blended 509 | unfiltered 14561 | total 15272
[20:22:57] vfr: 15272 frames output, 0 dropped and 0 duped for CFR/PFR
[20:22:57] vfr: lost time: 0 (0 frames)
[20:22:57] vfr: gained time: 0 (0 frames) (0 not accounted for)
[20:22:57] ac3-decoder done: 19903 frames, 0 decoder errors
[20:22:57] hevc-decoder done: 15272 frames, 0 decoder errors
[20:22:57] sync: got 15272 frames, 15214 expected
[20:22:57] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
x265 [info]: frame I:    276, Avg QP:19.17  kb/s: 5510.86
x265 [info]: frame P:   3108, Avg QP:21.17  kb/s: 1983.88
x265 [info]: frame B:  11888, Avg QP:26.70  kb/s: 395.45
x265 [info]: Weighted P-Frames: Y:3.6% UV:2.5%
encoded 15272 frames in 261.86s (58.32 fps), 811.16 kb/s, Avg QP:25.44
[20:22:57] mux: track 0, 15272 frames, 64646601 bytes, 811.93 kbps, fifo 4096
[20:22:57] mux: track 1, 29855 frames, 12875115 bytes, 161.70 kbps, fifo 8192
[20:22:57] Finished work at: Mon Mar 06 20:22:57 2023
[20:22:57] libhb: work result = 0

 # Job Completed!


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

Re: Subtitles not copied in transcode

Post by Woodstock »

Code: Select all

[20:18:35]  * destination
[20:18:35]    + C:\Z\DV\4HB2\tmp4\Top Gun Maverick 2022-RF21-720p30-H.265sE0+1+2.mp4
...
[20:18:35] Subtitle track 0 (id 0x2) 'English [PGS]': 101 hits (0 forced)
[20:18:35] Subtitle track 1 (id 0x3) 'English [PGS]': 137 hits (0 forced)
[20:18:35] No candidate detected during subtitle scan
[20:18:35] Starting Task: Encoding Pass
[20:18:35] Subtitle pass-thru requested and input track is not compatible with container.  Changing track 0 to burned-in subtitle.
[20:18:35] Subtitle pass-thru requested and input track is not compatible with container.  One track already burned, dropping track 1.
MP4 does not support PGS subtitles. One was burned in, the other tossed. You do not have a subtitle "track" in the resulting file.
k9393
Posts: 9
Joined: Tue Mar 07, 2023 1:35 am

Re: Subtitles not copied in transcode

Post by k9393 »

Thank-you Woodstock for your reply .

I now trans-coded to MKV using various combinations of the subtitle settings. But, even though the subtitle options now appear as in the source video (Track 1 - [English] and SDH - [English]), when I select them no subtitles are shown. I use VLC as the player. What am I doing incorrectly?

The following is the activity log for a trans-code to MKV:

HandBrake 1.6.1 (2023012300)
OS: Microsoft Windows NT 10.0.19044.0
CPU: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz
Ram: 16234 MB,
GPU Information:
Intel(R) UHD Graphics 630 - 31.0.101.2111
Screen: 2560x1440
Temp Dir: C:\Users\kotj\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\kotj\AppData\Roaming\HandBrake

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

# Starting Encode ...

[14:56:53] base preset: Fast 720p30 (Modified)
[14:56:53] Remote Process started with Process ID: 8032 using port: 8037. Max Allowed Instances: 1
[14:56:53] Worker: Starting HandBrake Engine ...
[14:56:53] Worker: Starting Web Server on port 8037 ...
[14:56:54] Worker: Disconnected worker monitoring enabled!
[14:56:54] Compile-time hardening features are enabled
[14:56:54] qsv: is available on this system
[14:56:54] vcn: not available on this system
Cannot load nvEncodeAPI64.dll
[14:56:54] hb_init: starting libhb thread
[14:56:54] Starting work at: Tue Mar 07 14:56:54 2023
[14:56:54] 1 job(s) to process
[14:56:54] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 160,
"DRC": 0,
"Encoder": "av_aac",
"Gain": 0,
"Mixdown": 4,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Name": "Dolby TrueHD/Atmos Audio / 7.1 / 48 kHz / 4304 kbps / 24-bit",
"Track": 0,
"DitherMethod": 0
}
],
"CopyMask": [
"copy:aac"
]
},
"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"
}
],
"ChapterMarkers": true,
"AlignAVStart": false,
"File": "C:\\Z\\DV\\tmp4\\Top.Gun.Maverick.2022-RF21-720p30-H.265sFAS(FO\u002BBI)\u002B1(FO)\u002B2(FO)\u002B(Any)\u002BCC\u002BBIB=FAP,else1st.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": 14,
"Settings": {
"crop-bottom": "0",
"crop-left": "0",
"crop-right": "0",
"crop-top": "0",
"height": "720",
"width": "1280"
}
},
{
"ID": 7,
"Settings": {
"mode": "2",
"rate": "27000000/900000"
}
}
]
},
"PAR": {
"Num": 270,
"Den": 253
},
"Metadata": {
"Name": "Top Gun: Maverick (2022)"
},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 2,
"End": 2
},
"Title": 1,
"Path": "C:\\Z\\DV\\tmp4\\Top.Gun.Maverick.2022.mkv"
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": true,
"Forced": true
},
"SubtitleList": [
{
"Burn": false,
"Default": false,
"Forced": true,
"ID": 1,
"Offset": 0,
"Track": 0
},
{
"Burn": false,
"Default": false,
"Forced": true,
"ID": 2,
"Offset": 0,
"Track": 1,
"Name": "SDH"
}
]
},
"Video": {
"Encoder": "x264",
"Level": "3.1",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "fast",
"Profile": "main",
"Quality": 21,
"QSV": {
"Decode": false
},
"HardwareDecode": 0
}
}
[14:56:54] CPU: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz
[14:56:54] - Intel microarchitecture Kaby Lake
[14:56:54] - logical processor count: 6
[14:56:54] Intel Quick Sync Video support: yes, gpu list: 0
[14:56:54] Intel Quick Sync Video integrated adapter with index 0
[14:56:54] Impl mfxhw64 library path: C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_51f685305808e3a5\libmfxhw64.dll
[14:56:54] - Intel Media SDK hardware: API 1.35 (minimum: 1.3)
[14:56:54] - Decode support: h264 hevc (8bit: yes, 10bit: yes)
[14:56:54] - H.264 encoder: yes
[14:56:54] - preferred implementation: hardware (1) via D3D11
[14:56:54] - capabilities (hardware): breftype icq+la+i+downs vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[14:56:54] - H.265 encoder: yes (8bit: yes, 10bit: yes)
[14:56:54] - preferred implementation: hardware (1) via D3D11
[14:56:54] - capabilities (hardware): bpyramid icq vsinfo masteringinfo cllinfo opt1
[14:56:54] - AV1 encoder: no
[14:56:54] hb_scan: path=C:\Z\DV\tmp4\Top.Gun.Maverick.2022.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image C:\Z\DV\tmp4\Top.Gun.Maverick.2022.mkv
src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
[14:56:54] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdlibdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
read: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[14:56:54] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\Z\DV\tmp4\Top.Gun.Maverick.2022.mkv':
Metadata:
title : Top Gun: Maverick (2022)
creation_time : 2022-10-25T17:56:40.000000Z
ENCODER : Lavf58.29.100
Duration: 02:10:14.52, start: 0.000000, bitrate: 4187 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 185.560000
Metadata:
title : Chapter 1
Chapter #0:1: start 185.560000, end 820.111000
Metadata:
title : Chapter 2
Chapter #0:2: start 820.111000, end 1283.282000
Metadata:
title : Chapter 3
Chapter #0:3: start 1283.282000, end 1959.416000
Metadata:
title : Chapter 4
Chapter #0:4: start 1959.416000, end 2687.768000
Metadata:
title : Chapter 5
Chapter #0:5: start 2687.768000, end 3234.940000
Metadata:
title : Chapter 6
Chapter #0:6: start 3234.940000, end 3609.856000
Metadata:
title : Chapter 7
Chapter #0:7: start 3609.856000, end 4059.305000
Metadata:
title : Chapter 8
Chapter #0:8: start 4059.305000, end 4546.250000
Metadata:
title : Chapter 9
Chapter #0:9: start 4546.250000, end 5017.721000
Metadata:
title : Chapter 10
Chapter #0:10: start 5017.721000, end 5509.212000
Metadata:
title : Chapter 11
Chapter #0:11: start 5509.212000, end 6092.920000
Metadata:
title : Chapter 12
Chapter #0:12: start 6092.920000, end 6528.272000
Metadata:
title : Chapter 13
Chapter #0:13: start 6528.272000, end 7042.410000
Metadata:
title : Chapter 14
Chapter #0:14: start 7042.410000, end 7393.136000
Metadata:
title : Chapter 15
Chapter #0:15: start 7393.136000, end 7814.515000
Metadata:
title : Chapter 16
Stream #0:0: Video: hevc (Main), yuv420p(tv, bt709), 1920x1008 [SAR 252:253 DAR 480:253], 23.98 fps, 23.98 tbr, 1k tbn (default)
Metadata:
DURATION : 02:10:14.520000000
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default)
Metadata:
title : Dolby TrueHD/Atmos Audio / 7.1 / 48 kHz / 4304 kbps / 24-bit
DURATION : 02:10:14.496000000
Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
DURATION : 02:00:20.094000000
Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
title : SDH
DURATION : 02:03:05.175000000
[14:56:54] scan: decoding previews for title 1
[14:56:54] scan: audio 0x1: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch) (640 kbps)
[14:56:54] scan: 10 previews, 1920x1008, 23.976 fps, autocrop = 0/0/0/0, aspect 1.90:1, PAR 252:253, color profile: 1-1-1, chroma location: left
[14:56:54] scan: supported video decoders: avcodec qsv
[14:56:54] libhb: scan thread found 1 valid title(s)
[14:56:54] qsv: integrated qsv adapter with index 0 has been selected
[14:56:54] Starting Task: Subtitle Scan
[14:56:54] work: only 1 chapter, disabling chapter markers
[14:56:54] job configuration:
[14:56:54] * source
[14:56:54] + C:\Z\DV\tmp4\Top.Gun.Maverick.2022.mkv
[14:56:54] + title 1, chapter(s) 2 to 2
[14:56:54] + container: matroska,webm
[14:56:54] + data rate: 4187 kbps
[14:56:54] * destination
[14:56:54] + C:\Z\DV\tmp4\Top.Gun.Maverick.2022-RF21-720p30-H.265sFAS(FO+BI)+1(FO)+2(FO)+(Any)+CC+BIB=FAP,else1st.mkv
[14:56:54] + container: Matroska (libavformat)
[14:56:54] * video track
[14:56:54] + decoder: hevc 8-bit (yuv420p)
[14:56:54] + filters
[14:56:54] + 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)
[14:56:54] + Decomb (mode=39)
[14:56:54] + Framerate Shaper (mode=2:rate=27000000/900000)
[14:56:54] + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[14:56:54] + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[14:56:54] + source: 1920 * 1008, crop (0/0/0/0): 1920 * 1008, scale: 1280 * 720
[14:56:54] + Output geometry
[14:56:54] + storage dimensions: 1280 x 720
[14:56:54] + pixel aspect ratio: 270 : 253
[14:56:54] + display dimensions: 1366 x 720
[14:56:54] * Foreign Audio Search: Render/Burn-in, Forced Only
[14:56:54] + subtitle, English [PGS] (track 0, id 0x2, Picture)
[14:56:54] + subtitle, English [PGS] (track 1, id 0x3, Picture)
[14:56:54] sync: expecting 15214 video frames
[14:56:54] reader: end of chapter 2 (media 2) reached at media chapter 3
[14:56:54] reader: done. 1 scr changes
[14:56:55] work: average encoding speed for job is 0.000000 fps
[14:56:55] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[14:56:55] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[14:56:55] vfr: lost time: 0 (0 frames)
[14:56:55] vfr: gained time: 0 (0 frames) (0 not accounted for)
[14:56:55] hevc-decoder done: 0 frames, 0 decoder errors
[14:56:55] sync: got 0 frames, 15214 expected
[14:56:55] Subtitle track 0 (id 0x2) 'English [PGS]': 101 hits (0 forced)
[14:56:55] Subtitle track 1 (id 0x3) 'English [PGS]': 137 hits (0 forced)
[14:56:55] No candidate detected during subtitle scan
[14:56:55] Starting Task: Encoding Pass
[14:56:55] work: track 1, dithering not supported by codec
[14:56:55] work: only 1 chapter, disabling chapter markers
[14:56:55] job configuration:
[14:56:55] * source
[14:56:55] + C:\Z\DV\tmp4\Top.Gun.Maverick.2022.mkv
[14:56:55] + title 1, chapter(s) 2 to 2
[14:56:55] + container: matroska,webm
[14:56:55] + data rate: 4187 kbps
[14:56:55] * destination
[14:56:55] + C:\Z\DV\tmp4\Top.Gun.Maverick.2022-RF21-720p30-H.265sFAS(FO+BI)+1(FO)+2(FO)+(Any)+CC+BIB=FAP,else1st.mkv
[14:56:55] + container: Matroska (libavformat)
[14:56:55] * video track
[14:56:55] + decoder: hevc 8-bit (yuv420p)
[14:56:55] + filters
[14:56:55] + 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)
[14:56:55] + Decomb (mode=39)
[14:56:55] + Framerate Shaper (mode=2:rate=27000000/900000)
[14:56:55] + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[14:56:55] + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[14:56:55] + source: 1920 * 1008, crop (0/0/0/0): 1920 * 1008, scale: 1280 * 720
[14:56:55] + Output geometry
[14:56:55] + storage dimensions: 1280 x 720
[14:56:55] + pixel aspect ratio: 270 : 253
[14:56:55] + display dimensions: 1366 x 720
[14:56:55] + encoder: H.264 (libx264)
[14:56:55] + preset: fast
[14:56:55] + profile: main
[14:56:55] + level: 3.1
[14:56:55] + quality: 21.00 (RF)
[14:56:55] + color profile: 1-1-1
[14:56:55] + chroma location: left
[14:56:55] * subtitle track 1, English [PGS] (track 0, id 0x2, Picture) -> Passthrough, Forced Only
[14:56:55] * subtitle track 2, English [PGS] (track 1, id 0x3, Picture) -> Passthrough, Forced Only
[14:56:55] + name: SDH
[14:56:55] * audio track 1
[14:56:55] + name: Dolby TrueHD/Atmos Audio / 7.1 / 48 kHz / 4304 kbps / 24-bit
[14:56:55] + decoder: English (AC3) (5.1 ch) (640 kbps) (track 1, id 0x1)
[14:56:55] + bitrate: 640 kbps, samplerate: 48000 Hz
[14:56:55] + mixdown: Stereo
[14:56:55] + encoder: AAC (libavcodec)
[14:56:55] + bitrate: 160 kbps, samplerate: 48000 Hz
[14:56:55] sync: expecting 15214 video frames
[14:56:55] encx264: min-keyint: 24, keyint: 240
[14:56:55] encx264: encoding at constant RF 21.000000
[14:56:55] encx264: unparsed options: level=3.1:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=14000:vbv-maxrate=14000:rc-lookahead=30
x264 [info]: using SAR=270/253
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 UnalignedStack
x264 [info]: profile Main, level 3.1, 4:2:0, 8-bit
[14:56:55] sync: first pts video is 0
[14:56:55] sync: first pts audio 0x1 is 1080
[14:56:55] sync: "Chapter 2" (2) at frame 58 time 213963
[14:59:58] reader: end of chapter 2 (media 2) reached at media chapter 3
[14:59:58] reader: done. 1 scr changes
[14:59:59] sync: "Chapter 3" (3) at frame 15272 time 57323516
[14:59:59] work: average encoding speed for job is 82.713326 fps
[15:00:00] comb detect: heavy 202 | light 509 | uncombed 14561 | total 15272
[15:00:00] decomb: deinterlaced 202 | blended 509 | unfiltered 14561 | total 15272
[15:00:00] vfr: 15272 frames output, 0 dropped and 0 duped for CFR/PFR
[15:00:00] vfr: lost time: 0 (0 frames)
[15:00:00] vfr: gained time: 0 (0 frames) (0 not accounted for)
[15:00:00] ac3-decoder done: 19903 frames, 0 decoder errors
[15:00:00] hevc-decoder done: 15272 frames, 0 decoder errors
[15:00:00] sync: got 15272 frames, 15214 expected
[15:00:00] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
x264 [info]: frame I:298 Avg QP:14.43 size: 43330
x264 [info]: frame P:4200 Avg QP:18.43 size: 11998
x264 [info]: frame B:10774 Avg QP:19.96 size: 4403
x264 [info]: consecutive B-frames: 4.7% 2.5% 3.7% 89.1%
x264 [info]: mb I I16..4: 48.6% 0.0% 51.4%
x264 [info]: mb P I16..4: 13.4% 0.0% 3.9% P16..4: 35.2% 10.9% 5.1% 0.0% 0.0% skip:31.5%
x264 [info]: mb B I16..4: 4.6% 0.0% 0.5% B16..8: 24.4% 5.3% 0.2% direct:10.0% skip:55.1% L0:46.7% L1:48.2% BI: 5.1%
x264 [info]: coded y,uvDC,uvAC intra: 20.9% 49.0% 18.1% inter: 5.9% 18.7% 0.8%
x264 [info]: i16 v,h,dc,p: 44% 28% 10% 18%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 26% 21% 4% 7% 5% 6% 4% 4%
x264 [info]: i8c dc,h,v,p: 54% 23% 17% 6%
x264 [info]: Weighted P-Frames: Y:4.4% UV:2.5%
x264 [info]: ref P L0: 67.7% 32.3%
x264 [info]: ref B L0: 78.6% 21.4%
x264 [info]: ref B L1: 92.1% 7.9%
x264 [info]: kb/s:1390.83
[15:00:00] mux: track 0, 15272 frames, 110728181 bytes, 1390.69 kbps, fifo 2048
[15:00:00] mux: track 1, 29855 frames, 12875115 bytes, 161.70 kbps, fifo 4096
[15:00:00] mux: track 2, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[15:00:00] mux: track 3, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[15:00:00] Finished work at: Tue Mar 07 15:00:00 2023
[15:00:00] libhb: work result = 0

# Job Completed!
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Subtitles not copied in transcode

Post by mduell »

OP also selected forced only, and none of the subs were marked as forced, so per OPs directions HB didn't burn in any subs.
k9393
Posts: 9
Joined: Tue Mar 07, 2023 1:35 am

Re: Subtitles not copied in transcode

Post by k9393 »

Sorry for being a newbie, but I am not sure what this means? What is "OP"? Also, how do you mark a sub as forced? Thanks for your patience.
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: Subtitles not copied in transcode

Post by Woodstock »

"OP" means Original Poster (i.e., you).

"Forced" means a subtitle that is displayed regardless whether you have subtitles generally turned on. Usually, it's when you have foreign audio or video that is different from normal. Think something like German in a French movie, when you're watching in French.

You cannot generally MARK anything as "forced", though. That's up to the people who composed the video. Sometimes they create a separate track for "forced" subtitles, sometimes they tag some subtitles are "forced". The "forced" search in handbrake looks for a track that only has 10% or fewer subtitles than other tracks, which catches most such things. But not everything.

The main thing to remember is that PGS (bluray) subtitles can't exist in an MP4 file. One track will be burned in, and others will be tossed out. If you need more than one subtitle track, MKV is the file type to use.
Deleted User 11865

Re: Subtitles not copied in transcode

Post by Deleted User 11865 »

Woodstock wrote: Wed Mar 08, 2023 2:07 pmThe "forced" search in handbrake looks for a track that only has 10% or fewer subtitles than other tracks, which catches most such things. But not everything.
You can also specify to discard non-forced packets on a track by tack basis (the Forced Only checkbox), which k9393 did. In his case, with that checkbox enabled, he won't get any regular subtitles even in MKV (HandBrake will create the track, but there will be nothing in it).
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Subtitles not copied in transcode

Post by mduell »

k9393 wrote: Wed Mar 08, 2023 4:16 am Sorry for being a newbie, but I am not sure what this means? What is "OP"? Also, how do you mark a sub as forced? Thanks for your patience.
OP is original poster, i.e. you.

With a subtitle editor. But it would be easier just to not require the subtitles to be forced, i.e. don't check the box.
k9393
Posts: 9
Joined: Tue Mar 07, 2023 1:35 am

Re: Subtitles not copied in transcode

Post by k9393 »

Hi All,
Thank-you for your responses. I will try some more combinations for the subtitle settings.

Under the "Summary" tab I know that I need to select "MKV" for the "Format:". I am using the "Fast 720p30" "Preset:".

Can you let me know what settings I should be using under the Subtitles tab and the reasoning for them. Specifically:

1. for "Tracks" which option should I select (I have been using "Add All Remaining Tracks" which gives me the following 3 tracks: "Foreign Audio Scan", "1 English [PGS]", "2 English [PGS]")?

2. For each the tracks which items ("Forced Only", "Burn In", and "Default") should I check? I have noticed that I have the option of checking "Forced Only" for any combination of the tracks, but can check only one track for each of "Burn In" and "Default". The default checks are ""Forced Only" and "Burn In"for the ""Foreign Audio Scan" track, but I think I need to change this. Also, how is an entry in "Name:" used?

3. For "Selection Behavior...":
3(a). What should I select for "Track Selection Behavior:" (the default is "None")?
3(b). What "Language" should I select (default is nothing)? Should I select "(Any)" or "English" or both?
3(c). What "Options:" should I check: "Add Closed Captions when available" (unchecked by default) and/or "Add 'Foreign Audio Scan'" (checked by default)?
3(d). What "Burn-In Behavior:" should I select (default is "Foreign Audio Scan")?

Thanks
Post Reply