Adding Subtitles to multiple videos in a Batch

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
pamme25
New User
Posts: 1
Joined: Sat Jun 03, 2023 4:29 am

Adding Subtitles to multiple videos in a Batch

Post by pamme25 »

Description of problem or question:

I need help adding subtitles to multiple files in a queue. I have no issues adding subtitles to 1 file at a time or the 1st file in a queue. But I haven’t found the right settings to add to a group of videos in a queue so the subtitles can be incorporated into each one of the uploaded group.

Steps to reproduce the problem (If Applicable):

Steps I’ve done so far, in this instance:

1. In Source Selection I choose – Folder (Batch Scan) > Select Folder
2. Choose my Custom Preset (which Includes: Fast 1080p30 (Default))
3. Click: Subtitles Tab
a. Click: Selection Behavior
b. Under Track Selection Behavior, Click: All Matching Selected Languages
c. Under Available Languages, Click: English > Click: Move Right
d. Under Options, Un-Click: Add Foreign Audio Scan (I’ve done both with this, checked and unchecked this and it doesn’t make a difference – same with Add Closed Captions when available
e. Under Burn-In Behavior, Click: First Track (I selected this because there is only one subtitle track, but I’ve also selected in different attempts to choose Foreign Audio Scan and Foreign Audio Preferred else First – but this also doesn’t make a difference either.
f. Click: Save
4. In the Subtitle Tab under the Tracks section, a subtitle track is already selected (it’s included in the original files).
a. Click: the drop-down menu and select the language subtitle track
b. Click: Burn In or Default or none (I get the same results when I choose whichever of those 3 options) This time I chose Burn In
5. Click: Add All to Queue
6. Go back to Subtitles Tab
a. Confirm that under the Tracks, In the drop-down menu, the Subtitle file is selected and Burn In is Checked
7. Click: Start Queue
a. In this Batch I had 6 files, all 6 files were converted perfectly But only the 1st file in the batch included subtitles – videos 2 to 6 did not include any subtitles.

Which steps am I missing to include subtitles in videos 2 through 6? I’ve googled this issue and there are a lot of resources on how to include subtitles to a video file, but I haven’t found one that explains this for a batch of videos.

HandBrake version (e.g., 1.0.0):

Version: 1.6.1 (2023012300)

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

Windows 10

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.19045.0
CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
Ram: 16338 MB, 
GPU Information:
  NVIDIA GeForce GTX 1080 - 31.0.15.1694
Screen: 1920x1080
Temp Dir: C:\Users\pciri\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\pciri\AppData\Roaming\HandBrake

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

 # Starting Encode ...

[01:55:12] base preset: Fast 1080p30 (Modified)
[01:55:12] hb_init: starting libhb thread
[01:55:12] Starting work at: Sat Jun 03 01:55:12 2023
[01:55:12] 1 job(s) to process
[01:55:12] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Stereo",
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac"
    ]
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "J:\\Bit Torrent\\Completed Downloads\\Converted\\Inside No. 9 (Uk) - Season 02 Episode 06.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": 1,
    "Den": 1
  },
  "Metadata": {
    "AlbumArtist": "BBC TV",
    "Artist": "BBC Two",
    "Comment": "Having never consulted the spirit world before, Tina isn\u0027t quite sure what to ex",
    "Composer": "BBC iPlayer",
    "Description": "Having never consulted the spirit world before, Tina isn\u0027t quite sure what to ex",
    "Genre": "Comedy",
    "LongDescription": "Having never consulted the spirit world before, Tina isn\u0027t quite sure what to expect. Her visit to the spiritualist medium Madam Talbot has been arranged by her sister. Hives, Talbot\u0027s assistant in the mundane world, seems quite helpful, but there\u0027s something already waiting for Tina on the Other Side, and Hives knows all about it.",
    "Name": "Seance Time",
    "ReleaseDate": "2015-04-29"
  },
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 6,
    "Path": "J:\\Bit Torrent\\Completed Downloads\\Shrink - a-m\\Inside No. 9 (UK) - Season 02 Episode 06.mp4"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "main",
    "Quality": 22,
    "QSV": {
      "Decode": false
    },
    "HardwareDecode": 0
  }
}
[01:55:12] CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
[01:55:12]  - Intel microarchitecture Kaby Lake
[01:55:12]  - logical processor count: 12
[01:55:12] Intel Quick Sync Video support: no
[01:55:12] hb_scan: path=J:\Bit Torrent\Completed Downloads\Shrink - a-m\Inside No. 9 (UK) - Season 02 Episode 06.mp4, title_index=6
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image J:\Bit Torrent\Completed Downloads\Shrink - a-m\Inside No. 9 (UK) - Season 02 Episode 06.mp4
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
[01:55:12] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[01:55:12] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'J:\Bit Torrent\Completed Downloads\Shrink - a-m\Inside No. 9 (UK) - Season 02 Episode 06.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2mp41
    creation_time   : 2018-01-05T12:48:12.000000Z
    title           : Seance Time
    artist          : BBC Two
    album_artist    : BBC TV
    composer        : BBC iPlayer
    date            : 2015-04-29
    encoder         : HandBrake 1.0.7 2017082500
    comment         : Having never consulted the spirit world before, Tina isn't quite sure what to ex
    genre           : Comedy
    description     : Having never consulted the spirit world before, Tina isn't quite sure what to ex
    synopsis        : Having never consulted the spirit world before, Tina isn't quite sure what to expect. Her visit to the spiritualist medium Madam Talbot has been arranged by her sister. Hives, Talbot's assistant in the mundane world, seems quite helpful, but there's somet
  Duration: 00:28:13.34, start: 0.000000, bitrate: 760 kb/s
  Stream #0:0[0x1](und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 661 kb/s, 25 fps, 100 tbr, 90k tbn (default)
    Metadata:
      creation_time   : 2018-01-05T12:48:12.000000Z
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 93 kb/s (default)
    Metadata:
      creation_time   : 2018-01-05T12:48:12.000000Z
      handler_name    : Stereo
      vendor_id       : [0][0][0][0]
      title           : Stereo
  Stream #0:2[0x3](und): Subtitle: mov_text (tx3g / 0x67337874), 1280x60, 0 kb/s (default)
    Metadata:
      creation_time   : 2018-01-05T12:48:12.000000Z
      handler_name    : SubtitleHandler
