Using multiple audio streams

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
mohahn
Posts: 10
Joined: Fri Mar 24, 2017 10:12 am

Using multiple audio streams

Post by mohahn »

I'm using Handbrake v1.6.1 using CLI on Ubuntu 23.04. For easiness I'm using presets, i.e. "HQ 2160p60 4K HEVC Surround". I try to grab audio and subtitle streams for German and English using following CMD:

Code: Select all

HandBrakeCLI -i '/video/2012.mkv' -o '/video/2012.tmp' --encopts pools=2 --preset "HQ 2160p60 4K HEVC Surround" --audio-lang-list ger,eng --native-language ger --native-dub --subtitle scan --subtitle-forced --all-audio --format av_mkv
This produces the following log (I've shortened the log):

Code: Select all

[13:00:29] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/video/2012.mkv':
  Metadata:
    title           : 2012
    encoder         : libebml v1.2.0 + libmatroska v1.1.0
    creation_time   : 2011-09-03T15:20:53.000000Z
  Duration: 02:37:49.46, start: 0.000000, bitrate: 10573 kb/s
  Stream #0:0(ger): Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x800 [SAR 1:1 DAR 12:5], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      title           : 2012
  Stream #0:1(ger): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default) (forced)
    Metadata:
      title           : DTS/6ch/Deutsch
  Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : DTS/6ch/Englisch
  Stream #0:3(ger): Subtitle: dvd_subtitle, 1920x1080
    Metadata:
      title           : Deutsch
  Stream #0:4(ger): Subtitle: dvd_subtitle, 1920x1080
    Metadata:
      title           : Deutsch
  Stream #0:5(ger): Subtitle: dvd_subtitle, 1920x1080
    Metadata:
      title           : Deutsch
  Stream #0:6(ger): Subtitle: dvd_subtitle, 1920x1080
    Metadata:
      title           : Deutsch
[13:00:29] scan: decoding previews for title 1
[13:00:29] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 Deutsch (DTS) (5.1 ch) (1536 kbps)
[13:00:29] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)

Scanning title 1 of 1, preview 8, 80.00 %[13:00:29] scan: 10 previews, 1920x800, 23.976 fps, autocrop = 0/0/0/0, aspect 2.40:1, PAR 1:1, color profile: 1-1-1, chroma location: left
[13:00:30] libhb: scan thread found 1 valid title(s)
+ Using preset: HQ 2160p60 4K HEVC Surround
+ title 1:
  + stream: /video/2012.mkv
  + duration: 02:37:49
  + size: 1920x800, pixel aspect: 1/1, display aspect: 2.40, 23.976 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: duration 02:37:49
  + audio tracks:
    + 1, Deutsch (DTS) (5.1 ch) (1536 kbps) (iso639-2: deu), 48000Hz, 1536000bps
    + 2, English (DTS) (5.1 ch) (1536 kbps) (iso639-2: eng), 48000Hz, 1536000bps
  + subtitle tracks:
    + 1, Deutsch [VOBSUB]
    + 2, Deutsch [VOBSUB]
    + 3, Deutsch [VOBSUB]
    + 4, Deutsch [VOBSUB]
[13:00:30] Starting work at: Fri Aug 25 13:00:30 2023

[13:00:30] 1 job(s) to process
[13:00:30] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": 512,
                "Gain": 0.0,
                "Mixdown": "stereo",
                "Name": "DTS/6ch/Deutsch",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 640,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": 512,
                "Gain": 0.0,
                "Mixdown": "5point1",
                "Name": "DTS/6ch/Deutsch",
                "NormalizeMixLevel": false,
                "PresetEncoder": "copy:ac3",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": 512,
                "Gain": 0.0,
                "Mixdown": "stereo",
                "Name": "DTS/6ch/Englisch",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 1
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "av_aac"
    },
As one can see, HandBrake detects two 5.1 DTS audio streams in source file, one for German, one for English. But as you can see in JSON for output file it produces a 5.1 AC-3 stream for German and a downsampled stereo stream for German, but only one downsampled audio stream for English. I'm missing a 5.1 stream for English.

How to accomplish, that I have a 5.1 and a stereo stream for both languages, but still being able to use a preset string instead of a full complex command?
mduell
Veteran User
Posts: 8207
Joined: Sat Apr 21, 2007 8:54 pm

Re: Using multiple audio streams

Post by mduell »

Post the whole log.
mohahn
Posts: 10
Joined: Fri Mar 24, 2017 10:12 am

Re: Using multiple audio streams

Post by mohahn »

Because conversion will take 6 hours, I've terminated final encoding, but log will contain all relevant data up to that point.

Code: Select all

