Copy Audio doesn't seem to be working.

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
imthisguymike
Posts: 4
Joined: Sun Jun 20, 2021 2:39 pm

Copy Audio doesn't seem to be working.

Post by imthisguymike »

Description of problem or question:
Copy Audio doesn't seem to be working.
Using Docker (zocker160/handbrake-nvenc:latest)

Steps to reproduce the problem (If Applicable):
I am using the automatic conversion with the extended arguments.
I have tried the following different ones:

Code: Select all

-e AUTOMATED_CONVERSION_HANDBRAKE_CUSTOM_ARGS="--quality 22 --all-audio --aencoder copy --audio-copy-mask ac3,eac3,truehd,dts,dtshd --audio-fallback av_aac --subtitle scan -F --subtitle-burned --hqdn3d ultralight --comb-detect --decomb mode=11"
(Result: I think this one worked, but it wouldn't keep the subtitles. I was trying simplify the arguments, so the following were the simplified ones).

Code: Select all

-e AUTOMATED_CONVERSION_HANDBRAKE_CUSTOM_ARGS="-a 1,2,3,4,5,6,7,8 -s 1,2,3,4,5,6,7,8 -E copy:* --audio-fallback av_aac --comb-detect --decomb mode=11"
(Result: AAC)

Code: Select all

-e AUTOMATED_CONVERSION_HANDBRAKE_CUSTOM_ARGS="-a 1,2,3,4,5,6,7,8 -s 1,2,3,4,5,6,7,8 --all-audio --aencoder copy --audio-copy-mask ac3,eac3,truehd,dts,dtshd --audio-fallback av_aac --comb-detect --decomb mode=11"
(Result: AAC - This was my most recent attempt)

HandBrake version (e.g., 1.0.0):
20210124210417-6c92584-1.3.x (x86_64


Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
linux/amd64 (Docker container zocker160/handbrake-nvenc:latest)



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

Code: Select all

------- CONVERSION OUTPUT Tue Jun 15 00:25:29 UTC 2021 -------
[00:25:29] Nvenc version 11.0

[00:25:29] hb_init: starting libhb thread
[00:25:29] thread 7ff02af32700 started ("libhb")
HandBrake 20210124210417-6c92584-1.3.x (2021020801) - Linux x86_64 - https://handbrake.fr
8 CPUs detected
Opening /watch/The Interview (2014)-Movie.mkv...
[00:25:29] CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
[00:25:29]  - Intel microarchitecture Skylake
[00:25:29]  - logical processor count: 8
[00:25:29] hb_scan: path=/watch/The Interview (2014)-Movie.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /watch/The Interview (2014)-Movie.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(/watch/The Interview (2014)-Movie.mkv/) failed
[00:25:29] 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
[00:25:29] dvd: not a dvd - trying as a stream/file instead

Scanning title 1 of 1, 0.00 %Input #0, matroska,webm, from '/watch/The Interview (2014)-Movie.mkv':
  Metadata:
    title           : Interview
    encoder         : libmakemkv v1.16.3 (1.3.10/1.5.2) win(x64-release)
    creation_time   : 2021-06-14T23:48:00.000000Z
  Duration: 01:52:11.74, start: 0.000000, bitrate: 27590 kb/s
    Chapter #0:0: start 0.000000, end 404.278875
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 404.278875, end 839.880708
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 839.880708, end 1227.768208
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 1227.768208, end 1632.172208
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 1632.172208, end 2129.627500
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 2129.627500, end 2554.510292
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 2554.510292, end 3110.148708
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 3110.148708, end 3722.343625
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 3722.343625, end 4283.445833
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 4283.445833, end 4712.332625
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 4712.332625, end 5197.859333
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 5197.859333, end 5605.600000
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 5605.600000, end 5869.071542
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 5869.071542, end 6104.056292
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 6104.056292, end 6378.705667
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 6378.705667, end 6731.744000
    Metadata:
      title           : Chapter 16
    Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 22909875
      DURATION-eng    : 01:52:11.725000000
      NUMBER_OF_FRAMES-eng: 161400
      NUMBER_OF_BYTES-eng: 19277872821
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-06-14 23:48:00
      _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), s16p (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 2208204
      DURATION-eng    : 01:52:11.733333333
      NUMBER_OF_FRAMES-eng: 631100
      NUMBER_OF_BYTES-eng: 1858130796
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-06-14 23:48:00
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:52:11.733333333
      NUMBER_OF_FRAMES-eng: 631100
      NUMBER_OF_BYTES-eng: 1269773200
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-06-14 23:48:00
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:52:11.744000000
      NUMBER_OF_FRAMES-eng: 210367
      NUMBER_OF_BYTES-eng: 161561856
      SOURCE_ID-eng   : 001103
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-06-14 23:48:00
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:4(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 640000
      DURATION-eng    : 01:52:11.744000000
      NUMBER_OF_FRAMES-eng: 210367
      NUMBER_OF_BYTES-eng: 538539520
      SOURCE_ID-eng   : 001104
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-06-14 23:48:00
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 34731
      DURATION-eng    : 01:51:28.285770833
      NUMBER_OF_FRAMES-eng: 4138
      NUMBER_OF_BYTES-eng: 29036957
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-06-14 23:48:00
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:6(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 45846
      DURATION-eng    : 01:45:44.901062500
      NUMBER_OF_FRAMES-eng: 3458
      NUMBER_OF_BYTES-eng: 36361703
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-06-14 23:48:00
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:7(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      BPS-eng         : 47874
      DURATION-eng    : 01:52:05.447895833
      NUMBER_OF_FRAMES-eng: 4521
      NUMBER_OF_BYTES-eng: 40246976
      SOURCE_ID-eng   : 001204
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-06-14 23:48:00
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[00:25:29] scan: decoding previews for title 1

Scanning title 1 of 1, preview 1, 10.00 %[00:25:30] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[00:25:30] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[00:25:30] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (Dolby Surround) (192 kbps)
[00:25:30] scan: audio 0x4: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch) (640 kbps)

Scanning title 1 of 1, preview 1, 10.00 %
Scanning title 1 of 1, preview 3, 30.00 %
Scanning title 1 of 1, preview 5, 50.00 %
Scanning title 1 of 1, preview 7, 70.00 %
Scanning title 1 of 1, preview 10, 100.00 %[00:25:31] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/140/0/0, aspect 16:9, PAR 1:1
[00:25:31] libhb: scan thread found 1 valid title(s)
+ Using preset: NVENC-H265-CQ24-MOVIE
+ title 1:
  + stream: /watch/The Interview (2014)-Movie.mkv
  + duration: 01:52:11
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 138/140/0/0
  + chapters:
    + 1: duration 00:06:44
    + 2: duration 00:07:16
    + 3: duration 00:06:28
    + 4: duration 00:06:44
    + 5: duration 00:08:17
    + 6: duration 00:07:05
    + 7: duration 00:09:16
    + 8: duration 00:10:12
    + 9: duration 00:09:21
    + 10: duration 00:07:09
    + 11: duration 00:08:06
    + 12: duration 00:06:48
    + 13: duration 00:04:23
    + 14: duration 00:03:55
    + 15: duration 00:04:35
    + 16: duration 00:05:53
  + audio tracks:
    + 1, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 2, English (DTS) (5.1 ch) (1536 kbps) (iso639-2: eng), 48000Hz, 1536000bps
    + 3, English (AC3) (2.0 ch) (Dolby Surround) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
    + 4, English (AC3) (5.1 ch) (640 kbps) (iso639-2: eng), 48000Hz, 640000bps
  + subtitle tracks:
    + 1, English [PGS]
    + 2, English [PGS]
    + 3, English [PGS]
Warning: Could not find audio track 5, skipped
Warning: Could not find audio track 6, skipped
Warning: Could not find audio track 7, skipped
Warning: Could not find audio track 8, skipped
Invalid codec copy:*, using default for container.
Warning: Could not find subtitle track 4, skipped
Warning: Could not find subtitle track 5, skipped
Warning: Could not find subtitle track 6, skipped
Warning: Could not find subtitle track 7, skipped
Warning: Could not find subtitle track 8, skipped
[00:25:31] Starting work at: Tue Jun 15 00:25:31 2021

[00:25:31] 1 job(s) to process
[00:25:31] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Encoder": 4194304,
                "Track": 0
            },
            {
                "Encoder": 4194304,
                "Track": 1
            },
            {
                "Encoder": 4194304,
                "Track": 2
            },
            {
                "Encoder": 4194304,
                "Track": 3
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:dts",
            "copy:dtshd",
            "copy:eac3",
            "copy:truehd"
        ],
        "FallbackEncoder": "fdk_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 44,
                    "Ticks": 36385098
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 16,
                    "Ticks": 39204165
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 28,
                    "Ticks": 34909875
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 44,
                    "Ticks": 36396360
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 8,
                    "Seconds": 17,
                    "Ticks": 44770977
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 5,
                    "Ticks": 38239451
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 9,
                    "Seconds": 16,
                    "Ticks": 50007457
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 10,
                    "Seconds": 12,
                    "Ticks": 55097543
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 9,
                    "Seconds": 21,
                    "Ticks": 50499198
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 9,
                    "Ticks": 38599812
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 8,
                    "Seconds": 6,
                    "Ticks": 43697403
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 48,
                    "Ticks": 36696661
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 23,
                    "Ticks": 23712438
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 55,
                    "Ticks": 21148628
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 35,
                    "Ticks": 24718443
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 53,
                    "Ticks": 31773451
                },
                "Name": "Chapter 16"
            }
        ],
        "ChapterMarkers": true,
        "File": "/output/.uf6NSp/The Interview (2014)-Movie.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": 140,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 138,
                    "height": 802,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {
        "Name": "Interview"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/watch/The Interview (2014)-Movie.mkv",
        "Range": {
            "End": 16,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": true,
            "Forced": true
        },
        "SubtitleList": [
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 0
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 1
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 2
            }
        ]
    },
    "Video": {
        "ColorFormat": 0,
        "ColorMatrix": 1,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "nvenc_h265",
        "Level": "auto",
        "Options": "",
        "Preset": "default",
        "Profile": "auto",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 24.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[00:25:31] Starting Task: Subtitle Scan
[00:25:31] job configuration:
[00:25:31]  * source
[00:25:31]    + /watch/The Interview (2014)-Movie.mkv
[00:25:31]    + title 1, chapter(s) 1 to 16
[00:25:31]    + container: matroska,webm
[00:25:31]    + data rate: 27590 kbps
[00:25:31]  * destination
[00:25:31]    + /output/.uf6NSp/The Interview (2014)-Movie.mkv
[00:25:31]    + container: Matroska (libavformat)
[00:25:31]      + chapter markers
[00:25:31]  * video track
[00:25:31]    + decoder: h264
[00:25:31]    + filters
[00:25:31]      + Detelecine (pullup) (skip-left=1:skip-right=1:skip-top=4:skip-bottom=4:plane=0)
[00:25:31]      + 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)
[00:25:31]      + Decomb (mode=39)
[00:25:31]      + Framerate Shaper (mode=0)
[00:25:31]        + frame rate: same as source (around 23.976 fps)
[00:25:31]      + Crop and Scale (width=1920:height=802:crop-top=138:crop-bottom=140:crop-left=0:crop-right=0)
[00:25:31]        + source: 1920 * 1080, crop (138/140/0/0): 1920 * 802, scale: 1920 * 802
[00:25:31]    + Output geometry
[00:25:31]      + storage dimensions: 1920 x 802
[00:25:31]      + pixel aspect ratio: 1 : 1
[00:25:31]      + display dimensions: 1920 x 802
[00:25:31]  * Foreign Audio Search: Render/Burn-in, Forced Only
[00:25:31]    + subtitle, English [PGS] (track 0, id 0x5, Picture)
[00:25:31]    + subtitle, English [PGS] (track 1, id 0x6, Picture)
[00:25:31]    + subtitle, English [PGS] (track 2, id 0x7, Picture)
[00:25:31] sync: expecting 161400 video frames
[00:29:49] reader: done. 1 scr changes
[00:29:49] work: average encoding speed for job is 0.000000 fps
[00:29:50] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[00:29:50] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[00:29:50] vfr: lost time: 0 (0 frames)
[00:29:50] vfr: gained time: 0 (0 frames) (0 not accounted for)
[00:29:50] h264-decoder done: 0 frames, 0 decoder errors
[00:29:50] sync: got 0 frames, 161400 expected
[00:29:50] Subtitle track 0 (id 0x5) 'English [PGS]': 2069 hits (0 forced)
[00:29:50] Subtitle track 1 (id 0x6) 'English [PGS]': 1729 hits (0 forced)
[00:29:50] Subtitle track 2 (id 0x7) 'English [PGS]': 2263 hits (0 forced)
[00:29:50] No candidate detected during subtitle scan
[00:29:50] Starting Task: Encoding Pass
[00:29:50] work: mixdown not specified, track 1 setting mixdown 5.1 Channels
[00:29:50] work: bitrate not specified, track 1 setting bitrate 384 Kbps
[00:29:50] work: mixdown not specified, track 2 setting mixdown 5.1 Channels
[00:29:50] work: bitrate not specified, track 2 setting bitrate 384 Kbps
[00:29:50] work: mixdown not specified, track 3 setting mixdown Dolby Surround
[00:29:50] work: bitrate not specified, track 3 setting bitrate 160 Kbps
[00:29:50] work: mixdown not specified, track 4 setting mixdown 5.1 Channels
[00:29:50] work: bitrate not specified, track 4 setting bitrate 384 Kbps
[00:29:50] job configuration:
[00:29:50]  * source
[00:29:50]    + /watch/The Interview (2014)-Movie.mkv
[00:29:50]    + title 1, chapter(s) 1 to 16
[00:29:50]    + container: matroska,webm
[00:29:50]    + data rate: 27590 kbps
[00:29:50]  * destination
[00:29:50]    + /output/.uf6NSp/The Interview (2014)-Movie.mkv
[00:29:50]    + container: Matroska (libavformat)
[00:29:50]      + chapter markers
[00:29:50]  * video track
[00:29:50]    + decoder: h264
[00:29:50]    + filters
[00:29:50]      + Detelecine (pullup) (skip-left=1:skip-right=1:skip-top=4:skip-bottom=4:plane=0)
[00:29:50]      + 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)
[00:29:50]      + Decomb (mode=39)
[00:29:50]      + Framerate Shaper (mode=0)
[00:29:50]        + frame rate: same as source (around 23.976 fps)
[00:29:50]      + Crop and Scale (width=1920:height=802:crop-top=138:crop-bottom=140:crop-left=0:crop-right=0)
[00:29:50]        + source: 1920 * 1080, crop (138/140/0/0): 1920 * 802, scale: 1920 * 802
[00:29:50]    + Output geometry
[00:29:50]      + storage dimensions: 1920 x 802
[00:29:50]      + pixel aspect ratio: 1 : 1
[00:29:50]      + display dimensions: 1920 x 802
[00:29:50]    + encoder: H.265 (NVEnc)
[00:29:50]      + preset:  default
[00:29:50]      + profile: auto
[00:29:50]      + level:   auto
[00:29:50]      + quality: 24.00 (CQ)
[00:29:50]      + color profile: 1-1-1
[00:29:50]  * subtitle track 1, English [PGS] (track 0, id 0x5, Picture) -> Passthrough
[00:29:50]  * subtitle track 2, English [PGS] (track 1, id 0x6, Picture) -> Passthrough
[00:29:50]  * subtitle track 3, English [PGS] (track 2, id 0x7, Picture) -> Passthrough
[00:29:50]  * audio track 1
[00:29:50]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[00:29:50]      + samplerate: 48000 Hz
[00:29:50]    + mixdown: 5.1 Channels
[00:29:50]    + encoder: AAC (libfdk_aac)
[00:29:50]      + bitrate: 384 kbps, samplerate: 48000 Hz
[00:29:50]  * audio track 2
[00:29:50]    + decoder: English (DTS) (5.1 ch) (1536 kbps) (track 2, id 0x2)
[00:29:50]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[00:29:50]    + mixdown: 5.1 Channels
[00:29:50]    + encoder: AAC (libfdk_aac)
[00:29:50]      + bitrate: 384 kbps, samplerate: 48000 Hz
[00:29:50]  * audio track 3
[00:29:50]    + decoder: English (AC3) (2.0 ch) (Dolby Surround) (192 kbps) (track 3, id 0x3)
[00:29:50]      + bitrate: 192 kbps, samplerate: 48000 Hz
[00:29:50]    + mixdown: Dolby Surround
[00:29:50]    + encoder: AAC (libfdk_aac)
[00:29:50]      + bitrate: 160 kbps, samplerate: 48000 Hz
[00:29:50]  * audio track 4
[00:29:50]    + decoder: English (AC3) (5.1 ch) (640 kbps) (track 4, id 0x4)
[00:29:50]      + bitrate: 640 kbps, samplerate: 48000 Hz
[00:29:50]    + mixdown: 5.1 Channels
[00:29:50]    + encoder: AAC (libfdk_aac)
[00:29:50]      + bitrate: 384 kbps, samplerate: 48000 Hz
[00:29:53] sync: expecting 161400 video frames
[00:29:53] encavcodecInit: H.265 (Nvidia NVENC)
[00:29:53] encavcodec: encoding at rc=vbr 24.00
[00:29:53] encavcodec: encoding with stored aspect 1/1
[00:29:54] sync: first pts video is 0
[00:29:54] sync: "Chapter 1" (1) at frame 1 time 0
[00:29:54] sync: first pts audio 0x1 is 0
[00:29:54] sync: first pts audio 0x2 is 0
[00:29:54] sync: first pts audio 0x3 is 0
[00:29:54] sync: first pts audio 0x4 is 0
[00:29:54] sync: first pts subtitle 0x7 is 259020
[00:30:06] sync: first pts subtitle 0x5 is 3603600
[00:30:27] sync: first pts subtitle 0x6 is 9177930
[00:32:41] sync: "Chapter 2" (2) at frame 9694 time 36385098
[00:35:51] sync: "Chapter 3" (3) at frame 20138 time 75589263
[00:38:49] sync: "Chapter 4" (4) at frame 29439 time 110502892
[00:41:55] sync: "Chapter 5" (5) at frame 39136 time 146903006
[00:45:50] sync: "Chapter 6" (6) at frame 51061 time 191666475
[00:49:05] sync: "Chapter 7" (7) at frame 61250 time 229913433
[00:52:10] sync: "Chapter 8" (8) at frame 74570 time 279913383
[00:56:38] sync: "Chapter 9" (9) at frame 89248 time 335010926
[01:00:44] sync: "Chapter 10" (10) at frame 102701 time 385510125
[01:03:48] sync: "Chapter 11" (11) at frame 112984 time 424109936
[01:07:16] sync: "Chapter 12" (12) at frame 124627 time 467814847
[01:10:09] sync: "Chapter 13" (13) at frame 134401 time 504504000
[01:11:46] sync: "Chapter 14" (14) at frame 140718 time 528216438
[01:12:58] sync: "Chapter 15" (15) at frame 146354 time 549372573
[01:14:42] sync: "Chapter 16" (16) at frame 152937 time 574083510
[01:17:12] reader: done. 1 scr changes
[01:17:13] work: average encoding speed for job is 56.847988 fps
[01:17:13] comb detect: heavy 3601 | light 9751 | uncombed 147996 | total 161348
[01:17:13] decomb: deinterlaced 3601 | blended 9751 | unfiltered 147996 | total 161348
[01:17:13] vfr: lost time: 195195 (0 frames)
[01:17:13] vfr: gained time: 195195 (208 frames) (0 not accounted for)
[01:17:13] dca-decoder done: 631100 frames, 0 decoder errors
[01:17:13] dca-decoder done: 631100 frames, 0 decoder errors
[01:17:13] ac3-decoder done: 210367 frames, 0 decoder errors
[01:17:13] ac3-decoder done: 210367 frames, 0 decoder errors
[01:17:13] h264-decoder done: 161400 frames, 0 decoder errors
[01:17:13] sync: got 161400 frames, 161400 expected
[01:17:13] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[01:17:14] mux: track 0, 161348 frames, 3995542882 bytes, 4748.28 kbps, fifo 1024
[01:17:14] mux: track 1, 315552 frames, 323125249 bytes, 384.00 kbps, fifo 2048
[01:17:14] mux: track 2, 315552 frames, 323125249 bytes, 384.00 kbps, fifo 2048
[01:17:14] mux: track 3, 315552 frames, 134635521 bytes, 160.00 kbps, fifo 2048
[01:17:14] mux: track 4, 315552 frames, 323125249 bytes, 384.00 kbps, fifo 2048
[01:17:14] mux: track 5, 4138 frames, 29036957 bytes, 34.51 kbps, fifo 32
[01:17:14] mux: track 6, 3458 frames, 36361703 bytes, 43.21 kbps, fifo 32
[01:17:14] mux: track 7, 4521 frames, 40246976 bytes, 47.83 kbps, fifo 32
[01:17:14] Finished work at: Tue Jun 15 01:17:14 2021

