long list of subtitles leads to failed subtitle encoding

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
nasruddin
Posts: 49
Joined: Mon Jun 05, 2023 6:13 pm

long list of subtitles leads to failed subtitle encoding

Post by nasruddin »

Description of problem or question:
A video file with many subtitles - 22 in this case - can't be loaded into handbrake properly. It only sees one of the subtitle tracks
(apparently at random). MP4 burns that one in. MKV doesn't burn in but has the same list of 1 subtitle. In the MKV version the 1
remaining subtitle can be turned on and off.


Steps to reproduce the problem (If Applicable):
Tried mp4, mkv; source tried MakeMKV and Red Fx extraction



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



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 CPU       X 980  @ 3.33GHz
Ram: 24567 MB, 
GPU Information:
  AMD Radeon HD 5570 - 15.201.1151.1008
Screen: 1920x1080


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

 # Starting Encode ...

[11:09:37] base preset: SuperHQAllsubtitle (Modified)
[11:09:37] Remote Process started with Process ID: 84644 using port: 8037. Max Allowed Instances: 1
[11:09:37] Worker: Starting HandBrake Engine ...
[11:09:37] Worker: Starting Web Server on port 8037 ...
[11:09:38] Worker: Disconnected worker monitoring enabled!
[11:09:38] Compile-time hardening features are enabled
[11:09:38] qsv: not available on this system
[11:09:38] vcn: not available on this system
Cannot load nvEncodeAPI64.dll
init: starting libhb thread
[11:09:38] Starting work at: Mon Jun 05 11:09:38 2023
[11:09:38] 1 job(s) to process
[11:09:38] 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
      },
      {
        "DRC": 0,
        "Encoder": "copy:ac3",
        "Gain": 0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Stereo",
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "Bitrate": 160,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Stereo",
        "Track": 1,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3"
    ]
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "Y:\\videos\\Chimes At Midnight\\disk1\\AnyDVD\\Serenity T47-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": 14,
        "Settings": {
          "crop-bottom": "40",
          "crop-left": "0",
          "crop-right": "2",
          "crop-top": "48",
          "height": "392",
          "width": "718"
        }
      },
      {
        "ID": 7,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 8,
    "Den": 9
  },
  "Metadata": {
    "Name": "Serenity"
  },
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "Y:\\videos\\Serenity\\MakeMKV\\Serenity_t47.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 11,
        "Offset": 0,
        "Track": 10
      }
    ]
  },
  "Video": {
    "Encoder": "x264",
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "ref=5:bframes=5",
    "Preset": "veryslow",
    "Profile": "high",
    "Quality": 18,
    "QSV": {
      "Decode": false
    },
    "HardwareDecode": 0
  }
}
[11:09:38] CPU: Intel(R) Core(TM) i7 CPU       X 980  @ 3.33GHz
[11:09:38]  - logical processor count: 12
[11:09:38] Intel Quick Sync Video support: no
[11:09:38] hb_scan: path=Y:\videos\Serenity\MakeMKV\Serenity_t47.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image Y:\videos\Serenity\MakeMKV\Serenity_t47.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
[11:09:38] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
liblibdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
dvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[11:09:38] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'Y:\videos\Serenity\MakeMKV\Serenity_t47.mkv':
  Metadata:
    title           : Serenity
    encoder         : libmakemkv v1.17.4 (1.3.10/1.5.2) win(x64-release)
    creation_time   : 2023-06-04T07:08:52.000000Z
  Duration: 00:00:16.78, start: 0.000000, bitrate: 5337 kb/s
  Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 1k tbn
    Metadata:
      BPS-eng         : 4489645
      DURATION-eng    : 00:00:16.783433333
      NUMBER_OF_FRAMES-eng: 422
      NUMBER_OF_BYTES-eng: 9418716
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Side data:
      cpb: bitrate max/min/avg: 9800000/0/0 buffer size: 1835008 vbv_delay: N/A
  Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 00:00:16.800000000
      NUMBER_OF_FRAMES-eng: 525
      NUMBER_OF_BYTES-eng: 403200
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 00:00:16.800000000
      NUMBER_OF_FRAMES-eng: 525
      NUMBER_OF_BYTES-eng: 403200
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 29146
      DURATION-eng    : 00:00:13.296616666
      NUMBER_OF_FRAMES-eng: 12
      NUMBER_OF_BYTES-eng: 48442
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:4(spa): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 25454
      DURATION-eng    : 00:00:13.363350000
      NUMBER_OF_FRAMES-eng: 10
      NUMBER_OF_BYTES-eng: 42518
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:5(fra): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 25415
      DURATION-eng    : 00:00:13.363350000
      NUMBER_OF_FRAMES-eng: 10
      NUMBER_OF_BYTES-eng: 42453
      SOURCE_ID-eng   : 001202
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:6(jpn): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 14091
      DURATION-eng    : 00:00:13.263250000
      NUMBER_OF_FRAMES-eng: 8
      NUMBER_OF_BYTES-eng: 23362
      SOURCE_ID-eng   : 001203
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:7(fra): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 21745
      DURATION-eng    : 00:00:13.096416666
      NUMBER_OF_FRAMES-eng: 10
      NUMBER_OF_BYTES-eng: 35598
      SOURCE_ID-eng   : 001204
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:8(deu): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 25274
      DURATION-eng    : 00:00:13.096416666
      NUMBER_OF_FRAMES-eng: 10
      NUMBER_OF_BYTES-eng: 41374
      SOURCE_ID-eng   : 001205
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:9(ita): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 23744
      DURATION-eng    : 00:00:13.396716666
      NUMBER_OF_FRAMES-eng: 10
      NUMBER_OF_BYTES-eng: 39760
      SOURCE_ID-eng   : 001206
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:10(spa): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 24006
      DURATION-eng    : 00:00:13.296616666
      NUMBER_OF_FRAMES-eng: 10
      NUMBER_OF_BYTES-eng: 39899
      SOURCE_ID-eng   : 001207
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:11(nld): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 27085
      DURATION-eng    : 00:00:13.196516666
      NUMBER_OF_FRAMES-eng: 10
      NUMBER_OF_BYTES-eng: 44677
      SOURCE_ID-eng   : 001208
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:12(por): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 25600
      DURATION-eng    : 00:00:13.129783333
      NUMBER_OF_FRAMES-eng: 10
      NUMBER_OF_BYTES-eng: 42013
      SOURCE_ID-eng   : 001209
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:13(dan): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 25191
      DURATION-eng    : 00:00:13.196516666
      NUMBER_OF_FRAMES-eng: 10
      NUMBER_OF_BYTES-eng: 41554
      SOURCE_ID-eng   : 00120A
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:14(nor): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 20056
      DURATION-eng    : 00:00:13.129783333
      NUMBER_OF_FRAMES-eng: 10
      NUMBER_OF_BYTES-eng: 32916
      SOURCE_ID-eng   : 00120B
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:15(fin): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 23182
      DURATION-eng    : 00:00:13.196516666
      NUMBER_OF_FRAMES-eng: 10
      NUMBER_OF_BYTES-eng: 38239
      SOURCE_ID-eng   : 00120C
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:16(swe): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 25852
      DURATION-eng    : 00:00:13.329983333
      NUMBER_OF_FRAMES-eng: 10
      NUMBER_OF_BYTES-eng: 43074
      SOURCE_ID-eng   : 00120D
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:17(ell): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 27780
      DURATION-eng    : 00:00:13.430083333
      NUMBER_OF_FRAMES-eng: 10
      NUMBER_OF_BYTES-eng: 46637
      SOURCE_ID-eng   : 00120E
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:18(kor): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 22547
      DURATION-eng    : 00:00:13.730383333
      NUMBER_OF_FRAMES-eng: 10
      NUMBER_OF_BYTES-eng: 38697
      SOURCE_ID-eng   : 00120F
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:19(eng): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 41469
      DURATION-eng    : 00:00:13.563550000
      NUMBER_OF_FRAMES-eng: 10
      NUMBER_OF_BYTES-eng: 70307
      SOURCE_ID-eng   : 001210
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:20(jpn): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 18222
      DURATION-eng    : 00:00:12.495816666
      NUMBER_OF_FRAMES-eng: 8
      NUMBER_OF_BYTES-eng: 28462
      SOURCE_ID-eng   : 001211
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:21(fra): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 30506
      DURATION-eng    : 00:00:13.229883333
      NUMBER_OF_FRAMES-eng: 8
      NUMBER_OF_BYTES-eng: 50446
      SOURCE_ID-eng   : 001212
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:22(deu): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 33387
      DURATION-eng    : 00:00:13.129783333
      NUMBER_OF_FRAMES-eng: 8
      NUMBER_OF_BYTES-eng: 54793
      SOURCE_ID-eng   : 001213
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:23(ita): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 31603
      DURATION-eng    : 00:00:13.063050000
      NUMBER_OF_FRAMES-eng: 8
      NUMBER_OF_BYTES-eng: 51604
      SOURCE_ID-eng   : 001214
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:24(spa): Subtitle: hdmv_pgs_subtitle, 720x480
    Metadata:
      BPS-eng         : 29104
      DURATION-eng    : 00:00:12.896216666
      NUMBER_OF_FRAMES-eng: 8
      NUMBER_OF_BYTES-eng: 46917
      SOURCE_ID-eng   : 001215
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-06-04 07:08:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[11:09:38] scan: decoding previews for title 1
[11:09:38] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[11:09:38] scan: audio 0x2: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[11:09:38] scan: 10 previews, 720x480, 29.970 fps, autocrop = 48/40/0/2, aspect 4:3, PAR 8:9, color profile: 6-1-6, chroma location: left
[11:09:38] libhb: scan thread found 1 valid title(s)
[11:09:38] Starting Task: Subtitle Scan
[11:09:38] work: only 1 chapter, disabling chapter markers
[11:09:38] job configuration:
[11:09:38]  * source
[11:09:38]    + Y:\videos\Serenity\MakeMKV\Serenity_t47.mkv
[11:09:38]    + title 1, chapter(s) 1 to 1
[11:09:38]    + container: matroska,webm
[11:09:38]    + data rate: 5337 kbps
[11:09:38]  * destination
[11:09:38]    + Y:\videos\Chimes At Midnight\disk1\AnyDVD\Serenity T47-1.mkv
[11:09:38]    + container: Matroska (libavformat)
[11:09:38]  * video track
[11:09:38]    + decoder: mpeg2video 8-bit (yuv420p)
[11:09:38]    + filters
[11:09: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)
[11:09:38]      + Decomb (mode=39)
[11:09:38]      + Framerate Shaper (mode=2:rate=27000000/900000)
[11:09:38]        + frame rate: 29.970 fps -> peak rate limited to 30.000 fps
[11:09:38]      + Crop and Scale (width=718:height=392:crop-top=48:crop-bottom=40:crop-left=0:crop-right=2)
[11:09:38]        + source: 720 * 480, crop (48/40/0/2): 718 * 392, scale: 718 * 392
[11:09:38]    + Output geometry
[11:09:38]      + storage dimensions: 718 x 392
[11:09:38]      + pixel aspect ratio: 8 : 9
[11:09:38]      + display dimensions: 638 x 392
[11:09:38]  * Foreign Audio Search: Passthrough, Forced Only
[11:09:38]    + subtitle, English [PGS] (track 0, id 0x3, Picture)
[11:09:38]    + subtitle, English [PGS] (track 16, id 0x13, Picture)
[11:09:38] sync: expecting 502 video frames
[11:09:38] reader: done. 1 scr changes
[11:09:38] work: average encoding speed for job is 0.000000 fps
[11:09:38] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[11:09:38] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[11:09:38] vfr: lost time: 0 (0 frames)
[11:09:38] vfr: gained time: 0 (0 frames) (0 not accounted for)
[11:09:39] mpeg2video-decoder done: 0 frames, 0 decoder errors
[11:09:39] sync: got 0 frames, 502 expected
[11:09:39] Subtitle track 0 (id 0x3) 'English [PGS]': 6 hits (0 forced)
[11:09:39] Subtitle track 16 (id 0x13) 'English [PGS]': 5 hits (0 forced)
[11:09:39] No candidate detected during subtitle scan
[11:09:39] Starting Task: Encoding Pass
[11:09:39] work: track 1, dithering not supported by codec
[11:09:39] work: track 3, dithering not supported by codec
[11:09:39] work: only 1 chapter, disabling chapter markers
[11:09:39] job configuration:
[11:09:39]  * source
[11:09:39]    + Y:\videos\Serenity\MakeMKV\Serenity_t47.mkv
[11:09:39]    + title 1, chapter(s) 1 to 1
[11:09:39]    + container: matroska,webm
[11:09:39]    + data rate: 5337 kbps
[11:09:39]  * destination
[11:09:39]    + Y:\videos\Chimes At Midnight\disk1\AnyDVD\Serenity T47-1.mkv
[11:09:39]    + container: Matroska (libavformat)
[11:09:39]  * video track
[11:09:39]    + decoder: mpeg2video 8-bit (yuv420p)
[11:09:39]    + filters
[11:09:39]      + 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)
[11:09:39]      + Decomb (mode=39)
[11:09:39]      + Framerate Shaper (mode=2:rate=27000000/900000)
[11:09:39]        + frame rate: 29.970 fps -> peak rate limited to 30.000 fps
[11:09:39]      + Crop and Scale (width=718:height=392:crop-top=48:crop-bottom=40:crop-left=0:crop-right=2)
[11:09:39]        + source: 720 * 480, crop (48/40/0/2): 718 * 392, scale: 718 * 392
[11:09:39]    + Output geometry
[11:09:39]      + storage dimensions: 718 x 392
[11:09:39]      + pixel aspect ratio: 8 : 9
[11:09:39]      + display dimensions: 638 x 392
[11:09:39]    + encoder: H.264 (libx264)
[11:09:39]      + preset:  veryslow
[11:09:39]      + options: ref=5:bframes=5
[11:09:39]      + profile: high
[11:09:39]      + level:   4.0
[11:09:39]      + quality: 18.00 (RF)
[11:09:39]      + color profile: 6-1-6
[11:09:39]      + chroma location: left
[11:09:39]  * subtitle track 1, dansk [PGS] (track 10, id 0xd, Picture) -> Passthrough
[11:09:39]  * audio track 1
[11:09:39]    + name: Stereo
[11:09:39]    + decoder: English (AC3) (2.0 ch) (192 kbps) (track 1, id 0x1)
[11:09:39]      + bitrate: 192 kbps, samplerate: 48000 Hz
[11:09:39]    + mixdown: Stereo
[11:09:39]    + encoder: AAC (libavcodec)
[11:09:39]      + bitrate: 160 kbps, samplerate: 48000 Hz
[11:09:39]  * audio track 2
[11:09:39]    + name: Stereo
[11:09:39]    + decoder: English (AC3) (2.0 ch) (192 kbps) (track 1, id 0x1)
[11:09:39]      + bitrate: 192 kbps, samplerate: 48000 Hz
[11:09:39]    + AC3 Passthru
[11:09:39]  * audio track 3
[11:09:39]    + name: Stereo
[11:09:39]    + decoder: English (AC3) (2.0 ch) (192 kbps) (track 2, id 0x2)
[11:09:39]      + bitrate: 192 kbps, samplerate: 48000 Hz
[11:09:39]    + mixdown: Stereo
[11:09:39]    + encoder: AAC (libavcodec)
[11:09:39]      + bitrate: 160 kbps, samplerate: 48000 Hz
[11:09:39] sync: expecting 502 video frames
[11:09:39] encx264: min-keyint: 30, keyint: 300
[11:09:39] encx264: encoding at constant RF 18.000000
[11:09:39] encx264: unparsed options: ref=5:bframes=5:level=4.0:b-adapt=2:direct=auto:analyse=all:me=umh:merange=24:subme=10:trellis=2:vbv-bufsize=31250:vbv-maxrate=25000:rc-lookahead=60
x264 [info]: using SAR=8/9
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 UnalignedStack
x264 [info]: profile High, level 4.0, 4:2:0, 8-bit
[11:09:39] sync: first pts video is 0
[11:09:39] sync: "Chapter 1" (1) at frame 1 time 0
[11:09:39] sync: first pts audio 0x1 is 0
[11:09:39] sync: first pts audio 0x1 is 0
[11:09:39] sync: first pts audio 0x2 is 0
[11:09:39] 2.102100s: Video -> Film
[11:09:39] sync: first pts subtitle 0xd is 204210
[11:09:44] reader: done. 1 scr changes
[11:09:44] 15.640866s: Film -> Video
[11:09:48] work: average encoding speed for job is 67.799744 fps
[11:09:48] comb detect: heavy 9 | light 44 | uncombed 369 | total 422
[11:09:48] decomb: deinterlaced 9 | blended 44 | unfiltered 369 | total 422
[11:09:48] vfr: 422 frames output, 0 dropped and 0 duped for CFR/PFR
[11:09:48] vfr: lost time: 0 (0 frames)
[11:09:48] vfr: gained time: 0 (0 frames) (0 not accounted for)
[11:09:48] ac3-decoder done: 525 frames, 0 decoder errors
[11:09:48] ac3-decoder done: 525 frames, 0 decoder errors
[11:09:48] ac3-decoder done: 525 frames, 0 decoder errors
[11:09:48] mpeg2video-decoder done: 422 frames, 0 decoder errors
[11:09:48] sync: got 422 frames, 502 expected
[11:09:48] sync: framerate min 20.000 fps, max 29.970 fps, avg 25.156 fps
x264 [info]: frame I:3     Avg QP:11.91  size: 35399
x264 [info]: frame P:83    Avg QP:16.55  size: 11329
x264 [info]: frame B:336   Avg QP:20.33  size:  2748
x264 [info]: consecutive B-frames:  1.4%  0.5%  2.8% 19.9%  7.1% 68.2%
x264 [info]: mb I  I16..4: 35.1% 45.6% 19.3%
x264 [info]: mb P  I16..4:  0.4%  7.7%  0.7%  P16..4: 28.9% 13.4%  9.5%  0.6%  0.2%    skip:38.6%
x264 [info]: mb B  I16..4:  0.0%  0.2%  0.0%  B16..8: 30.7%  5.8%  1.2%  direct: 3.3%  skip:58.7%  L0:43.2% L1:41.8% BI:15.0%
x264 [info]: 8x8 transform intra:75.3% inter:67.9%
x264 [info]: direct mvs  spatial:89.6% temporal:10.4%
x264 [info]: coded y,uvDC,uvAC intra: 72.5% 59.0% 38.0% inter: 15.0% 10.0% 1.3%
x264 [info]: i16 v,h,dc,p: 74% 14%  5%  7%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 13% 18%  9% 10% 11%  9% 11% 10%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 20%  8%  7% 11% 12% 10%  9% 12%
x264 [info]: i8c dc,h,v,p: 48% 24% 17% 11%
x264 [info]: Weighted P-Frames: Y:2.4% UV:1.2%
x264 [info]: ref P L0: 50.6% 11.4% 22.7%  7.6%  7.7%  0.2%
x264 [info]: ref B L0: 79.6% 14.6%  4.1%  1.7%
x264 [info]: ref B L1: 95.3%  4.7%
x264 [info]: kb/s:939.33
[11:09:48] mux: track 0, 422 frames, 1969546 bytes, 936.94 kbps, fifo 512
[11:09:48] mux: track 1, 788 frames, 336784 bytes, 160.21 kbps, fifo 1024
[11:09:48] mux: track 2, 525 frames, 403200 bytes, 191.81 kbps, fifo 1024
[11:09:48] mux: track 3, 788 frames, 311214 bytes, 148.05 kbps, fifo 1024
[11:09:48] mux: track 4, 10 frames, 41554 bytes, 19.77 kbps, fifo 16
[11:09:48] Finished work at: Mon Jun 05 11:09:48 2023
[11:09:48] libhb: work result = 0

 # Job Completed!


