HandBrake Ignoring --subtitle-default Option

Discussion of the HandBrake command line interface (CLI)
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
DrXenos
Bright Spark User
Posts: 245
Joined: Sat Mar 16, 2013 1:19 pm

HandBrake Ignoring --subtitle-default Option

Post by DrXenos »

Description of problem or question:
I have always used --subtitle-default=none to ensure that none of the subtitles tracks is flagged as default. This use to work. Now HandBrake is always marking the first subtitles track as default. This happens for both DVDs and Blu-rays.



Steps to reproduce the problem (If Applicable):
Encode a title with subtitles and use the --subtitles-default=none option.



HandBrake version (e.g., 1.0.0):
20200928125350-e9ed112a7-master (2020092901)



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



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

Code: Select all

HandBrake --min-duration 1 --previews 40:0 --input "D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1" --title 3 --format av_mkv --output "N:\media-root\Media\TV\D\Doctor Who (1963)\0028-0036 Season 04 (1966)\0035 - S04E31 - The Faceless Ones (Animated), Part 1.mkv" --encoder x264 --encoder-preset slower --encoder-profile high --encoder-level 4.1 --quality "20.0" --vfr --auto-anamorphic --modulus 2 --detelecine --comb-detect --no-deinterlace --decomb --no-deblock --no-hqdn3d --no-nlmeans --no-unsharp --no-lapsharp --no-grayscale --markers --audio-fallback ac3 --audio-copy-mask "aac,ac3,eac3,truehd,dts,dtshd,mp3,flac" --audio "1,1,2" --aencoder "fdk_aac,copy:ac3,copy:ac3" --ab "192,192,192" --mixdown "stereo,none,none" --normalize-mix "0,0,0" --arate "auto,auto,auto" --aname "","","" --subtitle "1" --subtitle-burn=none --subtitle-default=none

Cannot load nvEncodeAPI64.dll
Cannot load nvEncodeAPI64.dll
Cannot load nvEncodeAPI64.dll
Cannot load nvEncodeAPI64.dll
[09:26:53] hb_init: starting libhb thread
[09:26:53] thread 1 started ("libhb")
HandBrake 20200928125350-e9ed112a7-master (2020092901) - MinGW x86_64 - https://handbrake.fr
8 CPUs detected
Opening D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1...
[09:26:53] CPU: Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz
[09:26:53]  - Intel microarchitecture Sandy Bridge
[09:26:53]  - logical processor count: 8
[09:26:53] Intel Quick Sync Video support: yes
[09:26:53]  - Intel Media SDK software: API 1.19 (minimum: 1.3)
[09:26:53]  - H.264 encoder: yes
[09:26:53]     - preferred implementation: software (null)
[09:26:53]     - capabilities (software):  bpyramid vsinfo opt1 opt2
[09:26:53]  - H.265 encoder: no
[09:26:53] hb_scan: path=D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1, title_index=3
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2585: nav_get_title_list(D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1\) failed
[09:26:53] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input: Permission denied
libdvdread: Can't open D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1 for reading
libdvdread: Device D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1 inaccessible, CSS authentication not available.
libdvdnav: Unable to open device file D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input: Permission denied
libdvdread: Can't open D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1 for reading
libdvdread: Device D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1 inaccessible, CSS authentication not available.
[09:26:53] scan: DVD has 22 title(s)
[09:26:53] scan: scanning title 3
[09:26:53] scan: duration is 00:25:15 (1515100 ms)
[09:26:53] pgc_id: 3, pgn: 1: pgc: 00000000043AD550
[09:26:53] scan: checking audio 1
[09:26:53] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=0
[09:26:53] scan: checking audio 2
[09:26:53] scan: id=0x81bd, lang=English (AC3), 3cc=eng ext=0
[09:26:53] scan: checking subtitle 1
[09:26:53] scan: id=0x20bd, lang=English (Wide Screen) [VOBSUB], 3cc=eng ext=0
[09:26:53] scan: title 3 has 7 chapters
[09:26:53] scan: chap 1, 203266 ms
[09:26:53] scan: chap 2, 260367 ms
[09:26:53] scan: chap 3, 301367 ms
[09:26:53] scan: chap 4, 207867 ms
[09:26:53] scan: chap 5, 439667 ms
[09:26:53] scan: chap 6, 102066 ms
[09:26:53] scan: chap 7, 500 ms
[09:26:53] scan: aspect = 16:9
[09:26:53] scan: decoding previews for title 3
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[09:26:53] scan: title angle(s) 1
[09:26:53] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[09:26:53] scan: audio 0x81bd: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
Scanning title 1 of 1, preview 7, 17.50 %
[09:26:54] scan: 40 previews, 720x480, 29.970 fps, autocrop = 0/0/90/90, aspect 16:9, PAR 32:27
[09:26:54] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 3:
  + index 3
  + duration: 00:25:15
  + size: 720x480, pixel aspect: 32/27, display aspect: 1.78, 29.970 fps
  + autocrop: 0/0/90/90
  + chapters:
    + 1: duration 00:03:23
    + 2: duration 00:04:20
    + 3: duration 00:05:01
    + 4: duration 00:03:28
    + 5: duration 00:07:20
    + 6: duration 00:01:42
    + 7: duration 00:00:01
  + audio tracks:
    + 1, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
    + 2, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English (Wide Screen) [VOBSUB]
