handbrake dicarding subtitels and Foreign Audio Scan not working

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
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
AllesMeins
Posts: 10
Joined: Fri Jul 22, 2016 7:27 pm

handbrake dicarding subtitels and Foreign Audio Scan not working

Post by AllesMeins »

Description of problem or question:

Since a few months I'm having problems to get the forced subtitles right with handbrake. Mostly I end up with no foreign audio subtitles or with a subtitle-track containing subs for the whole movie. So I did some testing today with my bluray of The Mummy since I know that it has foreign audio parts. My original mkv has 12 subtitle tracks and judging by size tracks 11 and 12 might be the foreign audio parts. After encoding with handbrake (selecting english and german via track selction and adding a foreign language scan) I end up with only five subtitle tracks left and none for the foreign language parts.

HandBrake version (e.g., 1.0.0): 1.3.1
Operating system and version: Ubuntu 20.04


HandBrake Activity Log

Code: Select all

Handbrake Version: 1.3.1 (2020032300)
[15:24:59] gtkgui: Modified Custom Preset: /My Presets/x265 1080p
[15:24:59] Starting work at: Fri May  1 15:24:59 2020

[15:24:59] 1 job(s) to process
[15:24:59] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 0,
                "DRC": 0.0,
                "Encoder": "copy:dtshd",
                "Mixdown": "none",
                "Name": "Surround 5.1",
                "PresetEncoder": "copy",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:mp3",
            "copy:aac",
            "copy:ac3",
            "copy:dts",
            "copy:dtshd",
            "copy:truehd"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 10,
                    "Ticks": 38738700
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 9,
                    "Ticks": 27770242
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 11,
                    "Seconds": 0,
                    "Ticks": 59440631
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 44,
                    "Ticks": 30930900
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 43,
                    "Ticks": 41636595
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 53,
                    "Ticks": 37184648
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 28,
                    "Ticks": 29489460
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 27,
                    "Ticks": 24050276
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 56,
                    "Ticks": 21227456
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 13,
                    "Seconds": 43,
                    "Ticks": 74114040
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 35,
                    "Ticks": 40964674
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 8,
                    "Seconds": 41,
                    "Ticks": 46888091
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 35,
                    "Ticks": 13915152
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 29,
                    "Ticks": 34988703
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 25,
                    "Ticks": 40082543
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 46,
                    "Ticks": 31174893
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 7,
                    "Ticks": 38453415
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 54,
                    "Ticks": 42642601
                },
                "Name": "Chapter 18"
            }
        ],
        "ChapterMarkers": true,
        "File": "/home/gedinixan/Videos/roh/=done=/The Mummy_t00.mkv",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "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": 4,
                "Settings": {
                    "mode": "7"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 12,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 240,
                    "width": 360
                }
            }
        ]
    },
    "Metadata": {
        "Name": "The Mummy"
    },
    "PAR": {
        "Den": 27,
        "Num": 32
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/home/gedinixan/Videos/roh/The Mummy/The Mummy_t00.mkv",
        "Range": {
            "End": 18,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": false,
            "Default": true,
            "Enable": true,
            "Forced": true
        },
        "SubtitleList": [
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 0
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 3
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 1
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 2
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 4
            }
        ]
    },
    "Video": {
        "ColorFormat": 0,
        "ColorMatrix": 1,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "x265_10bit",
        "Level": "auto",
        "Options": "no-sao",
        "Preset": "superfast",
        "Profile": "auto",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 17.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[15:24:59] CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
[15:24:59]  - Intel microarchitecture Skylake
[15:24:59]  - logical processor count: 8
[15:24:59] hb_scan: path=/home/gedinixan/Videos/roh/The Mummy/The Mummy_t00.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /home/gedinixan/Videos/roh/The Mummy/The Mummy_t00.mkv
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/home/gedinixan/Videos/roh/The Mummy/The Mummy_t00.mkv/) failed
[15:24:59] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[15:24:59] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/home/gedinixan/Videos/roh/The Mummy/The Mummy_t00.mkv':
  Metadata:
    title           : The Mummy
    encoder         : libmakemkv v1.15.1 (1.3.5/1.4.7) x86_64-linux-gnu
    creation_time   : 2020-05-01T10:20:12.000000Z
  Duration: 02:04:45.48, start: 0.000000, bitrate: 25853 kb/s
    Chapter #0:0: start 0,000000, end 430,430000
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 430,430000, end 738,988250
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 738,988250, end 1399,439708
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 1399,439708, end 1743,116375
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 1743,116375, end 2205,745208
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 2205,745208, end 2618,907958
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 2618,907958, end 2946,568625
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 2946,568625, end 3213,793917
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 3213,793917, end 3449,654542
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 3449,654542, end 4273,143875
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 4273,143875, end 4728,306917
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 4728,306917, end 5249,285708
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 5249,285708, end 5403,898500
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 5403,898500, end 5792,661875
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 5792,661875, end 6238,023458
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 6238,023458, end 6584,411167
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 6584,411167, end 7011,671333
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 7011,671333, end 7485,478000
    Metadata:
      title           : Chapter 18
    Stream #0:0(eng): Video: vc1 (Advanced) (WVC1 / 0x31435657), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23,98 fps, 23,98 tbr, 1k tbn, 47,95 tbc
    Metadata:
      BPS-eng         : 21031775
      DURATION-eng    : 02:04:45.478000000
      NUMBER_OF_FRAMES-eng: 179472
      NUMBER_OF_BYTES-eng: 19679112060
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit) (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 4651871
      DURATION-eng    : 02:04:45.482666666
      NUMBER_OF_FRAMES-eng: 701764
      NUMBER_OF_BYTES-eng: 4352688000
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 33163
      DURATION-eng    : 01:55:54.551770833
      NUMBER_OF_FRAMES-eng: 2729
      NUMBER_OF_BYTES-eng: 28830085
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(deu): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 26910
      DURATION-eng    : 01:55:15.679604166
      NUMBER_OF_FRAMES-eng: 2164
      NUMBER_OF_BYTES-eng: 23263232
      SOURCE_ID-eng   : 001204
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:4(deu): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 63785
      DURATION-eng    : 02:04:26.021062500
      NUMBER_OF_FRAMES-eng: 4070
      NUMBER_OF_BYTES-eng: 59528265
      SOURCE_ID-eng   : 001215
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 23536
      DURATION-eng    : 01:55:52.591479166
      NUMBER_OF_FRAMES-eng: 1283
      NUMBER_OF_BYTES-eng: 20455121
      SOURCE_ID-eng   : 001218
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:6(deu): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 26339
      DURATION-eng    : 01:55:53.675895833
      NUMBER_OF_FRAMES-eng: 1421
      NUMBER_OF_BYTES-eng: 22894448
      SOURCE_ID-eng   : 00121B
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:7(eng): Subtitle: hdmv_text_subtitle
    Metadata:
      BPS-eng         : 157
      DURATION-eng    : 01:56:54.090422222
      NUMBER_OF_FRAMES-eng: 1886
      NUMBER_OF_BYTES-eng: 138214
      SOURCE_ID-eng   : 001800
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:8(deu): Subtitle: hdmv_text_subtitle
    Metadata:
      BPS-eng         : 158
      DURATION-eng    : 01:56:54.090422222
      NUMBER_OF_FRAMES-eng: 1886
      NUMBER_OF_BYTES-eng: 138869
      SOURCE_ID-eng   : 001800
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:9(eng): Subtitle: hdmv_text_subtitle
    Metadata:
      BPS-eng         : 123
      DURATION-eng    : 01:56:49.293966666
      NUMBER_OF_FRAMES-eng: 1808
      NUMBER_OF_BYTES-eng: 108137
      SOURCE_ID-eng   : 001800
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:10(deu): Subtitle: hdmv_text_subtitle
    Metadata:
      BPS-eng         : 119
      DURATION-eng    : 01:56:49.293966666
      NUMBER_OF_FRAMES-eng: 1808
      NUMBER_OF_BYTES-eng: 105100
      SOURCE_ID-eng   : 001800
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:11(eng): Subtitle: hdmv_text_subtitle
    Metadata:
      BPS-eng         : 160
      DURATION-eng    : 01:56:36.155833333
      NUMBER_OF_FRAMES-eng: 2009
      NUMBER_OF_BYTES-eng: 140590
      SOURCE_ID-eng   : 001800
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:12(eng): Subtitle: hdmv_text_subtitle
    Metadata:
      BPS-eng         : 2
      DURATION-eng    : 01:48:03.185044444
      NUMBER_OF_FRAMES-eng: 41
      NUMBER_OF_BYTES-eng: 1836
      SOURCE_ID-eng   : 001800
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:13(deu): Subtitle: hdmv_text_subtitle
    Metadata:
      BPS-eng         : 2
      DURATION-eng    : 01:48:03.185044444
      NUMBER_OF_FRAMES-eng: 45
      NUMBER_OF_BYTES-eng: 2116
      SOURCE_ID-eng   : 001800
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[15:24:59] add_ffmpeg_subtitle: unknown subtitle stream type: 0x1780e
[15:24:59] add_ffmpeg_subtitle: unknown subtitle stream type: 0x1780e
[15:24:59] add_ffmpeg_subtitle: unknown subtitle stream type: 0x1780e
[15:24:59] add_ffmpeg_subtitle: unknown subtitle stream type: 0x1780e
[15:24:59] add_ffmpeg_subtitle: unknown subtitle stream type: 0x1780e
[15:24:59] add_ffmpeg_subtitle: unknown subtitle stream type: 0x1780e
[15:24:59] add_ffmpeg_subtitle: unknown subtitle stream type: 0x1780e
[15:24:59] scan: decoding previews for title 1
[15:24:59] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[15:25:00] scan: 10 previews, 1920x1080, 23,976 fps, autocrop = 132/132/0/0, aspect 16:9, PAR 1:1
[15:25:00] libhb: scan thread found 1 valid title(s)
[15:25:00] Starting Task: Subtitle Scan
[15:25:00] Skipping vfr filter
[15:25:00] job configuration:
[15:25:00]  * source
[15:25:00]    + /home/gedinixan/Videos/roh/The Mummy/The Mummy_t00.mkv
[15:25:00]    + title 1, chapter(s) 1 to 18
[15:25:00]    + container: matroska,webm
[15:25:00]    + data rate: 25853 kbps
[15:25:00]  * destination
[15:25:00]    + /home/gedinixan/Videos/roh/=done=/The Mummy_t00.mkv
[15:25:00]    + container: Matroska (libavformat)
[15:25:00]      + chapter markers
[15:25:00]  * video track
[15:25:00]    + decoder: vc1
[15:25:00]    + filters
[15:25:00]      + 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)
[15:25:00]      + Decomb (mode=39)
[15:25:00]      + Crop and Scale (width=360:height=240:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[15:25:00]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 360 * 240
[15:25:00]    + Output geometry
[15:25:00]      + storage dimensions: 360 x 240
[15:25:00]      + pixel aspect ratio: 32 : 27
[15:25:00]      + display dimensions: 426 x 240
[15:25:00]  * Foreign Audio Search: Passthrough, Forced Only, Default
[15:25:00]    + subtitle, English [PGS] (track 0, id 0x2, Picture)
[15:25:00]    + subtitle, English [PGS] (track 3, id 0x5, Picture)
[15:25:00] sync: expecting 179472 video frames
[15:29:29] reader: done. 1 scr changes
[15:29:29] work: average encoding speed for job is 0,000000 fps
[15:29:29] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[15:29:29] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[15:29:30] vc1-decoder done: 0 frames, 0 decoder errors
[15:29:30] sync: got 0 frames, 179472 expected
[15:29:30] Subtitle track 0 (id 0x2) 'English [PGS]': 1368 hits (0 forced)
[15:29:30] Subtitle track 3 (id 0x5) 'English [PGS]': 643 hits (0 forced)
[15:29:30] No candidate detected during subtitle scan
[15:29:30] Starting Task: Encoding Pass
[15:29:30] Skipping vfr filter
[15:29:30] job configuration:
[15:29:30]  * source
[15:29:30]    + /home/gedinixan/Videos/roh/The Mummy/The Mummy_t00.mkv
[15:29:30]    + title 1, chapter(s) 1 to 18
[15:29:30]    + container: matroska,webm
[15:29:30]    + data rate: 25853 kbps
[15:29:30]  * destination
[15:29:30]    + /home/gedinixan/Videos/roh/=done=/The Mummy_t00.mkv
[15:29:30]    + container: Matroska (libavformat)
[15:29:30]      + chapter markers
[15:29:30]  * video track
[15:29:30]    + decoder: vc1
[15:29:30]    + filters
[15:29:30]      + 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)
[15:29:30]      + Decomb (mode=39)
[15:29:30]      + Crop and Scale (width=360:height=240:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[15:29:30]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 360 * 240
[15:29:30]    + Output geometry
[15:29:30]      + storage dimensions: 360 x 240
[15:29:30]      + pixel aspect ratio: 32 : 27
[15:29:30]      + display dimensions: 426 x 240
[15:29:30]    + encoder: H.265 10-bit (libx265)
[15:29:30]      + preset:  superfast
[15:29:30]      + options: no-sao
[15:29:30]      + profile: auto
[15:29:30]      + level:   auto
[15:29:30]      + quality: 17,00 (RF)
[15:29:30]      + color profile: 1-1-1
[15:29:30]  * subtitle track 1, English [PGS] (track 0, id 0x2, Picture) -> Passthrough
[15:29:30]  * subtitle track 2, English [PGS] (track 3, id 0x5, Picture) -> Passthrough
[15:29:30]  * subtitle track 3, Deutsch [PGS] (track 1, id 0x3, Picture) -> Passthrough
[15:29:30]  * subtitle track 4, Deutsch [PGS] (track 2, id 0x4, Picture) -> Passthrough
[15:29:30]  * subtitle track 5, Deutsch [PGS] (track 4, id 0x6, Picture) -> Passthrough
[15:29:30]  * audio track 1
[15:29:30]    + name: Surround 5.1
[15:29:30]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[15:29:30]      + samplerate: 48000 Hz
[15:29:30]    + DTS-HD Passthru
[15:29:30] sync: expecting 179472 video frames
x265 [info]: HEVC encoder version 3.2.1+1-b5c86a64bbbe
x265 [info]: build info [Linux][GCC 9.3.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main 10 profile, Level-2 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(8 rows)
x265 [warning]: Source height < 720p; disabling lookahead-slices
x265 [info]: Coding QT: max CU size, min CU size : 32 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 1 / 2
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 40 / 5,00
x265 [info]: Lookahead / bframes / badapt        : 10 / 3 / 0
x265 [info]: b-pyramid / weightp / weightb       : 1 / 0 / 0
x265 [info]: References / ref-limit  cu / depth  : 1 / off / off
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 0,0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-17,0 / 0,60
x265 [info]: tools: rd=2 psy-rd=2,00 early-skip rskip signhide tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing deblock
[15:29:30] sync: first pts video is 0
[15:29:30] sync: "Chapter 1" (1) at frame 1 time 0
[15:29:30] sync: first pts audio 0x1 is 0
[15:29:34] sync: first pts subtitle 0x4 is 1509030
[15:29:37] sync: first pts subtitle 0x5 is 2413620
[15:29:37] sync: first pts subtitle 0x6 is 2413620
[15:29:42] sync: first pts subtitle 0x2 is 4005270
[15:29:49] sync: first pts subtitle 0x3 is 6096060
[15:31:44] sync: "Chapter 2" (2) at frame 10321 time 38738700
[15:33:32] sync: "Chapter 3" (3) at frame 17719 time 66508942
[15:37:04] sync: "Chapter 4" (4) at frame 33554 time 125949573
[15:38:51] sync: "Chapter 5" (5) at frame 41795 time 156884227
[15:41:18] sync: "Chapter 6" (6) at frame 52886 time 198517068
[15:43:32] sync: "Chapter 7" (7) at frame 62792 time 235701716
[15:45:18] sync: "Chapter 8" (8) at frame 70648 time 265191176
[15:46:44] sync: "Chapter 9" (9) at frame 77055 time 289241452
[15:47:55] sync: "Chapter 10" (10) at frame 82710 time 310468908
[15:52:13] sync: "Chapter 11" (11) at frame 102454 time 384582948
[15:54:39] sync: "Chapter 12" (12) at frame 113367 time 425547622
[15:57:24] sync: "Chapter 13" (13) at frame 125858 time 472435713
[15:58:14] sync: "Chapter 14" (14) at frame 129565 time 486350865
[16:00:22] sync: "Chapter 15" (15) at frame 138886 time 521339568
[16:02:49] sync: "Chapter 16" (16) at frame 149565 time 561425865
[16:04:43] sync: "Chapter 17" (17) at frame 157869 time 592597005
[16:07:02] sync: "Chapter 18" (18) at frame 168114 time 631054173
[16:08:51] reader: done. 1 scr changes
[16:08:51] work: average encoding speed for job is 75,989746 fps
[16:08:51] comb detect: heavy 867 | light 4707 | uncombed 173898 | total 179472
[16:08:51] decomb: deinterlaced 867 | blended 4707 | unfiltered 173898 | total 179472
[16:08:51] dca-decoder done: 701764 frames, 0 decoder errors
[16:08:51] vc1-decoder done: 179472 frames, 0 decoder errors
[16:08:51] sync: got 179472 frames, 179472 expected
[16:08:51] sync: framerate min 23,976 fps, max 23,976 fps, avg 23,976 fps
x265 [info]: frame I:   2153, Avg QP:17,35  kb/s: 2017,28 
x265 [info]: frame P:  44934, Avg QP:19,51  kb/s: 820,35  
x265 [info]: frame B: 132385, Avg QP:24,09  kb/s: 196,94  
x265 [info]: consecutive B-frames: 5,2% 1,1% 1,1% 92,6% 

encoded 179472 frames in 2361,63s (75,99 fps), 374,86 kb/s, Avg QP:22,86
[16:08:51] mux: track 0, 179472 frames, 351471477 bytes, 375,63 kbps, fifo 512
[16:08:51] mux: track 1, 701764 frames, 4352688000 bytes, 4651,85 kbps, fifo 2048
[16:08:51] mux: track 2, 2729 frames, 28830085 bytes, 30,81 kbps, fifo 32
[16:08:51] mux: track 3, 1283 frames, 20455121 bytes, 21,86 kbps, fifo 32
[16:08:51] mux: track 4, 2164 frames, 23263232 bytes, 24,86 kbps, fifo 32
[16:08:51] mux: track 5, 4070 frames, 59528265 bytes, 63,62 kbps, fifo 32
[16:08:51] mux: track 6, 1421 frames, 22894448 bytes, 24,47 kbps, fifo 32
[16:08:51] Finished work at: Fri May  1 16:08:51 2020

[16:08:51] libhb: work result = 0
Woodstock
Veteran User
Posts: 3854
Joined: Tue Aug 27, 2013 6:39 am

Re: handbrake dicarding subtitels and Foreign Audio Scan not working

Post by Woodstock »

Based on your other topic, you're using a version of handbrake from the ubuntu repository, which is known to be broken. Subtitles is one area where the ubuntu version has had problems.

Try using the flatpak distribution listed on the official handbrake download page. It is the only version supported on ubuntu right now, and probably will continue to be in the future.
AllesMeins
Posts: 10
Joined: Fri Jul 22, 2016 7:27 pm

Re: handbrake dicarding subtitels and Foreign Audio Scan not working

Post by AllesMeins »

The flatpak version looks a bit nicer but besides that shows exactly the same behavior with the subtitle... Same result, same problem, similar log...

Code: Select all

Handbrake Version: 1.3.1 (2020010400)
[19:30:28] gtkgui: Modified Preset: /Matroska/H.264 MKV 480p30
[19:30:28] Starting work at: Fri May  1 19:30:28 2020

[19:30:28] 1 job(s) to process
[19:30:28] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "copy:dtshd",
                "Gain": 0.0,
                "Mixdown": "none",
                "Name": "Surround 5.1",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 10,
                    "Ticks": 38738700
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 9,
                    "Ticks": 27770242
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 11,
                    "Seconds": 0,
                    "Ticks": 59440631
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 44,
                    "Ticks": 30930900
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 43,
                    "Ticks": 41636595
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 53,
                    "Ticks": 37184648
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 28,
                    "Ticks": 29489460
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 27,
                    "Ticks": 24050276
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 56,
                    "Ticks": 21227456
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 13,
                    "Seconds": 43,
                    "Ticks": 74114040
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 35,
                    "Ticks": 40964674
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 8,
                    "Seconds": 41,
                    "Ticks": 46888091
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 35,
                    "Ticks": 13915152
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 29,
                    "Ticks": 34988703
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 25,
                    "Ticks": 40082543
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 46,
                    "Ticks": 31174893
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 7,
                    "Ticks": 38453415
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 54,
                    "Ticks": 42642601
                },
                "Name": "Chapter 18"
            }
        ],
        "ChapterMarkers": true,
        "File": "/home/gedinixan/Videos/The Mummy_flatpak.mkv",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "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": 4,
                "Settings": {
                    "mode": "7"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 12,
                "Settings": {
                    "crop-bottom": 132,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 132,
                    "height": 240,
                    "width": 360
                }
            }
        ]
    },
    "Metadata": {
        "Name": "The Mummy"
    },
    "PAR": {
        "Den": 51,
        "Num": 80
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/home/gedinixan/Videos/roh/The Mummy/The Mummy_t00.mkv",
        "Range": {
            "End": 18,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": false,
            "Default": true,
            "Enable": true,
            "Forced": true
        },
        "SubtitleList": [
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 0
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 3
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 1
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 2
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 4
            }
        ]
    },
    "Video": {
        "ColorFormat": 0,
        "ColorMatrix": 1,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "Level": "3.1",
        "Options": "",
        "Preset": "medium",
        "Profile": "main",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 20.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[19:30:28] CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
[19:30:28]  - Intel microarchitecture Skylake
[19:30:28]  - logical processor count: 8
[19:30:28] Intel Quick Sync Video support: no
[19:30:28] hb_scan: path=/home/gedinixan/Videos/roh/The Mummy/The Mummy_t00.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /home/gedinixan/Videos/roh/The Mummy/The Mummy_t00.mkv
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/home/gedinixan/Videos/roh/The Mummy/The Mummy_t00.mkv/) failed
[19:30:28] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[19:30:28] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/home/gedinixan/Videos/roh/The Mummy/The Mummy_t00.mkv':
  Metadata:
    title           : The Mummy
    encoder         : libmakemkv v1.15.1 (1.3.5/1.4.7) x86_64-linux-gnu
    creation_time   : 2020-05-01T10:20:12.000000Z
  Duration: 02:04:45.48, start: 0.000000, bitrate: 25853 kb/s
    Chapter #0:0: start 0,000000, end 430,430000
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 430,430000, end 738,988250
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 738,988250, end 1399,439708
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 1399,439708, end 1743,116375
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 1743,116375, end 2205,745208
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 2205,745208, end 2618,907958
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 2618,907958, end 2946,568625
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 2946,568625, end 3213,793917
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 3213,793917, end 3449,654542
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 3449,654542, end 4273,143875
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 4273,143875, end 4728,306917
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 4728,306917, end 5249,285708
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 5249,285708, end 5403,898500
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 5403,898500, end 5792,661875
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 5792,661875, end 6238,023458
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 6238,023458, end 6584,411167
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 6584,411167, end 7011,671333
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 7011,671333, end 7485,478000
    Metadata:
      title           : Chapter 18
    Stream #0:0(eng): Video: vc1 (Advanced) (WVC1 / 0x31435657), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23,98 fps, 23,98 tbr, 1k tbn, 47,95 tbc
    Metadata:
      BPS-eng         : 21031775
      DURATION-eng    : 02:04:45.478000000
      NUMBER_OF_FRAMES-eng: 179472
      NUMBER_OF_BYTES-eng: 19679112060
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit) (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 4651871
      DURATION-eng    : 02:04:45.482666666
      NUMBER_OF_FRAMES-eng: 701764
      NUMBER_OF_BYTES-eng: 4352688000
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 33163
      DURATION-eng    : 01:55:54.551770833
      NUMBER_OF_FRAMES-eng: 2729
      NUMBER_OF_BYTES-eng: 28830085
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(deu): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 26910
      DURATION-eng    : 01:55:15.679604166
      NUMBER_OF_FRAMES-eng: 2164
      NUMBER_OF_BYTES-eng: 23263232
      SOURCE_ID-eng   : 001204
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:4(deu): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 63785
      DURATION-eng    : 02:04:26.021062500
      NUMBER_OF_FRAMES-eng: 4070
      NUMBER_OF_BYTES-eng: 59528265
      SOURCE_ID-eng   : 001215
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 23536
      DURATION-eng    : 01:55:52.591479166
      NUMBER_OF_FRAMES-eng: 1283
      NUMBER_OF_BYTES-eng: 20455121
      SOURCE_ID-eng   : 001218
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:6(deu): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 26339
      DURATION-eng    : 01:55:53.675895833
      NUMBER_OF_FRAMES-eng: 1421
      NUMBER_OF_BYTES-eng: 22894448
      SOURCE_ID-eng   : 00121B
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:7(eng): Subtitle: hdmv_text_subtitle
    Metadata:
      BPS-eng         : 157
      DURATION-eng    : 01:56:54.090422222
      NUMBER_OF_FRAMES-eng: 1886
      NUMBER_OF_BYTES-eng: 138214
      SOURCE_ID-eng   : 001800
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:8(deu): Subtitle: hdmv_text_subtitle
    Metadata:
      BPS-eng         : 158
      DURATION-eng    : 01:56:54.090422222
      NUMBER_OF_FRAMES-eng: 1886
      NUMBER_OF_BYTES-eng: 138869
      SOURCE_ID-eng   : 001800
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:9(eng): Subtitle: hdmv_text_subtitle
    Metadata:
      BPS-eng         : 123
      DURATION-eng    : 01:56:49.293966666
      NUMBER_OF_FRAMES-eng: 1808
      NUMBER_OF_BYTES-eng: 108137
      SOURCE_ID-eng   : 001800
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:10(deu): Subtitle: hdmv_text_subtitle
    Metadata:
      BPS-eng         : 119
      DURATION-eng    : 01:56:49.293966666
      NUMBER_OF_FRAMES-eng: 1808
      NUMBER_OF_BYTES-eng: 105100
      SOURCE_ID-eng   : 001800
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:11(eng): Subtitle: hdmv_text_subtitle
    Metadata:
      BPS-eng         : 160
      DURATION-eng    : 01:56:36.155833333
      NUMBER_OF_FRAMES-eng: 2009
      NUMBER_OF_BYTES-eng: 140590
      SOURCE_ID-eng   : 001800
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:12(eng): Subtitle: hdmv_text_subtitle
    Metadata:
      BPS-eng         : 2
      DURATION-eng    : 01:48:03.185044444
      NUMBER_OF_FRAMES-eng: 41
      NUMBER_OF_BYTES-eng: 1836
      SOURCE_ID-eng   : 001800
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:13(deu): Subtitle: hdmv_text_subtitle
    Metadata:
      BPS-eng         : 2
      DURATION-eng    : 01:48:03.185044444
      NUMBER_OF_FRAMES-eng: 45
      NUMBER_OF_BYTES-eng: 2116
      SOURCE_ID-eng   : 001800
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.1 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 10:20:12
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[19:30:28] add_ffmpeg_subtitle: unknown subtitle stream type: 0x1780e
[19:30:28] add_ffmpeg_subtitle: unknown subtitle stream type: 0x1780e
[19:30:28] add_ffmpeg_subtitle: unknown subtitle stream type: 0x1780e
[19:30:28] add_ffmpeg_subtitle: unknown subtitle stream type: 0x1780e
[19:30:28] add_ffmpeg_subtitle: unknown subtitle stream type: 0x1780e
[19:30:28] add_ffmpeg_subtitle: unknown subtitle stream type: 0x1780e
[19:30:28] add_ffmpeg_subtitle: unknown subtitle stream type: 0x1780e
[19:30:28] scan: decoding previews for title 1
[19:30:28] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[19:30:28] scan: 10 previews, 1920x1080, 23,976 fps, autocrop = 132/132/0/0, aspect 16:9, PAR 1:1
[19:30:28] libhb: scan thread found 1 valid title(s)
[19:30:28] Starting Task: Subtitle Scan
[19:30:28] job configuration:
[19:30:28]  * source
[19:30:28]    + /home/gedinixan/Videos/roh/The Mummy/The Mummy_t00.mkv
[19:30:28]    + title 1, chapter(s) 1 to 18
[19:30:28]    + container: matroska,webm
[19:30:28]    + data rate: 25853 kbps
[19:30:28]  * destination
[19:30:28]    + /home/gedinixan/Videos/The Mummy_flatpak.mkv
[19:30:28]    + container: Matroska (libavformat)
[19:30:28]      + chapter markers
[19:30:28]  * video track
[19:30:28]    + decoder: vc1
[19:30:28]    + filters
[19:30:28]      + 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)
[19:30:28]      + Decomb (mode=39)
[19:30:28]      + Framerate Shaper (mode=2:rate=27000000/900000)
[19:30:28]        + frame rate: 23,976 fps -> peak rate limited to 30,000 fps
[19:30:28]      + Crop and Scale (width=360:height=240:crop-top=132:crop-bottom=132:crop-left=0:crop-right=0)
[19:30:28]        + source: 1920 * 1080, crop (132/132/0/0): 1920 * 816, scale: 360 * 240
[19:30:28]    + Output geometry
[19:30:28]      + storage dimensions: 360 x 240
[19:30:28]      + pixel aspect ratio: 80 : 51
[19:30:28]      + display dimensions: 564 x 240
[19:30:28]  * Foreign Audio Search: Passthrough, Forced Only, Default
[19:30:28]    + subtitle, English [PGS] (track 0, id 0x2, Picture)
[19:30:28]    + subtitle, English [PGS] (track 3, id 0x5, Picture)
[19:30:28] sync: expecting 179472 video frames
[19:35:02] work: average encoding speed for job is 0,000000 fps
[19:35:02] reader: done. 1 scr changes
[19:35:02] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[19:35:02] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[19:35:02] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[19:35:02] vfr: lost time: 0 (0 frames)
[19:35:02] vfr: gained time: 0 (0 frames) (0 not accounted for)
[19:35:02] vc1-decoder done: 0 frames, 0 decoder errors
[19:35:02] sync: got 0 frames, 179472 expected
[19:35:02] Subtitle track 0 (id 0x2) 'English [PGS]': 1368 hits (0 forced)
[19:35:02] Subtitle track 3 (id 0x5) 'English [PGS]': 643 hits (0 forced)
[19:35:02] No candidate detected during subtitle scan
[19:35:02] Starting Task: Encoding Pass
[19:35:02] job configuration:
[19:35:02]  * source
[19:35:02]    + /home/gedinixan/Videos/roh/The Mummy/The Mummy_t00.mkv
[19:35:02]    + title 1, chapter(s) 1 to 18
[19:35:02]    + container: matroska,webm
[19:35:02]    + data rate: 25853 kbps
[19:35:02]  * destination
[19:35:02]    + /home/gedinixan/Videos/The Mummy_flatpak.mkv
[19:35:02]    + container: Matroska (libavformat)
[19:35:02]      + chapter markers
[19:35:02]  * video track
[19:35:02]    + decoder: vc1
[19:35:02]    + filters
[19:35:02]      + 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)
[19:35:02]      + Decomb (mode=39)
[19:35:02]      + Framerate Shaper (mode=2:rate=27000000/900000)
[19:35:02]        + frame rate: 23,976 fps -> peak rate limited to 30,000 fps
[19:35:02]      + Crop and Scale (width=360:height=240:crop-top=132:crop-bottom=132:crop-left=0:crop-right=0)
[19:35:02]        + source: 1920 * 1080, crop (132/132/0/0): 1920 * 816, scale: 360 * 240
[19:35:02]    + Output geometry
[19:35:02]      + storage dimensions: 360 x 240
[19:35:02]      + pixel aspect ratio: 80 : 51
[19:35:02]      + display dimensions: 564 x 240
[19:35:02]    + encoder: H.264 (libx264)
[19:35:02]      + preset:  medium
[19:35:02]      + profile: main
[19:35:02]      + level:   3.1
[19:35:02]      + quality: 20,00 (RF)
[19:35:02]      + color profile: 1-1-1
[19:35:02]  * subtitle track 1, English [PGS] (track 0, id 0x2, Picture) -> Passthrough
[19:35:02]  * subtitle track 2, English [PGS] (track 3, id 0x5, Picture) -> Passthrough
[19:35:02]  * subtitle track 3, Deutsch [PGS] (track 1, id 0x3, Picture) -> Passthrough
[19:35:02]  * subtitle track 4, Deutsch [PGS] (track 2, id 0x4, Picture) -> Passthrough
[19:35:02]  * subtitle track 5, Deutsch [PGS] (track 4, id 0x6, Picture) -> Passthrough
[19:35:02]  * audio track 1
[19:35:02]    + name: Surround 5.1
[19:35:02]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[19:35:02]      + samplerate: 48000 Hz
[19:35:02]    + DTS-HD Passthru
[19:35:02] sync: expecting 179472 video frames
[19:35:02] encx264: min-keyint: 24, keyint: 240
[19:35:02] encx264: encoding at constant RF 20,000000
[19:35:02] encx264: unparsed options: level=3.1:8x8dct=0:vbv-bufsize=14000:vbv-maxrate=14000
x264 [info]: using SAR=80/51
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.1, 4:2:0, 8-bit
[19:35:02] sync: first pts video is 0
[19:35:02] sync: "Chapter 1" (1) at frame 1 time 0
[19:35:02] sync: first pts audio 0x1 is 0
[19:35:07] sync: first pts subtitle 0x4 is 1509030
[19:35:10] sync: first pts subtitle 0x5 is 2413620
[19:35:10] sync: first pts subtitle 0x6 is 2413620
[19:35:15] sync: first pts subtitle 0x2 is 4005270
[19:35:22] sync: first pts subtitle 0x3 is 6096060
[19:37:20] sync: "Chapter 2" (2) at frame 10321 time 38738700
[19:39:07] sync: "Chapter 3" (3) at frame 17719 time 66508942
[19:42:45] sync: "Chapter 4" (4) at frame 33554 time 125949573
[19:44:33] sync: "Chapter 5" (5) at frame 41795 time 156884227
[19:47:04] sync: "Chapter 6" (6) at frame 52886 time 198517068
[19:49:18] sync: "Chapter 7" (7) at frame 62792 time 235701716
[19:51:06] sync: "Chapter 8" (8) at frame 70648 time 265191176
[19:52:33] sync: "Chapter 9" (9) at frame 77055 time 289241452
[19:53:45] sync: "Chapter 10" (10) at frame 82710 time 310468908
[19:58:06] sync: "Chapter 11" (11) at frame 102454 time 384582948
[20:00:34] sync: "Chapter 12" (12) at frame 113367 time 425547622
[20:03:19] sync: "Chapter 13" (13) at frame 125858 time 472435713
[20:04:10] sync: "Chapter 14" (14) at frame 129565 time 486350865
[20:06:18] sync: "Chapter 15" (15) at frame 138886 time 521339568
[20:08:46] sync: "Chapter 16" (16) at frame 149565 time 561425865
[20:10:40] sync: "Chapter 17" (17) at frame 157869 time 592597005
[20:12:59] sync: "Chapter 18" (18) at frame 168114 time 631054173
[20:14:50] reader: done. 1 scr changes
[20:14:50] work: average encoding speed for job is 75,138802 fps
[20:14:51] comb detect: heavy 867 | light 4707 | uncombed 173898 | total 179472
[20:14:51] decomb: deinterlaced 867 | blended 4707 | unfiltered 173898 | total 179472
[20:14:51] vfr: 179472 frames output, 0 dropped and 0 duped for CFR/PFR
[20:14:51] vfr: lost time: 0 (0 frames)
[20:14:51] vfr: gained time: 0 (0 frames) (0 not accounted for)
[20:14:51] dca-decoder done: 701764 frames, 0 decoder errors
[20:14:51] vc1-decoder done: 179472 frames, 0 decoder errors
[20:14:51] sync: got 179472 frames, 179472 expected
[20:14:51] sync: framerate min 23,976 fps, max 23,976 fps, avg 23,976 fps
x264 [info]: frame I:2302  Avg QP:17,10  size: 13078
x264 [info]: frame P:49399 Avg QP:20,25  size:  3743
x264 [info]: frame B:127771 Avg QP:23,67  size:  1037
x264 [info]: consecutive B-frames:  3,7%  2,7%  3,8% 89,7%
x264 [info]: mb I  I16..4: 15,2%  0,0% 84,8%
x264 [info]: mb P  I16..4:  2,1%  0,0%  8,6%  P16..4: 36,3% 22,8% 15,1%  0,0%  0,0%    skip:15,1%
x264 [info]: mb B  I16..4:  0,2%  0,0%  1,2%  B16..8: 39,1%  9,3%  3,1%  direct: 3,4%  skip:43,8%  L0:39,9% L1:47,5% BI:12,6%
x264 [info]: coded y,uvDC,uvAC intra: 78,1% 85,6% 60,4% inter: 16,2% 19,6% 2,4%
x264 [info]: i16 v,h,dc,p: 37% 17% 10% 36%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 13% 15%  6%  7% 10%  5%  9%  5%
x264 [info]: i8c dc,h,v,p: 47% 14% 28% 10%
x264 [info]: Weighted P-Frames: Y:17,3% UV:8,8%
x264 [info]: ref P L0: 58,2% 16,7% 14,7%  8,8%  1,6%
x264 [info]: ref B L0: 88,5%  8,4%  3,1%
x264 [info]: ref B L1: 94,9%  5,1%
x264 [info]: kb/s:371,34
[20:14:51] mux: track 0, 179472 frames, 347367667 bytes, 371,24 kbps, fifo 512
[20:14:51] mux: track 1, 701764 frames, 4352688000 bytes, 4651,85 kbps, fifo 2048
[20:14:51] mux: track 2, 2729 frames, 28830085 bytes, 30,81 kbps, fifo 32
[20:14:51] mux: track 3, 1283 frames, 20455121 bytes, 21,86 kbps, fifo 32
[20:14:51] mux: track 4, 2164 frames, 23263232 bytes, 24,86 kbps, fifo 32
[20:14:51] mux: track 5, 4070 frames, 59528265 bytes, 63,62 kbps, fifo 32
[20:14:51] mux: track 6, 1421 frames, 22894448 bytes, 24,47 kbps, fifo 32
Woodstock
Veteran User
Posts: 3854
Joined: Tue Aug 27, 2013 6:39 am