nasruddin
Posts: 49
Joined: Mon Jun 05, 2023 6:13 pm

Re: long list of subtitles leads to failed subtitle encoding

Post by nasruddin »

Thanks, but I don't see anything helpful in these that i haven't already done.
I have (Any) as the default for both audio & subtitles in a customized preset in order to reduce the amount of handwork I have to do.
Works fine for audio, but something is having a hard time with long lists of subtitles.
Deleted User 11865

Re: long list of subtitles leads to failed subtitle encoding

Post by Deleted User 11865 »

Make sure to set selection behavior to include *all* subtitles for the selected language(s). (Any) counts as a single language, so if you select "First matching" only one subtitle track will be included.

This is somewhat counter-intuitive but probably annoying to "fix" so I don't think it will change anytime soon.

As for the MP4 container, it cannot contain Blu-ray PGS subtitles; the first subtitle track will get burned-in and any other tracks will be dropped.
nasruddin
Posts: 49
Joined: Mon Jun 05, 2023 6:13 pm

Re: long list of subtitles leads to failed subtitle encoding

Post by nasruddin »

It's set to "All matching selected languages". I am getting this misbehavior with this option.
That reminds me to customize the preset to MKV container to minimize problems with bluray. But that doesn't resolve the misbehavior.
Deleted User 11865