[01:17:14] libhb: work result = 0

Encode done!
HandBrake has exited.
And here's the .json for the profile I am using:

Code: Select all

{
    "PresetList": [
        {
            "AlignAVStart": false,
            "AudioCopyMask": [
                "copy:aac",
                "copy:ac3",
                "copy:dts",
                "copy:dtshd",
                "copy:eac3",
                "copy:truehd"
            ],
            "AudioEncoderFallback": "fdk_aac",
            "AudioLanguageList": [],
            "AudioList": [
                {
                    "AudioBitrate": 160,
                    "AudioCompressionLevel": -1.0,
                    "AudioDitherMethod": "auto",
                    "AudioEncoder": "fdk_aac",
                    "AudioMixdown": "stereo",
                    "AudioNormalizeMixLevel": false,
                    "AudioSamplerate": "auto",
                    "AudioTrackDRCSlider": 0.0,
                    "AudioTrackGainSlider": 0.0,
                    "AudioTrackQuality": 1.0,
                    "AudioTrackQualityEnable": false
                }
            ],
            "AudioSecondaryEncoderMode": true,
            "AudioTrackSelectionBehavior": "first",
            "ChapterMarkers": true,
            "ChildrenArray": [],
            "Default": false,
            "FileFormat": "av_mkv",
            "Folder": false,
            "FolderOpen": false,
            "InlineParameterSets": false,
            "Mp4HttpOptimize": false,
            "Mp4iPodCompatible": false,
            "PictureAutoCrop": true,
            "PictureBottomCrop": 0,
            "PictureChromaSmoothCustom": "",
            "PictureChromaSmoothPreset": "off",
            "PictureChromaSmoothTune": "none",
            "PictureCombDetectCustom": "",
            "PictureCombDetectPreset": "default",
            "PictureDARWidth": 0,
            "PictureDeblockCustom": "strength=strong:thresh=20:blocksize=8",
            "PictureDeblockPreset": "off",
            "PictureDeblockTune": "medium",
            "PictureDeinterlaceCustom": "",
            "PictureDeinterlaceFilter": "decomb",
            "PictureDeinterlacePreset": "default",
            "PictureDenoiseCustom": "",
            "PictureDenoiseFilter": "off",
            "PictureDenoisePreset": "",
            "PictureDenoiseTune": "none",
            "PictureDetelecine": "default",
            "PictureDetelecineCustom": "",
            "PictureForceHeight": 0,
            "PictureForceWidth": 0,
            "PictureHeight": 2160,
            "PictureItuPAR": false,
            "PictureKeepRatio": true,
            "PictureLeftCrop": 0,
            "PictureLooseCrop": false,
            "PictureModulus": 2,
            "PicturePAR": "auto",
            "PicturePARHeight": 720,
            "PicturePARWidth": 853,
            "PictureRightCrop": 0,
            "PictureRotate": "disable=1",
            "PictureSharpenCustom": "",
            "PictureSharpenFilter": "off",
            "PictureSharpenPreset": "",
            "PictureSharpenTune": "",
            "PictureTopCrop": 0,
            "PictureWidth": 3840,
            "PresetDescription": "H.265 video (up to 2160p60) and AAC stereo audio, in an MKV container.",
            "PresetName": "NVENC-H265-CQ24-MOVIE",
            "SubtitleAddCC": false,
            "SubtitleAddForeignAudioSearch": true,
            "SubtitleAddForeignAudioSubtitle": false,
            "SubtitleBurnBDSub": true,
            "SubtitleBurnBehavior": "foreign",
            "SubtitleBurnDVDSub": true,
            "SubtitleLanguageList": [],
            "SubtitleTrackSelectionBehavior": "none",
            "Type": 1,
            "UsesPictureFilters": true,
            "UsesPictureSettings": 1,
            "VideoAvgBitrate": 4500,
            "VideoColorMatrixCodeOverride": 0,
            "VideoEncoder": "nvenc_h265",
            "VideoFramerate": "auto",
            "VideoFramerateMode": "vfr",
            "VideoGrayScale": false,
            "VideoLevel": "auto",
            "VideoOptionExtra": "",
            "VideoPreset": "default",
            "VideoProfile": "auto",
            "VideoQSVAsyncDepth": 4,
            "VideoQSVDecode": false,
            "VideoQualitySlider": 24.0,
            "VideoQualityType": 2,
            "VideoScaler": "swscale",
            "VideoTune": "",
            "VideoTurboTwoPass": true,
            "VideoTwoPass": true,
            "x264Option": "",
            "x264UseAdvancedOptions": false
        }
    ],
    "VersionMajor": 42,
    "VersionMicro": 0,
    "VersionMinor": 0
}
Woodstock
Veteran User
Posts: 4179
Joined: Tue Aug 27, 2013 6:39 am