[17:53:48] Compile-time hardening features are enabled
[17:53:48] hb_qsv_make_adapters_list: MFXVideoCORE_QueryPlatform failed impl=0 err=-16
[17:53:48] qsv: is available on this system
Cannot load libnvidia-encode.so.1
[17:53:48] hb_init: starting libhb thread
[17:53:48] thread 7f0b14d4e6c0 started ("libhb")
HandBrake 1.6.1 (2023012900) - Linux x86_64 - https://handbrake.fr
8 CPUs detected
Opening /video/2012.mkv...
[17:53:48] CPU: Intel(R) Xeon(R) CPU E3-1245 v6 @ 3.70GHz
[17:53:48]  - Intel microarchitecture Kaby Lake
[17:53:48]  - logical processor count: 8
[17:53:48] Intel Quick Sync Video support: no
[17:53:48] hb_scan: path=/video/2012.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /video/2012.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
[17:53:48] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[17:53:48] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/video/2012.mkv':
  Metadata:
    title           : 2012
    encoder         : libebml v1.2.0 + libmatroska v1.1.0
    creation_time   : 2011-09-03T15:20:53.000000Z
  Duration: 02:37:49.46, start: 0.000000, bitrate: 10573 kb/s
  Stream #0:0(ger): Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x800 [SAR 1:1 DAR 12:5], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      title           : 2012
  Stream #0:1(ger): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default) (forced)
    Metadata:
      title           : DTS/6ch/Deutsch
  Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : DTS/6ch/Englisch
  Stream #0:3(ger): Subtitle: dvd_subtitle, 1920x1080
    Metadata:
      title           : Deutsch
  Stream #0:4(ger): Subtitle: dvd_subtitle, 1920x1080
    Metadata:
      title           : Deutsch
  Stream #0:5(ger): Subtitle: dvd_subtitle, 1920x1080
    Metadata:
      title           : Deutsch
  Stream #0:6(ger): Subtitle: dvd_subtitle, 1920x1080
    Metadata:
      title           : Deutsch
[17:53:48] scan: decoding previews for title 1
[17:53:48] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 Deutsch (DTS) (5.1 ch) (1536 kbps)
[17:53:48] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)

Scanning title 1 of 1, preview 8, 80.00 %[17:53:48] scan: 10 previews, 1920x800, 23.976 fps, autocrop = 0/0/0/0, aspect 2.40:1, PAR 1:1, color profile: 1-1-1, chroma location: left
[17:53:48] libhb: scan thread found 1 valid title(s)
+ Using preset: HQ 2160p60 4K HEVC Surround
+ title 1:
  + stream: /video/2012.mkv
  + duration: 02:37:49
  + size: 1920x800, pixel aspect: 1/1, display aspect: 2.40, 23.976 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: duration 02:37:49
  + audio tracks:
    + 1, Deutsch (DTS) (5.1 ch) (1536 kbps) (iso639-2: deu), 48000Hz, 1536000bps
    + 2, English (DTS) (5.1 ch) (1536 kbps) (iso639-2: eng), 48000Hz, 1536000bps
  + subtitle tracks:
    + 1, Deutsch [VOBSUB]
    + 2, Deutsch [VOBSUB]
    + 3, Deutsch [VOBSUB]
    + 4, Deutsch [VOBSUB]
[17:53:49] Starting work at: Fri Aug 25 17:53:49 2023

[17:53:49] 1 job(s) to process
[17:53:49] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": 512,
                "Gain": 0.0,
                "Mixdown": "stereo",
                "Name": "DTS/6ch/Deutsch",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 640,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": 512,
                "Gain": 0.0,
                "Mixdown": "5point1",
                "Name": "DTS/6ch/Deutsch",
                "NormalizeMixLevel": false,
                "PresetEncoder": "copy:ac3",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": 512,
                "Gain": 0.0,
                "Mixdown": "stereo",
                "Name": "DTS/6ch/Englisch",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 1
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": true,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 2,
                    "Minutes": 37,
                    "Seconds": 49,
                    "Ticks": 852251580
                },
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "/video/2012.tmp",
        "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": 7,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/450000"
                }
            },
            {
                "ID": 14,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 800,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {
        "Name": "2012"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/video/2012.mkv",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": false,
            "Default": false,
            "Enable": true,
            "Forced": true
        },
        "SubtitleList": []
    },
    "Video": {
        "ChromaLocation": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "x265_10bit",
        "HardwareDecode": 0,
        "Level": "auto",
        "Options": "pools=2",
        "Preset": "medium",
        "Profile": "main10",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Quality": 22.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[17:53:49] Starting Task: Subtitle Scan
[17:53:49] Skipping crop/scale filter
[17:53:49] job configuration:
[17:53:49]  * source
[17:53:49]    + /video/2012.mkv
[17:53:49]    + title 1, chapter(s) 1 to 1
[17:53:49]    + container: matroska,webm
[17:53:49]    + data rate: 10573 kbps
[17:53:49]  * destination
[17:53:49]    + /video/2012.tmp
[17:53:49]    + container: Matroska (libavformat)
[17:53:49]      + align initial A/V stream timestamps
[17:53:49]  * video track
[17:53:49]    + decoder: h264 8-bit (yuv420p)
[17:53:49]    + filters
[17:53:49]      + 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:53:49]      + Decomb (mode=39)
[17:53:49]      + Framerate Shaper (mode=2:rate=27000000/450000)
[17:53:49]        + frame rate: 23.976 fps -> peak rate limited to 60.000 fps
[17:53:49]    + Output geometry
[17:53:49]      + storage dimensions: 1920 x 800
[17:53:49]      + pixel aspect ratio: 1 : 1
[17:53:49]      + display dimensions: 1920 x 800
[17:53:49]  * Foreign Audio Search: Passthrough, Forced Only
[17:53:49]    + subtitle, Deutsch [VOBSUB] (track 0, id 0x3, Picture)
[17:53:49]    + subtitle, Deutsch [VOBSUB] (track 1, id 0x4, Picture)
[17:53:49]    + subtitle, Deutsch [VOBSUB] (track 2, id 0x5, Picture)
[17:53:49]    + subtitle, Deutsch [VOBSUB] (track 3, id 0x6, Picture)
[17:53:49] sync: expecting 227040 video frames
libdvdread: Can't open file VIDEO_TS.IFO.