Re: long list of subtitles leads to failed subtitle encoding

Post by Deleted User 11865 »

Can you export your preset to a file and upload it to Dropbox or something?
nasruddin
Posts: 49
Joined: Mon Jun 05, 2023 6:13 pm

Re: long list of subtitles leads to failed subtitle encoding

Post by nasruddin »

There's not that much to it, I'll just post it here

Code: Select all

{
  "PresetList": [
    {
      "AlignAVStart": true,
      "AudioCopyMask": [
        "copy:aac",
        "copy:ac3"
      ],
      "AudioEncoderFallback": "av_aac",
      "AudioLanguageList": [
        "any"
      ],
      "AudioList": [
        {
          "AudioBitrate": 160,
          "AudioCompressionLevel": 0,
          "AudioEncoder": "av_aac",
          "AudioMixdown": "stereo",
          "AudioNormalizeMixLevel": false,
          "AudioSamplerate": "auto",
          "AudioTrackQualityEnable": false,
          "AudioTrackQuality": -1,
          "AudioTrackGainSlider": 0,
          "AudioTrackDRCSlider": 0
        },
        {
          "AudioBitrate": 512,
          "AudioCompressionLevel": 0,
          "AudioEncoder": "copy:ac3",
          "AudioMixdown": "7point1",
          "AudioNormalizeMixLevel": false,
          "AudioSamplerate": "auto",
          "AudioTrackQualityEnable": false,
          "AudioTrackQuality": -1,
          "AudioTrackGainSlider": 0,
          "AudioTrackDRCSlider": 0
        }
      ],
      "AudioSecondaryEncoderMode": true,
      "AudioTrackSelectionBehavior": "all",
      "ChapterMarkers": true,
      "ChildrenArray": [],
      "Default": false,
      "FileFormat": "av_mp4",
      "Folder": false,
      "FolderOpen": false,
      "Mp4HttpOptimize": false,
      "Mp4iPodCompatible": false,
      "PictureCropMode": 0,
      "PictureBottomCrop": 0,
      "PictureLeftCrop": 0,
      "PictureRightCrop": 0,
      "PictureTopCrop": 0,
      "PictureDARWidth": 0,
      "PictureDeblockPreset": "off",
      "PictureDeblockTune": "medium",
      "PictureDeblockCustom": "strength=strong:thresh=20:blocksize=8",
      "PictureDeinterlaceFilter": "decomb",
      "PictureCombDetectPreset": "default",
      "PictureCombDetectCustom": "",
      "PictureDeinterlacePreset": "default",
      "PictureDeinterlaceCustom": "",
      "PictureDenoiseCustom": "",
      "PictureDenoiseFilter": "off",
      "PictureSharpenCustom": "",
      "PictureSharpenFilter": "off",
      "PictureSharpenPreset": "medium",
      "PictureSharpenTune": "none",
      "PictureDetelecine": "off",
      "PictureDetelecineCustom": "",
      "PictureColorspacePreset": "off",
      "PictureColorspaceCustom": "",
      "PictureChromaSmoothPreset": "off",
      "PictureChromaSmoothTune": "none",
      "PictureChromaSmoothCustom": "",
      "PictureItuPAR": false,
      "PictureKeepRatio": true,
      "PicturePAR": "auto",
      "PicturePARWidth": 0,
      "PicturePARHeight": 0,
      "PictureWidth": 1920,
      "PictureHeight": 1080,
      "PictureUseMaximumSize": true,
      "PictureAllowUpscaling": false,
      "PictureForceHeight": 0,
      "PictureForceWidth": 0,
      "PicturePadMode": "none",
      "PicturePadTop": 0,
      "PicturePadBottom": 0,
      "PicturePadLeft": 0,
      "PicturePadRight": 0,
      "PicturePadColor": "black",
      "PresetDescription": "",
      "PresetName": "SuperHQAllsubtitle",
      "Type": 1,
      "SubtitleAddCC": false,
      "SubtitleAddForeignAudioSearch": true,
      "SubtitleAddForeignAudioSubtitle": false,
      "SubtitleBurnBehavior": "none",
      "SubtitleBurnBDSub": false,
      "SubtitleBurnDVDSub": false,
      "SubtitleLanguageList": [
        "any"
      ],
      "SubtitleTrackSelectionBehavior": "all",
      "VideoAvgBitrate": 0,
      "VideoColorMatrixCode": 0,
      "VideoEncoder": "x264",
      "VideoFramerate": "30",
      "VideoFramerateMode": "pfr",
      "VideoGrayScale": false,
      "VideoScaler": "swscale",
      "VideoPreset": "veryslow",
      "VideoTune": "",
      "VideoProfile": "high",
      "VideoLevel": "4.0",
      "VideoOptionExtra": "ref=5:bframes=5",
      "VideoQualityType": 2,
      "VideoQualitySlider": 18,
      "VideoTwoPass": true,
      "VideoTurboTwoPass": false,
      "x264UseAdvancedOptions": false,
      "PresetDisabled": false,
      "MetadataPassthrough": true
    }
  ],
  "VersionMajor": 50,
  "VersionMicro": 0,
  "VersionMinor": 0
}
Deleted User 11865

