How to use --audio 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
Xcapee
Posts: 11
Joined: Thu Apr 26, 2007 7:03 am

How to use --audio option?

Post by Xcapee »

Does the --audio (-a) switch take just the audio track number, or a string?

In other words, do I use '--audio 3' or '--audio English' or maybe '--audio "English (AC3) (5.1 ch)"' ?

Thanks
Cavalicious
Moderator
Posts: 1804
Joined: Mon Mar 26, 2007 12:07 am

Post by Cavalicious »

<space>-a<space>1

...Will encode first audio track (and so on)
risck
Novice
Posts: 51
Joined: Mon Apr 23, 2007 1:20 am

Post by risck »

Cavalicious wrote:<space>-a<space>1

...Will encode first audio track (and so on)
Yea, the help (--help) isn't to helpful for that as it states, as you are well aware of:

Code: Select all

-a, --audio <string>    Select audio channel(s) ("none" for no audio, default: first one)
Now I must admit I haven't tried this yet but does '-a 0' the same as -a none? Just curious. As I'm thinking of making my own little page similar to the wiki's UsedCLIFlags but also include the the --* variant of the flag along with the --help synopsis... eventually leading to examples to clarify everything.
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Post by s55 »

You know, your welcome to send/post us a list of changes so everyone can benefit from them.
jbrjake
Veteran User
Posts: 4805
Joined: Wed Dec 13, 2006 1:38 am

Post by jbrjake »

risck wrote:As I'm thinking of making my own little page similar to the wiki's UsedCLIFlags but also include the the --* variant of the flag along with the --help synopsis... eventually leading to examples to clarify everything.
...
Why reinvent the wheel instead of contributing to existing resources?

http://sever.caenim.com/etcetera/handbr ... /encoding/
http://handbrake.m0k.org/trac/wiki/CLIGuide
risck
Novice
Posts: 51
Joined: Mon Apr 23, 2007 1:20 am

Post by risck »

sr55 wrote:You know, your welcome to send/post us a list of changes so everyone can benefit from them.
Of course but once its a little more than a pi in the sky idea to work on when I have some free time & willing to sit at a computer and actively think :)
jbrjake wrote: Why reinvent the wheel instead of contributing to existing resources?

http://sever.caenim.com/etcetera/handbr ... /encoding/
http://handbrake.m0k.org/trac/wiki/CLIGuide
Somehow I never did spot that wiki page... then again last time I was really searching the wiki for any useful information was well before I converted from the GUI to CL variants.
Post Reply