Encoding: task 1 of 2, 1.22 % (0.00 fps, avg 0.00 fps, ETA 00h00m21s)
Encoding: task 1 of 2, 1.53 % (0.00 fps, avg 0.00 fps, ETA 00h00m36s)
Encoding: task 1 of 2, 1.85 % (0.00 fps, avg 0.00 fps, ETA 00h00m45s)
[...]
Encoding: task 1 of 2, 97.47 % (0.00 fps, avg 0.00 fps, ETA 00h00m01s)
Encoding: task 1 of 2, 98.33 % (0.00 fps, avg 0.00 fps, ETA 00h00m00s)[17:54:43] reader: done. 1 scr changes

Encoding: task 1 of 2, 100.00 % (0.00 fps, avg 0.00 fps, ETA 00h00m00s)[17:54:43] work: average encoding speed for job is 0.000000 fps
[17:54:43] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[17:54:43] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[17:54:43] vfr: lost time: 0 (0 frames)
[17:54:43] vfr: gained time: 0 (0 frames) (0 not accounted for)
[17:54:43] h264-decoder done: 0 frames, 0 decoder errors
[17:54:43] sync: got 0 frames, 227040 expected
[17:54:43] Subtitle track 0 (id 0x3) 'Deutsch [VOBSUB]': 1738 hits (95 forced)
[17:54:43] Subtitle track 1 (id 0x4) 'Deutsch [VOBSUB]': 2481 hits (0 forced)
[17:54:43] Subtitle track 2 (id 0x5) 'Deutsch [VOBSUB]': 928 hits (0 forced)
[17:54:43] Subtitle track 3 (id 0x6) 'Deutsch [VOBSUB]': 95 hits (95 forced)
[17:54:43] Found a subtitle candidate with id 0x3 (contains forced subs)
[17:54:43] Starting Task: Encoding Pass
[17:54:43] Skipping crop/scale filter
[17:54:43] work: compression level not specified, track 1 setting compression level 2.00
[17:54:43] work: sanitizing track 2 mixdown 5.1 Channels to Dolby Pro Logic II
[17:54:43] work: compression level not specified, track 2 setting compression level 2.00
[17:54:43] work: sanitizing track 2 bitrate 640 to 320 Kbps
[17:54:43] work: compression level not specified, track 3 setting compression level 2.00
[17:54:43] job configuration:
[17:54:43]  * source
[17:54:43]    + /video/2012.mkv
[17:54:43]    + title 1, chapter(s) 1 to 1
[17:54:43]    + container: matroska,webm
[17:54:43]    + data rate: 10573 kbps
[17:54:43]  * destination
[17:54:43]    + /video/2012.tmp
[17:54:43]    + container: Matroska (libavformat)
[17:54:43]      + align initial A/V stream timestamps
[17:54:43]  * video track
[17:54:43]    + decoder: h264 8-bit (yuv420p)
[17:54:43]    + filters
[17:54:43]      + 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:54:43]      + Decomb (mode=39)
[17:54:43]      + Framerate Shaper (mode=2:rate=27000000/450000)
[17:54:43]        + frame rate: 23.976 fps -> peak rate limited to 60.000 fps
[17:54:43]    + Output geometry
[17:54:43]      + storage dimensions: 1920 x 800
[17:54:43]      + pixel aspect ratio: 1 : 1
[17:54:43]      + display dimensions: 1920 x 800
[17:54:43]    + encoder: H.265 10-bit (libx265)
[17:54:43]      + preset:  medium
[17:54:43]      + options: pools=2
[17:54:43]      + profile: main10
[17:54:43]      + level:   auto
[17:54:43]      + quality: 22.00 (RF)
[17:54:43]      + color profile: 1-1-1
[17:54:43]      + chroma location: left
[17:54:43]  * subtitle track 1, Deutsch [VOBSUB] (track 0, id 0x3, Picture) -> Passthrough, Forced Only
[17:54:43]  * audio track 1
[17:54:43]    + name: DTS/6ch/Deutsch
[17:54:43]    + decoder: Deutsch (DTS) (5.1 ch) (1536 kbps) (track 1, id 0x1)
[17:54:43]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[17:54:43]    + mixdown: Stereo
[17:54:43]    + encoder: MP3 (libmp3lame)
[17:54:43]      + bitrate: 160 kbps, samplerate: 48000 Hz
[17:54:43]      + compression level: 2.00
[17:54:43]  * audio track 2
[17:54:43]    + name: DTS/6ch/Deutsch
[17:54:43]    + decoder: Deutsch (DTS) (5.1 ch) (1536 kbps) (track 1, id 0x1)
[17:54:43]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[17:54:43]    + mixdown: Dolby Pro Logic II
[17:54:43]    + encoder: MP3 (libmp3lame)
[17:54:43]      + bitrate: 320 kbps, samplerate: 48000 Hz
[17:54:43]      + compression level: 2.00
[17:54:43]  * audio track 3
[17:54:43]    + name: DTS/6ch/Englisch
[17:54:43]    + decoder: English (DTS) (5.1 ch) (1536 kbps) (track 2, id 0x2)
[17:54:43]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[17:54:43]    + mixdown: Stereo
[17:54:43]    + encoder: MP3 (libmp3lame)
[17:54:43]      + bitrate: 160 kbps, samplerate: 48000 Hz
[17:54:43]      + compression level: 2.00
[17:54:43] sync: expecting 227040 video frames
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Linux][GCC 11.2.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-4 (Main tier)
x265 [info]: Thread pool created using 2 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 1 / wpp(13 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 3
x265 [info]: Keyframe min / max / scenecut / bias  : 24 / 240 / 40 / 5.00 
x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / off / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-22.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
x265 [info]: tools: b-intra strong-intra-smoothing lslices=5 deblock sao
[17:54:44] sync: first pts video is 0
[17:54:44] sync: Chapter 1 at frame 1 time 0
[17:54:44] sync: first pts audio 0x1 is 0
[17:54:44] sync: first pts audio 0x1 is 0
[17:54:44] sync: first pts audio 0x2 is 0

Encoding: task 2 of 2, 0.01 %
Encoding: task 2 of 2, 0.03 %
Encoding: task 2 of 2, 0.03 %
Encoding: task 2 of 2, 0.03 %
[...]
rollin_eng
Veteran User
Posts: 4859
Joined: Wed May 04, 2011 11:06 pm

Re: Using multiple audio streams

Post by rollin_eng »

Ah, the steaming pile of rigatoni that is the CLI :wink:
Woodstock
Veteran User
Posts: 4623
Joined: Tue Aug 27, 2013 6:39 am

Re: Using multiple audio streams

Post by Woodstock »

It would seem that the CLI is using the selection rules set up in the preset "HQ 2160p60 4K HEVC Surround", rather that being told what track to select. So, it would be best to see what that preset selects. You have two sources, but there are 3 selected audio sources per the log... the third one being the English track for just the stereo track.

I'd check that preset to make sure it is selecting both tracks for both levels. You're bypassing the selection process in your command line, so you're dependent upon the preset's selections.
mohahn
Posts: 10
Joined: Fri Mar 24, 2017 10:12 am

Re: Using multiple audio streams

Post by mohahn »

Woodstock wrote: Fri Aug 25, 2023 5:52 pm I'd check that preset to make sure it is selecting both tracks for both levels. You're bypassing the selection process in your command line, so you're dependent upon the preset's selections.
The preset that's used is defined here. But I'm able to overwrite the output format. The preset is defined as MP4, but I can force MKV output by using "--format av_mkv" in CLI. So it seems, that preset can be modified, by following parameters. I have no idea, what to do else. Do I really have to write full command instead of using a preset now?
mohahn
Posts: 10
Joined: Fri Mar 24, 2017 10:12 am

Re: Using multiple audio streams

Post by mohahn »

The preset defines two audio streams in output. A 5.1 and a stereo stream. I can't see any language dependency in preset JSON. There is a "AudioTrackSelectionBehavior" set to "first" which should be overwritten by "--all-audio" (remember: the output format could be modified though).
Post Reply