CLI cant copy both audio tracks

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
keith2045
Posts: 4
Joined: Tue Jan 05, 2021 2:25 am

CLI cant copy both audio tracks

Post by keith2045 »

Description of problem or question:

I'm using the CLI to reencode a MKV file i have. It wont seem to copy all of the audio tracks. I've tried several variations of this command line but only 1 audio track gets copied


Steps to reproduce the problem (If Applicable):

Here is the command i'm uisng

Code: Select all

HandBrakeCLI --input "/mnt/cifs/TVShows/The Office (US)/Season 6/The Office (US) - 6x21 - Happy Hour.mkv" --output "/mnt/cifs/TVShows/The Office (US)/Season 6/The Office (US) - 6x21 - Happy Hour-handbrake.mkv" --format av_mkv --encoder x264 --vb 27009.261 --two-pass --turbo --cfr --rate 23.976 --audio "1,2" --aname "Surround 5.1",Commentary --aencoder "copy:dts,copy:ac3" --markers

HandBrake version (e.g., 1.0.0):

HandBrake 20210720182537-a01549c9c-master


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

Ubuntu 20.04

HandBrake Activity Log ***required*** (see How-to get an activity log)
https://pastebin.com/HyTd65kQ
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: CLI cant copy both audio tracks

Post by rollin_eng »

[06:58:56] Passthru requested and input codec is not the same as output codec for track 1, dropping track

Do you need to add the codec to your pass through.
keith2045
Posts: 4
Joined: Tue Jan 05, 2021 2:25 am

Re: CLI cant copy both audio tracks

Post by keith2045 »

Ah, thanks!
Post Reply