[01:55:12] scan: decoding previews for title 6
[01:55:12] scan: audio 0x1: aac, rate=48000Hz, bitrate=93375 Unknown (AAC LC) (2.0 ch) (93 kbps)
[01:55:12] scan: 10 previews, 1280x720, 24.997 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[01:55:12] scan: supported video decoders: avcodec nvdec
[01:55:12] libhb: scan thread found 1 valid title(s)
[01:55:12] Starting Task: Encoding Pass
[01:55:12] Skipping crop/scale filter
[01:55:12] work: track 1, dithering not supported by codec
[01:55:12] work: only 1 chapter, disabling chapter markers
[01:55:12] job configuration:
[01:55:12]  * source
[01:55:12]    + J:\Bit Torrent\Completed Downloads\Shrink - a-m\Inside No. 9 (UK) - Season 02 Episode 06.mp4
[01:55:12]    + title 6, chapter(s) 1 to 1
[01:55:12]    + container: mov,mp4,m4a,3gp,3g2,mj2
[01:55:12]    + data rate: 760 kbps
[01:55:12]  * destination
[01:55:12]    + J:\Bit Torrent\Completed Downloads\Converted\Inside No. 9 (Uk) - Season 02 Episode 06.mp4
[01:55:12]    + container: MPEG-4 (libavformat)
[01:55:12]      + align initial A/V stream timestamps
[01:55:12]  * video track
[01:55:12]    + decoder: hevc 8-bit (yuv420p)
[01:55:12]      + bitrate 661 kbps
[01:55:12]    + filters
[01:55:12]      + 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)
[01:55:12]      + Decomb (mode=39)
[01:55:12]      + Framerate Shaper (mode=2:rate=27000000/900000)
[01:55:12]        + frame rate: 24.997 fps -> peak rate limited to 30.000 fps
[01:55:12]    + Output geometry
[01:55:12]      + storage dimensions: 1280 x 720
[01:55:12]      + pixel aspect ratio: 1 : 1
[01:55:12]      + display dimensions: 1280 x 720
[01:55:12]    + encoder: H.264 (libx264)
[01:55:12]      + preset:  fast
[01:55:12]      + profile: main
[01:55:12]      + level:   4.0
[01:55:12]      + quality: 22.00 (RF)
[01:55:12]      + color profile: 1-1-1
[01:55:12]      + chroma location: left
[01:55:12]  * audio track 1
[01:55:12]    + name: Stereo
[01:55:12]    + decoder: Unknown (AAC LC) (2.0 ch) (93 kbps) (track 1, id 0x1)
[01:55:12]      + bitrate: 93 kbps, samplerate: 48000 Hz
[01:55:12]    + mixdown: Stereo
[01:55:12]    + encoder: AAC (libavcodec)
[01:55:12]      + bitrate: 160 kbps, samplerate: 48000 Hz
[01:55:12] sync: expecting 42329 video frames
[01:55:12] encx264: encoding at constant RF 22.000000
[01:55:12] 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=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 UnalignedStack
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[01:55:12] sync: first pts video is 0
[01:55:12] sync: "Chapter 1" (1) at frame 1 time 0
[01:55:12] sync: first pts audio 0x1 is 0
[01:59:26] reader: done. 1 scr changes
[01:59:27] work: average encoding speed for job is 166.426620 fps
[01:59:27] comb detect: heavy 4 | light 22 | uncombed 42303 | total 42329
[01:59:27] decomb: deinterlaced 4 | blended 22 | unfiltered 42303 | total 42329
[01:59:27] vfr: 42329 frames output, 0 dropped and 0 duped for CFR/PFR
[01:59:27] vfr: lost time: 0 (0 frames)
[01:59:27] vfr: gained time: 0 (0 frames) (0 not accounted for)
[01:59:27] aac-decoder done: 79372 frames, 0 decoder errors
[01:59:27] hevc-decoder done: 42329 frames, 0 decoder errors
[01:59:27] sync: got 42329 frames, 42329 expected
[01:59:27] sync: framerate min 9.091 fps, max 25.000 fps, avg 24.997 fps
x264 [info]: frame I:536   Avg QP:15.66  size: 45259
x264 [info]: frame P:10992 Avg QP:19.24  size: 11164
x264 [info]: frame B:30801 Avg QP:21.38  size:  3232
x264 [info]: consecutive B-frames:  1.9%  2.5%  2.4% 93.3%
x264 [info]: mb I  I16..4: 37.7%  0.0% 62.3%
x264 [info]: mb P  I16..4:  8.6%  0.0%  4.0%  P16..4: 39.8% 11.3%  4.7%  0.0%  0.0%    skip:31.6%
x264 [info]: mb B  I16..4:  3.1%  0.0%  0.2%  B16..8: 26.6%  3.5%  0.1%  direct: 6.4%  skip:60.1%  L0:43.5% L1:51.5% BI: 4.9%
x264 [info]: coded y,uvDC,uvAC intra: 25.8% 45.0% 7.9% inter: 5.2% 10.9% 0.0%
x264 [info]: i16 v,h,dc,p: 58% 17% 13% 13%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 17% 21%  6%  7%  7%  6%  5%  4%
x264 [info]: i8c dc,h,v,p: 55% 16% 26%  3%
x264 [info]: Weighted P-Frames: Y:1.2% UV:0.3%
x264 [info]: ref P L0: 72.0% 28.0%
x264 [info]: ref B L0: 85.5% 14.5%
x264 [info]: ref B L1: 96.2%  3.8%
x264 [info]: kb/s:1164.59
[01:59:27] mux: track 0, 42329 frames, 246484007 bytes, 1164.49 kbps, fifo 4096
[01:59:27] mux: track 1, 79373 frames, 33371975 bytes, 157.66 kbps, fifo 8192
[01:59:27] Finished work at: Sat Jun 03 01:59:27 2023
[01:59:27] libhb: work result = 0

 # Job Completed!

Deleted User 11865

Re: Adding Subtitles to multiple videos in a Batch

Post by Deleted User 11865 »

Any manual changes need to be applied to each file (title) individually before adding said files to the queue one by one.

Only preset settings get applied to all files/titles automatically, so you need to set the subtitle selection behavior for your custom preset first (don't forget to save the changes to a new preset -- or in-place to the current preset if the Windows GUI lets you do it).

Once the preset is ready and selected, then you can scan the folder and use "Add all to queue".
Post Reply