HandBrake 1.8.2 CLI Windows does not encode Audio Track

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
stevenyy168
New User
Posts: 1
Joined: Sun Aug 11, 2024 3:11 pm

HandBrake 1.8.2 CLI Windows does not encode Audio Track

Post by stevenyy168 »

Description of problem or question:

I've used the GUI with my custom preset using qsv h265 and it worked beautifully since v1.6.x to v1.8.2. I've exported my preset and use it for my CLI so that I can batch up the encoding jobs. However, the audio track is not being "copied" to the output file and the output file does not have any audio track.

Tried this but also no audio track listed in the job configuration.
HandBrakeCLI -E copy --audio-copy-mask aac,ac3,eac3,truehd,dts,dtshd,flac --audio-fallback av_aac --preset-import-file "Presets - Fast 1080p30 HEVC QSV 1200.json" -i "NG Lost Faces of the Bible 2of4 Ancient Warrior.mkv" -o "Z:\!!NEW\NG Lost Faces of the Bible 2of4 Ancient Warrior x265.mkv"

Steps to reproduce the problem (If Applicable):

HandBrakeCLI --preset-import-file "Presets - Fast 1080p30 HEVC QSV 1800.json" -i "NG Lost Faces of the Bible 2of4 Ancient Warrior.mkv" -o "Z:\!!NEW\NG Lost Faces of the Bible 2of4 Ancient Warrior x265.mkv"

HandBrake version (e.g., 1.0.0):

v1.8.2 CLI


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

Windows 11 with latest updates, windowsdesktop-runtime-8.0.6-win-x64


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

Code: Select all

HandBrakeCLI --preset-import-file "Presets - Fast 1080p30 HEVC QSV 1800.json" -i "NG Lost Faces of the Bible 2of4 Ancient Warrior.mkv" -o "Z:\!!NEW\NG Lost Faces of the Bible 2of4 Ancient Warrior x265.mkv"
[21:55:21] Compile-time hardening features are enabled
Cannot load nvEncodeAPI64.dll
[21:55:21] vcn: not available on this system
[21:55:22] qsv: is available on this system
[21:55:22] hb_init: starting libhb thread
[21:55:22] thread 2 started ("libhb")
HandBrake 1.8.2 (2024081000) - MinGW x86_64 - https://handbrake.fr
4 CPUs detected
Opening NG Lost Faces of the Bible 2of4 Ancient Warrior.mkv...
[21:55:22] CPU: Intel(R) Celeron(R) N5095 @ 2.00GHz
[21:55:22]  - logical processor count: 4
[21:55:22] Intel Quick Sync Video support: yes, gpu list: 0
[21:55:22] Intel Quick Sync Video integrated adapter with index 0
[21:55:22] Impl mfxhw64 library path: C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_0f12908b4ff13ff7\libmfxhw64.dll
[21:55:22]  - Intel Media SDK hardware: API 1.35 (minimum: 1.3)
[21:55:22]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: yes, 10bit: yes)
[21:55:22]  - H.264 encoder: yes
[21:55:22]     - preferred implementation: hardware (1) via D3D11
[21:55:22]     - capabilities (hardware):  lowpower breftype icq vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[21:55:22]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[21:55:22]     - preferred implementation: hardware (1) via D3D11
[21:55:22]     - capabilities (hardware):  lowpower bpyramid icq vsinfo masteringinfo cllinfo opt1
[21:55:22]  - AV1 encoder: no
[21:55:22] hb_scan: path=NG Lost Faces of the Bible 2of4 Ancient Warrior.mkv, title_index=1
Input #0, matroska,webm, from 'NG Lost Faces of the Bible 2of4 Ancient Warrior.mkv':
  Metadata:
    encoder         : libebml v1.3.0 + libmatroska v1.4.0
    creation_time   : 1970-01-01T00:00:01.356098Z
  Duration: 00:44:58.62, start: 0.000000, bitrate: 2923 kb/s
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn (default)
  Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
[21:55:22] scan: decoding previews for title 1
[21:55:22] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 Unknown (AC3, 2.0 ch, 192 kbps)
Scanning title 1 of 1, preview 10, 100.00 %[21:55:22] using container PAR 1:1
[21:55:22] scan: 10 previews, 1280x720, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[21:55:22] scan: supported video decoders: avcodec qsv
[21:55:22] libhb: scan thread found 1 valid title(s)
+ Using preset: Fast 1080p30 HEVC QSV
+ title 1:
  + stream: NG Lost Faces of the Bible 2of4 Ancient Warrior.mkv
  + duration: 00:44:58
  + size: 1280x720, pixel aspect: 1/1, display aspect: 1.78, 25.000 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: duration 00:44:58
  + audio tracks:
    + 1, Unknown (AC3, 2.0 ch, 192 kbps) (iso639-2: und), 48000Hz, 192000bps
  + subtitle tracks:
[21:55:23] Starting work at: Sun Aug 11 21:55:23 2024