Re: Copy Audio doesn't seem to be working.

Post by Woodstock »

Your command line says what to do with the first audio track, but there is no action for the others. That would mean that the default encoder would be used.

Do you get what you want when you use "--aencoder copy,copy,copy,copy" for the 4 audio tracks?
User avatar
Rodeo
HandBrake Team
Posts: 12782
Joined: Tue Mar 03, 2009 8:55 pm

Re: Copy Audio doesn't seem to be working.

Post by Rodeo »

The log you provided shows you uses --aencoder copy:* which is not a valid encoder name.

-a 1,2,3,4,5,6,7,8 and --all-audio are redundant, I would omit -a 1,2,3,4,5,6,7,8 (it shouldn't matter, but you never know, it might interfere).

While Woodstock's suggestion will also work, just --aencoder copy should work too, as far as I know; sadly the log for that last attempt is not in your post, as far as I can tell.
imthisguymike
Posts: 4
Joined: Sun Jun 20, 2021 2:39 pm

Re: Copy Audio doesn't seem to be working.

Post by imthisguymike »

Rodeo wrote: Mon Jun 21, 2021 7:37 am The log you provided shows you uses --aencoder copy:* which is not a valid encoder name.
I used that, because I found this documented online, but looking at it now, I may have put it in the wrong place.

Code: Select all

-E	audio encoder  (av_aac, fdk_aac, fdk_haac, copy:aac, 
			ac3, copy:ac3,
			copy:dts, copy:dtshd,
                        mp3, copy:mp3,
                        vorbis
                        flac16, flac24,
                        copy)
		[b]Note : copy:* will passthrough if it's a supported format.[/b]
		Defaults : av_mp4	av_aac
			   av_mkv	mp3
imthisguymike
Posts: 4
Joined: Sun Jun 20, 2021 2:39 pm

Re: Copy Audio doesn't seem to be working.

Post by imthisguymike »

Woodstock wrote: Sun Jun 20, 2021 9:37 pm Do you get what you want when you use "--aencoder copy,copy,copy,copy" for the 4 audio tracks?
I will give it a try, thanks.
imthisguymike
Posts: 4
Joined: Sun Jun 20, 2021 2:39 pm

Re: Copy Audio doesn't seem to be working.

Post by imthisguymike »

Woodstock wrote: Sun Jun 20, 2021 9:37 pm Do you get what you want when you use "--aencoder copy,copy,copy,copy" for the 4 audio tracks?
Rodeo wrote: Mon Jun 21, 2021 7:37 am While Woodstock's suggestion will also work, just --aencoder copy should work too, as far as I know
Following what I learned from both of you, these arguments seem to have fixed it:

Code: Select all

"-a 1,2,3,4,5,6,7,8 -s 1,2,3,4,5,6,7,8 -E copy --audio-fallback av_aac --comb-detect --decomb mode=11"
I tried it with two files, and both retained the original audio. Thank you again!
Post Reply