Re: handbrake dicarding subtitels and Foreign Audio Scan not working

Post by Woodstock »

[19:35:02] Subtitle track 0 (id 0x2) 'English [PGS]': 1368 hits (0 forced)
[19:35:02] Subtitle track 3 (id 0x5) 'English [PGS]': 643 hits (0 forced)
[19:35:02] No candidate detected during subtitle scan
The problem is that you have no subtitles that fit the criteria for the Foreign Audio Scan. One track must have less than 10% hits compared to the track(s) with the most hits, OR have subtitles that are "flagged" as forced. Neither track meets that, so neither is chosen.

You need to manually choose, in this case - FAS isn't perfect, but it works most of the time.
AllesMeins
Posts: 10
Joined: Fri Jul 22, 2016 7:27 pm

Re: handbrake dicarding subtitels and Foreign Audio Scan not working

Post by AllesMeins »

But there is one track (track 12) that has about 30 lines in it (~3kb) when extracted, so I'm sure that fits the 10% criteria... I'll check my collection to see if there are other movies from which I know that there are foreign language subtitles. Maybe I can generate some more logs, because I'm certain that there is a problem somewhere. I stumbled upon several scenes in the last months were I was wondering whether there shouldn't be some subtitle...
User avatar
Rodeo
HandBrake Team
Posts: 12626
Joined: Tue Mar 03, 2009 8:55 pm

Re: handbrake dicarding subtitels and Foreign Audio Scan not working

Post by Rodeo »

There are seven subtitle tracks in your input and you only included five of them in the second log…
AllesMeins
Posts: 10
Joined: Fri Jul 22, 2016 7:27 pm

Re: handbrake dicarding subtitels and Foreign Audio Scan not working

Post by AllesMeins »

Rodeo wrote: Fri May 01, 2020 11:39 pm There are seven subtitle tracks in your input and you only included five of them in the second log…
I didn't edit or change anything - for both runs it's the same source file, same subtitle settings and the complete log
Post Reply