Re: long list of subtitles leads to failed subtitle encoding

Post by Deleted User 11865 »

Your container is still set to MP4, which is why additional tracks are being dropped (arguably in a rather confusing and/or non-obvious manner, took me a while to figure out what was happening).

i.e. the preset is set correctly to add all tracks from the source, the tracks actually get added but also get auto-removed immediately because the MP4 container does not support multiple Blu-ray subtitles (one track remains because the UI expects it to be sanitized to burn-in before encoding, as well as Foreign Audio Search which will either be sanitized to burn-in -- causing the other track to be dropped as well -- or result in no candidate and being removed from the list altogether before the actual encode begins).
nasruddin
Posts: 49
Joined: Mon Jun 05, 2023 6:13 pm

Re: long list of subtitles leads to failed subtitle encoding

Post by nasruddin »

I also have a MKV version & almost the same thing happens, as I detailed in an earlier message.
Deleted User 11865

Re: long list of subtitles leads to failed subtitle encoding

Post by Deleted User 11865 »

I don't have a Windows VM set up right now., so I cannot verify/reproduce your issue. Anyone else who can?
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: long list of subtitles leads to failed subtitle encoding

Post by rollin_eng »

Could you post your encode log and preset file for mkv file.
nasruddin
Posts: 49
Joined: Mon Jun 05, 2023 6:13 pm

Re: long list of subtitles leads to failed subtitle encoding

Post by nasruddin »

I believe I have figured this out. I wasn't consistently using the MKV version of the preset.
As I would load files I might remember to use MKV based preset on one but not on the next &c.

I have found that a good strategy is to have the dashboard already set to the MKV preset (maybe deliberately with another file), and then load a folder - all of the items seem to inherit the right preset then.
Post Reply