[09:26:54] Starting work at: Sun Oct 25 09:26:54 2020
[09:26:54] 1 job(s) to process
[09:26:54] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 192,
                "Encoder": 4194304,
                "Mixdown": 4,
                "NormalizeMixLevel": false,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 192,
                "Encoder": 1073743872,
                "Mixdown": 0,
                "NormalizeMixLevel": false,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 192,
                "Encoder": 1073743872,
                "Mixdown": 0,
                "NormalizeMixLevel": false,
                "Samplerate": 0,
                "Track": 1
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:truehd",
            "copy:dts",
            "copy:dtshd",
            "copy:mp3",
            "copy:flac"
        ],
        "FallbackEncoder": "ac3"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 23,
                    "Ticks": 18293940
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 20,
                    "Ticks": 23433030
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 1,
                    "Ticks": 27123030
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 28,
                    "Ticks": 18708030
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 20,
                    "Ticks": 39570030
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 42,
                    "Ticks": 9185940
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 0,
                    "Seconds": 1,
                    "Ticks": 45000
                },
                "Name": "Chapter 7"
            }
        ],
        "ChapterMarkers": true,
        "File": "N:\\media-root\\Media\\TV\\D\\Doctor Who (1963)\\0028-0036 Season 04 (1966)\\0035 - S04E31 - The Faceless Ones (Animated), Part 1.mkv",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 2,
                "Settings": {
                    "plane": "0",
                    "skip-bottom": "4",
                    "skip-left": "1",
                    "skip-right": "1",
                    "skip-top": "4"
                }
            },
            {
                "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": 90,
                    "crop-right": 90,
                    "crop-top": 0,
                    "height": 480,
                    "width": 540
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 27,
        "Num": 32
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "D:\\DVD\\Doctor Who 0035 The Faceless Ones (Animated) (1967)\\D1\\THE_FACELESS_ONES_D1",
        "Range": {
            "End": 7,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 3
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": [
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 0
            }
        ]
    },
    "Video": {
        "ColorFormat": 0,
        "ColorMatrix": 6,
        "ColorPrimaries": 6,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "Level": "4.1",
        "Options": "",
        "Preset": "slower",
        "Profile": "high",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 20.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[09:26:54] Starting Task: Encoding Pass
[09:26:54] job configuration:
[09:26:54]  * source
[09:26:54]    + D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1
[09:26:54]    + title 3, chapter(s) 1 to 7
[09:26:54]  * destination
[09:26:54]    + N:\media-root\Media\TV\D\Doctor Who (1963)\0028-0036 Season 04 (1966)\0035 - S04E31 - The Faceless Ones (Animated), Part 1.mkv
[09:26:54]    + container: Matroska (libavformat)
[09:26:54]      + chapter markers
[09:26:54]  * video track
[09:26:54]    + decoder: mpeg2video
[09:26:54]      + bitrate 200 kbps
[09:26:54]    + filters
[09:26:54]      + Detelecine (pullup) (skip-left=1:skip-right=1:skip-top=4:skip-bottom=4:plane=0)
[09:26:54]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[09:26:54]      + Decomb (mode=39)
[09:26:54]      + Framerate Shaper (mode=0)
[09:26:54]        + frame rate: same as source (around 29.970 fps)
[09:26:54]      + Crop and Scale (width=540:height=480:crop-top=0:crop-bottom=0:crop-left=90:crop-right=90)
[09:26:54]        + source: 720 * 480, crop (0/0/90/90): 540 * 480, scale: 540 * 480
[09:26:54]    + Output geometry
[09:26:54]      + storage dimensions: 540 x 480
[09:26:54]      + pixel aspect ratio: 32 : 27
[09:26:54]      + display dimensions: 640 x 480
[09:26:54]    + encoder: H.264 (libx264)
[09:26:54]      + preset:  slower
[09:26:54]      + profile: high
[09:26:54]      + level:   4.1
[09:26:54]      + quality: 20.00 (RF)
[09:26:54]      + color profile: 6-1-6
[09:26:54]  * subtitle track 1, English (Wide Screen) [VOBSUB] (track 0, id 0x20bd, Picture) -> Passthrough
[09:26:54]  * audio track 1
[09:26:54]    + decoder: English (AC3) (2.0 ch) (192 kbps) (track 1, id 0x80bd)
[09:26:54]      + bitrate: 192 kbps, samplerate: 48000 Hz
[09:26:54]    + mixdown: Stereo
[09:26:54]    + encoder: AAC (libfdk_aac)
[09:26:54]      + bitrate: 192 kbps, samplerate: 48000 Hz
[09:26:54]  * audio track 2
[09:26:54]    + decoder: English (AC3) (2.0 ch) (192 kbps) (track 1, id 0x80bd)
[09:26:54]      + bitrate: 192 kbps, samplerate: 48000 Hz
[09:26:54]    + AC3 Passthru
[09:26:54]  * audio track 3
[09:26:54]    + decoder: English (AC3) (2.0 ch) (192 kbps) (track 2, id 0x81bd)
[09:26:54]      + bitrate: 192 kbps, samplerate: 48000 Hz
[09:26:54]    + AC3 Passthru
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input: Permission denied
libdvdread: Can't open D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1 for reading
libdvdread: Device D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1 inaccessible, CSS authentication not available.
libdvdnav: Unable to open device file D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input: Permission denied
libdvdread: Can't open D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1 for reading
libdvdread: Device D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1 inaccessible, CSS authentication not available.
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[09:26:54] sync: expecting 45407 video frames
[09:26:54] encx264: min-keyint: 30, keyint: 300
[09:26:54] encx264: encoding at constant RF 20.000000
[09:26:54] encx264: unparsed options: level=4.1:ref=8:b-adapt=2:direct=auto:analyse=all:me=umh:subme=9:trellis=2:vbv-bufsize=78125:vbv-maxrate=62500:rc-lookahead=60
x264 [info]: using SAR=32/27
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 4.1, 4:2:0, 8-bit
[09:26:54] sync: first pts video is 0
[09:26:54] sync: "Chapter 1" (1) at frame 1 time 0
[09:26:54] sync: first pts audio 0x80bd is 0
[09:26:54] sync: first pts audio 0x80bd is 0
[09:26:54] sync: first pts audio 0x81bd is 0
[09:26:54] sync: first pts subtitle 0x20bd is 90090
Encoding: task 1 of 1, 0.11 %
[09:27:48] sync: "Chapter 2" (2) at frame 6099 time 18312294
Encoding: task 1 of 1, 13.44 % (88.15 fps, avg 113.27 fps, ETA 00h05m47s)
[09:28:45] sync: "Chapter 3" (3) at frame 13910 time 41768727
Encoding: task 1 of 1, 30.64 % (122.64 fps, avg 125.88 fps, ETA 00h04m10s)
[09:29:43] sync: "Chapter 4" (4) at frame 22951 time 68918850
Encoding: task 1 of 1, 50.60 % (146.91 fps, avg 135.97 fps, ETA 00h02m45s)
[09:30:25] sync: "Chapter 5" (5) at frame 29187 time 87645558
Encoding: task 1 of 1, 64.34 % (230.48 fps, avg 138.77 fps, ETA 00h01m56s)
[09:31:58] sync: "Chapter 6" (6) at frame 42377 time 127255128
Encoding: task 1 of 1, 93.35 % (132.32 fps, avg 139.49 fps, ETA 00h00m22s)
[09:32:10] reader: done. 2 scr changes
[09:32:10] 1516.114624s: Video -> Film
[09:32:10] sync: "Chapter 7" (7) at frame 45439 time 136450314
Encoding: task 1 of 1, 100.00 % (273.36 fps, avg 143.12 fps, ETA 00h00m02s)
[09:32:11] work: average encoding speed for job is 143.115494 fps
Encoding: task 1 of 1, 100.00 % (273.36 fps, avg 143.12 fps, ETA 00h00m02s)
[09:32:11] comb detect: heavy 756 | light 1015 | uncombed 43542 | total 45313
[09:32:11] decomb: deinterlaced 756 | blended 1015 | unfiltered 43542 | total 45313
[09:32:11] vfr: lost time: 420420 (0 frames)
[09:32:11] vfr: gained time: 420420 (560 frames) (0 not accounted for)
[09:32:11] ac3-decoder done: 47378 frames, 0 decoder errors
[09:32:11] ac3-decoder done: 47378 frames, 0 decoder errors
[09:32:11] ac3-decoder done: 47378 frames, 0 decoder errors
[09:32:11] mpeg2video-decoder done: 45453 frames, 0 decoder errors
[09:32:11] sync: got 45453 frames, 45407 expected
[09:32:11] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
[libfdk_aac @ 00000000079d85c0] Ignoring attempt to flush encoder that doesn't support it
x264 [info]: frame I:322   Avg QP:12.45  size: 26001
x264 [info]: frame P:14678 Avg QP:18.14  size:  2650
x264 [info]: frame B:30313 Avg QP:23.94  size:   696
x264 [info]: consecutive B-frames:  6.5%  6.3% 19.4% 67.7%
x264 [info]: mb I  I16..4: 12.1% 48.1% 39.8%
x264 [info]: mb P  I16..4:  0.8%  1.6%  0.9%  P16..4: 14.7%  5.3%  4.7%  0.5%  0.2%    skip:71.3%
x264 [info]: mb B  I16..4:  0.1%  0.1%  0.1%  B16..8: 16.5%  2.8%  0.6%  direct: 0.7%  skip:79.2%  L0:45.5% L1:48.4% BI: 6.1%
x264 [info]: 8x8 transform intra:47.9% inter:42.6%
x264 [info]: direct mvs  spatial:99.9% temporal:0.1%
x264 [info]: coded y,uvDC,uvAC intra: 55.9% 0.0% 0.0% inter: 3.9% 0.0% 0.0%
x264 [info]: i16 v,h,dc,p: 54% 21%  6% 19%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 15% 24%  5%  7%  7%  7%  6%  9%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 14% 10%  7%  9%  9%  8%  8%  9%
x264 [info]: i8c dc,h,v,p: 100%  0%  0%  0%
x264 [info]: Weighted P-Frames: Y:2.2% UV:0.0%
x264 [info]: ref P L0: 60.7%  8.8% 11.8%  5.9%  4.2%  2.9%  3.1%  2.1%  0.4%  0.0%
x264 [info]: ref B L0: 77.6% 10.2%  6.4%  2.5%  1.5%  1.2%  0.7%
x264 [info]: ref B L1: 95.4%  4.6%
x264 [info]: kb/s:360.66
[09:32:11] mux: track 0, 45313 frames, 68358287 bytes, 360.58 kbps, fifo 4096
[09:32:11] mux: track 1, 71069 frames, 36387329 bytes, 191.94 kbps, fifo 8192
[09:32:11] mux: track 2, 47378 frames, 36386304 bytes, 191.93 kbps, fifo 4096
[09:32:11] mux: track 3, 47378 frames, 36386304 bytes, 191.93 kbps, fifo 4096
[09:32:11] mux: track 4, 375 frames, 1090668 bytes, 5.75 kbps, fifo 64
[09:32:11] Finished work at: Sun Oct 25 09:32:11 2020
[09:32:11] libhb: work result = 0
Woodstock
Veteran User
Posts: 3843
Joined: Tue Aug 27, 2013 6:39 am

Re: HandBrake Ignoring --subtitle-default Option

Post by Woodstock »

What is saying that the track is flagged as default?

I'm curious because most players I've tried ignore the default flag. They either show no subtitle track until I activate one, regardless of the flags, or the first subtitle track found, regardless of the flags.
DrXenos
Bright Spark User
Posts: 245
Joined: Sat Mar 16, 2013 1:19 pm

Re: HandBrake Ignoring --subtitle-default Option

Post by DrXenos »

Both MediaInfo and mkvmerge are saying it's set.

I only noticed it recently because I have VLC installed on a new machine and it is showing the subtitles by default (normally, I change VLC's Input/Codecs Subtitle track ID from -1 to 0 to stop auto-playing of subtitles regardless of that flag).

I checked some older files I created with HB and they do not exhibit this issue (I do not know when the issue started happening exactly).

Thanks.
User avatar
Rodeo
HandBrake Team
Posts: 12619
Joined: Tue Mar 03, 2009 8:55 pm

Re: HandBrake Ignoring --subtitle-default Option

Post by Rodeo »

Did you remux with mkvmerge after encoding with HandBrake?

I always thought HandBrake's default behavior was to not set any default track, but it may have changed or be overridden by a preset.
User avatar
Rodeo
HandBrake Team
Posts: 12619
Joined: Tue Mar 03, 2009 8:55 pm

Re: HandBrake Ignoring --subtitle-default Option

Post by Rodeo »

Might also be an unexpected behavior of libavformat? You seem to be building HandBrake yourself given the audio encoder.
DrXenos
Bright Spark User
Posts: 245
Joined: Sat Mar 16, 2013 1:19 pm

Re: HandBrake Ignoring --subtitle-default Option

Post by DrXenos »

I did build it myself (so I could enable FDK). I'll try your latest release and see if there is a difference.

Thanks.
User avatar
Rodeo
HandBrake Team
Posts: 12619
Joined: Tue Mar 03, 2009 8:55 pm

Re: HandBrake Ignoring --subtitle-default Option

Post by Rodeo »

It does look like there's a bug, just tried it with the official nightly. Probably something unexpected in libavformat setting it regardless.
DrXenos
Bright Spark User
Posts: 245
Joined: Sat Mar 16, 2013 1:19 pm

Re: HandBrake Ignoring --subtitle-default Option

Post by DrXenos »

OK, sorry about that. I forgot I was using a custom build.

I just tried your latest nightly and it has the same issue.

Thanks.

Code: Select all

Started: HandBrake --min-duration 1 --previews 40:0 --input "D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1" --title 3 --format av_mkv --output "N:\media-root\Media\TV\D\Doctor Who (1963)\0028-0036 Season 04 (1966)\0035 - S04E31 - The Faceless Ones (Animated), Part 1.mkv" --encoder x264 --encoder-preset slower --encoder-profile high --encoder-level 4.1 --quality "20.0" --vfr --auto-anamorphic --modulus 2 --detelecine --comb-detect --no-deinterlace --decomb --no-deblock --no-hqdn3d --no-nlmeans --no-unsharp --no-lapsharp --no-grayscale --markers --audio-fallback ac3 --audio-copy-mask "aac,ac3,eac3,truehd,dts,dtshd,mp3,flac" --audio "1,1,2" --aencoder "av_aac,copy:ac3,copy:ac3" --ab "192,192,192" --mixdown "stereo,none,none" --normalize-mix "0,0,0" --arate "auto,auto,auto" --aname "","","" --subtitle "1" --subtitle-burn=none --subtitle-default=none
[17:27:22] Compile-time hardening features are enabled
Cannot load nvEncodeAPI64.dll
Cannot load nvEncodeAPI64.dll
Cannot load nvEncodeAPI64.dll
Cannot load nvEncodeAPI64.dll
[17:27:22] hb_init: starting libhb thread
[17:27:22] thread 1 started ("libhb")
HandBrake 20201024155346-523f011bf-master (2020102401) - MinGW x86_64 - https://handbrake.fr
8 CPUs detected
Opening D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1...
[17:27:22] CPU: Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz
[17:27:22]  - Intel microarchitecture Sandy Bridge
[17:27:22]  - logical processor count: 8
[17:27:22] Intel Quick Sync Video support: yes
[17:27:22]  - Intel Media SDK software: API 1.19 (minimum: 1.3)
[17:27:22]  - H.264 encoder: yes
[17:27:22]     - preferred implementation: software (null)
[17:27:22]     - capabilities (software):  bpyramid vsinfo opt1 opt2
[17:27:22]  - H.265 encoder: no
[17:27:22] hb_scan: path=D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1, title_index=3
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2585: nav_get_title_list(D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1\) failed
[17:27:22] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input: Permission denied
libdvdread: Can't open D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1 for reading
libdvdread: Device D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1 inaccessible, CSS authentication not available.
libdvdnav: Unable to open device file D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input: Permission denied
libdvdread: Can't open D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1 for reading
libdvdread: Device D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1 inaccessible, CSS authentication not available.
[17:27:22] scan: DVD has 22 title(s)
[17:27:22] scan: scanning title 3
[17:27:22] scan: duration is 00:25:15 (1515100 ms)
[17:27:22] pgc_id: 3, pgn: 1: pgc: 00000000043C00E0
[17:27:22] scan: checking audio 1
[17:27:22] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=0
[17:27:22] scan: checking audio 2
[17:27:22] scan: id=0x81bd, lang=English (AC3), 3cc=eng ext=0
[17:27:22] scan: checking subtitle 1
[17:27:22] scan: id=0x20bd, lang=English (Wide Screen) [VOBSUB], 3cc=eng ext=0
[17:27:22] scan: title 3 has 7 chapters
[17:27:22] scan: chap 1, 203266 ms
[17:27:22] scan: chap 2, 260367 ms
[17:27:22] scan: chap 3, 301367 ms
[17:27:22] scan: chap 4, 207867 ms
[17:27:22] scan: chap 5, 439667 ms
[17:27:22] scan: chap 6, 102066 ms
[17:27:22] scan: chap 7, 500 ms
[17:27:22] scan: aspect = 16:9
[17:27:22] scan: decoding previews for title 3
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[17:27:22] scan: title angle(s) 1
[17:27:22] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[17:27:22] scan: audio 0x81bd: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[17:27:22] scan: 40 previews, 720x480, 29.970 fps, autocrop = 0/0/90/90, aspect 16:9, PAR 32:27
Scanning title 1 of 1, preview 40, 100.00 %
[17:27:22] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 3:
  + index 3
  + duration: 00:25:15
  + size: 720x480, pixel aspect: 32/27, display aspect: 1.78, 29.970 fps
  + autocrop: 0/0/90/90
  + chapters:
    + 1: duration 00:03:23
    + 2: duration 00:04:20
    + 3: duration 00:05:01
    + 4: duration 00:03:28
    + 5: duration 00:07:20
    + 6: duration 00:01:42
    + 7: duration 00:00:01
  + audio tracks:
    + 1, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
    + 2, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English (Wide Screen) [VOBSUB]
[17:27:23] Starting work at: Sun Oct 25 17:27:23 2020
[17:27:23] 1 job(s) to process
[17:27:23] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 192,
                "Encoder": 65536,
                "Mixdown": 4,
                "NormalizeMixLevel": false,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 192,
                "Encoder": 1073743872,
                "Mixdown": 0,
                "NormalizeMixLevel": false,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 192,
                "Encoder": 1073743872,
                "Mixdown": 0,
                "NormalizeMixLevel": false,
                "Samplerate": 0,
                "Track": 1
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:truehd",
            "copy:dts",
            "copy:dtshd",
            "copy:mp3",
            "copy:flac"
        ],
        "FallbackEncoder": "ac3"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 23,
                    "Ticks": 18293940
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 20,
                    "Ticks": 23433030
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 1,
                    "Ticks": 27123030
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 28,
                    "Ticks": 18708030
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 20,
                    "Ticks": 39570030
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 42,
                    "Ticks": 9185940
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 0,
                    "Seconds": 1,
                    "Ticks": 45000
                },
                "Name": "Chapter 7"
            }
        ],
        "ChapterMarkers": true,
        "File": "N:\\media-root\\Media\\TV\\D\\Doctor Who (1963)\\0028-0036 Season 04 (1966)\\0035 - S04E31 - The Faceless Ones (Animated), Part 1.mkv",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 2,
                "Settings": {
                    "plane": "0",
                    "skip-bottom": "4",
                    "skip-left": "1",
                    "skip-right": "1",
                    "skip-top": "4"
                }
            },
            {
                "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": 90,
                    "crop-right": 90,
                    "crop-top": 0,
                    "height": 480,
                    "width": 540
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 27,
        "Num": 32
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "D:\\DVD\\Doctor Who 0035 The Faceless Ones (Animated) (1967)\\D1\\THE_FACELESS_ONES_D1",
        "Range": {
            "End": 7,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 3
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": [
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 0
            }
        ]
    },
    "Video": {
        "ColorFormat": 0,
        "ColorMatrix": 6,
        "ColorPrimaries": 6,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "Level": "4.1",
        "Options": "",
        "Preset": "slower",
        "Profile": "high",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 20.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[17:27:23] Starting Task: Encoding Pass
[17:27:23] job configuration:
[17:27:23]  * source
[17:27:23]    + D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1
[17:27:23]    + title 3, chapter(s) 1 to 7
[17:27:23]  * destination
[17:27:23]    + N:\media-root\Media\TV\D\Doctor Who (1963)\0028-0036 Season 04 (1966)\0035 - S04E31 - The Faceless Ones (Animated), Part 1.mkv
[17:27:23]    + container: Matroska (libavformat)
[17:27:23]      + chapter markers
[17:27:23]  * video track
[17:27:23]    + decoder: mpeg2video
[17:27:23]      + bitrate 200 kbps
[17:27:23]    + filters
[17:27:23]      + Detelecine (pullup) (skip-left=1:skip-right=1:skip-top=4:skip-bottom=4:plane=0)
[17:27:23]      + 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)
[17:27:23]      + Decomb (mode=39)
[17:27:23]      + Framerate Shaper (mode=0)
[17:27:23]        + frame rate: same as source (around 29.970 fps)
[17:27:23]      + Crop and Scale (width=540:height=480:crop-top=0:crop-bottom=0:crop-left=90:crop-right=90)
[17:27:23]        + source: 720 * 480, crop (0/0/90/90): 540 * 480, scale: 540 * 480
[17:27:23]    + Output geometry
[17:27:23]      + storage dimensions: 540 x 480
[17:27:23]      + pixel aspect ratio: 32 : 27
[17:27:23]      + display dimensions: 640 x 480
[17:27:23]    + encoder: H.264 (libx264)
[17:27:23]      + preset:  slower
[17:27:23]      + profile: high
[17:27:23]      + level:   4.1
[17:27:23]      + quality: 20.00 (RF)
[17:27:23]      + color profile: 6-1-6
[17:27:23]  * subtitle track 1, English (Wide Screen) [VOBSUB] (track 0, id 0x20bd, Picture) -> Passthrough
[17:27:23]  * audio track 1
[17:27:23]    + decoder: English (AC3) (2.0 ch) (192 kbps) (track 1, id 0x80bd)
[17:27:23]      + bitrate: 192 kbps, samplerate: 48000 Hz
[17:27:23]    + mixdown: Stereo
[17:27:23]    + encoder: AAC (libavcodec)
[17:27:23]      + bitrate: 192 kbps, samplerate: 48000 Hz
[17:27:23]  * audio track 2
[17:27:23]    + decoder: English (AC3) (2.0 ch) (192 kbps) (track 1, id 0x80bd)
[17:27:23]      + bitrate: 192 kbps, samplerate: 48000 Hz
[17:27:23]    + AC3 Passthru
[17:27:23]  * audio track 3
[17:27:23]    + decoder: English (AC3) (2.0 ch) (192 kbps) (track 2, id 0x81bd)
[17:27:23]      + bitrate: 192 kbps, samplerate: 48000 Hz
[17:27:23]    + AC3 Passthru
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input: Permission denied
libdvdread: Can't open D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1 for reading
libdvdread: Device D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1 inaccessible, CSS authentication not available.
libdvdnav: Unable to open device file D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input: Permission denied
libdvdread: Can't open D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1 for reading
libdvdread: Device D:\DVD\Doctor Who 0035 The Faceless Ones (Animated) (1967)\D1\THE_FACELESS_ONES_D1 inaccessible, CSS authentication not available.
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[17:27:23] sync: expecting 45407 video frames
[17:27:23] encx264: min-keyint: 30, keyint: 300
[17:27:23] encx264: encoding at constant RF 20.000000
[17:27:23] encx264: unparsed options: level=4.1:ref=8:b-adapt=2:direct=auto:analyse=all:me=umh:subme=9:trellis=2:vbv-bufsize=78125:vbv-maxrate=62500:rc-lookahead=60
x264 [info]: using SAR=32/27
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 4.1, 4:2:0, 8-bit
[17:27:23] sync: first pts video is 0
[17:27:23] sync: "Chapter 1" (1) at frame 1 time 0
[17:27:23] sync: first pts audio 0x80bd is 0
[17:27:23] sync: first pts audio 0x80bd is 0
[17:27:23] sync: first pts audio 0x81bd is 0
[17:27:23] sync: first pts subtitle 0x20bd is 90090
Encoding: task 1 of 1, 13.39 % (115.23 fps, avg 107.85 fps, ETA 00h06m05s)
[17:28:19] sync: "Chapter 2" (2) at frame 6099 time 18312294
Encoding: task 1 of 1, 30.57 % (133.95 fps, avg 121.68 fps, ETA 00h04m19s)
[17:29:17] sync: "Chapter 3" (3) at frame 13910 time 41768727
Encoding: task 1 of 1, 50.48 % (147.95 fps, avg 131.67 fps, ETA 00h02m50s)
[17:30:17] sync: "Chapter 4" (4) at frame 22951 time 68918850
Encoding: task 1 of 1, 64.25 % (208.28 fps, avg 133.66 fps, ETA 00h02m01s)
[17:31:01] sync: "Chapter 5" (5) at frame 29187 time 87645558
Encoding: task 1 of 1, 93.28 % (131.40 fps, avg 133.91 fps, ETA 00h00m23s)
[17:32:39] sync: "Chapter 6" (6) at frame 42377 time 127255128
Encoding: task 1 of 1, 99.95 % (269.81 fps, avg 137.50 fps, ETA 00h00m01s)
[17:32:52] reader: done. 2 scr changes
[17:32:52] 1516.114624s: Video -> Film
[17:32:52] sync: "Chapter 7" (7) at frame 45439 time 136450314
Encoding: task 1 of 1, 100.00 % (269.81 fps, avg 137.50 fps, ETA 00h00m01s)
[17:32:52] work: average encoding speed for job is 137.497223 fps
Encoding: task 1 of 1, 100.00 % (269.81 fps, avg 137.50 fps, ETA 00h00m01s)
[17:32:52] comb detect: heavy 756 | light 1015 | uncombed 43542 | total 45313
[17:32:52] decomb: deinterlaced 756 | blended 1015 | unfiltered 43542 | total 45313
[17:32:52] vfr: lost time: 420420 (0 frames)
[17:32:52] vfr: gained time: 420420 (560 frames) (0 not accounted for)
[17:32:52] ac3-decoder done: 47378 frames, 0 decoder errors
[17:32:52] ac3-decoder done: 47378 frames, 0 decoder errors
[17:32:52] ac3-decoder done: 47378 frames, 0 decoder errors
[17:32:52] mpeg2video-decoder done: 45453 frames, 0 decoder errors
[17:32:52] sync: got 45453 frames, 45407 expected
[17:32:52] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
[aac @ 00000000075c2540] Ignoring attempt to flush encoder that doesn't support it
[aac @ 00000000075c2540] Qavg: 389.371
x264 [info]: frame I:322   Avg QP:12.45  size: 26001
x264 [info]: frame P:14678 Avg QP:18.14  size:  2650
x264 [info]: frame B:30313 Avg QP:23.94  size:   696
x264 [info]: consecutive B-frames:  6.5%  6.3% 19.4% 67.7%
x264 [info]: mb I  I16..4: 12.1% 48.1% 39.8%
x264 [info]: mb P  I16..4:  0.8%  1.6%  0.9%  P16..4: 14.7%  5.3%  4.7%  0.5%  0.2%    skip:71.3%
x264 [info]: mb B  I16..4:  0.1%  0.1%  0.1%  B16..8: 16.5%  2.8%  0.6%  direct: 0.7%  skip:79.2%  L0:45.5% L1:48.4% BI: 6.1%
x264 [info]: 8x8 transform intra:47.9% inter:42.6%
x264 [info]: direct mvs  spatial:99.9% temporal:0.1%
x264 [info]: coded y,uvDC,uvAC intra: 55.9% 0.0% 0.0% inter: 3.9% 0.0% 0.0%
x264 [info]: i16 v,h,dc,p: 54% 21%  6% 19%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 15% 24%  5%  7%  7%  7%  6%  9%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 14% 10%  7%  9%  9%  8%  8%  9%
x264 [info]: i8c dc,h,v,p: 100%  0%  0%  0%
x264 [info]: Weighted P-Frames: Y:2.2% UV:0.0%
x264 [info]: ref P L0: 60.7%  8.8% 11.8%  5.9%  4.2%  2.9%  3.1%  2.1%  0.4%  0.0%
x264 [info]: ref B L0: 77.6% 10.2%  6.4%  2.5%  1.5%  1.2%  0.7%
x264 [info]: ref B L1: 95.4%  4.6%
x264 [info]: kb/s:360.66
[17:32:52] mux: track 0, 45313 frames, 68358287 bytes, 360.58 kbps, fifo 4096
[17:32:52] mux: track 1, 71068 frames, 36422720 bytes, 192.12 kbps, fifo 8192
[17:32:52] mux: track 2, 47378 frames, 36386304 bytes, 191.93 kbps, fifo 4096
[17:32:52] mux: track 3, 47378 frames, 36386304 bytes, 191.93 kbps, fifo 4096
[17:32:52] mux: track 4, 375 frames, 1090668 bytes, 5.75 kbps, fifo 64
[17:32:52] Finished work at: Sun Oct 25 17:32:52 2020
[17:32:52] libhb: work result = 0
Encode done!

User avatar
Rodeo
HandBrake Team
Posts: 12619
Joined: Tue Mar 03, 2009 8:55 pm

Re: HandBrake Ignoring --subtitle-default Option

Post by Rodeo »

Reported on github.
DrXenos
Bright Spark User
Posts: 245
Joined: Sat Mar 16, 2013 1:19 pm

Re: HandBrake Ignoring --subtitle-default Option

Post by DrXenos »

Thank you
Post Reply