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!