[21:55:23] 1 job(s) to process
[21:55:23] json job:
{
    "Audio": {
        "AudioList": [],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:truehd",
            "copy:dts",
            "copy:dtshd",
            "copy:flac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 44,
                    "Seconds": 58,
                    "Ticks": 242876160
                },
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "Z:\\!!NEW\\NG Lost Faces of the Bible 2of4 Ancient Warrior x265.mkv",
        "InlineParameterSets": false,
        "Mux": "mkv",
        "Options": {
            "IpodAtom": false,
            "Optimize": false
        }
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 4,
                "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": 6,
                "Settings": {
                    "mode": "7"
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 20,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 720,
                    "width": 1280
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "HWDecode": 0,
        "Path": "NG Lost Faces of the Bible 2of4 Ancient Warrior.mkv",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
tEen"c:o d1i8n0g0:,
t a s k   - 1   o"fC h-r1o,m a0L.o0c0a t%ion": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "qsv_h265",
        "HardwareDecode": 0,
        "Level": "auto",
        "MultiPass": false,
        "Options": "",
        "Preset": "balanced",
        "Profile": "auto",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Tune": "",
        "Turbo": false
    }
}
[21:55:23] qsv: integrated qsv adapter with index 0 has been selected
[21:55:23] Starting Task: Encoding Pass
[21:55:23] work: skipping crop/scale filter
[21:55:23] job configuration:
[21:55:23]  * source
[21:55:23]    + NG Lost Faces of the Bible 2of4 Ancient Warrior.mkv
[21:55:23]    + title 1, chapter(s) 1 to 1
[21:55:23]    + container: matroska,webm
[21:55:23]    + data rate: 2923 kbps
[21:55:23]  * destination
[21:55:23]    + Z:\!!NEW\NG Lost Faces of the Bible 2of4 Ancient Warrior x265.mkv
[21:55:23]    + container: Matroska (libavformat)
[21:55:23]  * video track
[21:55:23]    + decoder: h264 8-bit (yuv420p)
[21:55:23]    + filters
[21:55: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)
[21:55:23]      + Decomb (mode=39)
[21:55:23]      + Framerate Shaper (mode=0)
[21:55:23]        + frame rate: same as source (around 25.000 fps)
[21:55:23]      + Format (format=nv12)
[21:55:23]    + Output geometry
[21:55:23]      + storage dimensions: 1280 x 720
[21:55:23]      + pixel aspect ratio: 1 : 1
[21:55:23]      + display dimensions: 1280 x 720
[21:55:23]    + encoder: H.265 (Intel Media SDK)
[21:55:23]      + preset:  balanced
[21:55:23]      + profile: auto
[21:55:23]      + level:   auto
[21:55:23]      + bitrate: 1800 kbps, pass: 0
[21:55:23]      + color profile: 1-1-1
[21:55:23]      + color range: tv
[21:55:23]      + chroma location: left
Encoding: task 1 of 1, 0.00 %[21:55:23] sync: expecting 67465 video frames
Encoding: task 1 of 1, 0.00 %[21:55:24] encqsvInit: using encode-only via system memory (LowPower) path
[21:55:24] encqsvInit: H.265/HEVC Main profile @ level 3.1
[21:55:24] encqsvInit: TargetUsage 4 AsyncDepth 6
[21:55:24] encqsvInit: GopRefDist 1 GopPicSize 56 NumRefFrame 4 IdrInterval 0
[21:55:24] encqsvInit: BFramesMax 0 BRefType pyramid
tEhnocdo dViBnRg :T atragsekt K1b posf  118,0 00 .M0a0x K%bps 1800 BufferSizeInKB 450 InitialDelayInKB 225 BRCParamMultiplier 1
[21:55:24] sync: first pts video is 0
[21:55:24] sync: Chapter 1 at frame 1 time 0
Encoding: task 1 of 1, 0.03 %[21:55:24] qsv_enc_init: using 'hardware (1) via D3D11' implementation, API: 1.35
Encoding: ta[s2k2 :10 5o:f0 61],  r9e9a.d9e2r :%  d(o1n2e6.. 417  sfcprs ,c haavngg e1s1
Encoding: task 1 of 1, 100.00 % (126.47 fps, avg 115.79 fps, ETA 00h00m01s)[22:05:06] work: average encoding speed for job is 115.789833 fps
[22:05:06] comb detect: heavy 147 | light 1000 | uncombed 66317 | total 67464
[22:05:06] decomb: deinterlaced 147 | blended 1000 | unfiltered 66317 | total 67464
[22:05:06] vfr: 67464 frames output, 0 dropped
[22:05:06] vfr: lost time: 0 (0 frames)
[22:05:06] vfr: gained time: 0 (0 frames) (0 not accounted for)
Encoding: task 1 of 1, 100.00 % (126.47 fps, avg 115.79 fps, ETA 00h00m01s)[22:05:06] h264-decoder done: 67464 frames, 0 decoder errors
[22:05:06] sync: got 67464 frames, 67465 expected
[22:05:06] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
[22:05:06] mux: track 0, 67464 frames, 605994325 bytes, 1796.47 kbps, fifo 2048
[22:05:06] Finished work at: Sun Aug 11 22:05:06 2024

[22:05:06] libhb: work result = 0

Encode done!

HandBrake has exited.
Post Reply