CommandLine Switch for Audio Track 2

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
InsureMan
Blank Cone
Blank Cone
Posts: 40
Joined: 09 Oct 2008 11:54

CommandLine Switch for Audio Track 2

Postby InsureMan » 18 Oct 2008 12:46

Can someone assist with the Commandline Switch to have VLC Media Player start on Audio Track 2.

Thanks

InsureMan
Blank Cone
Blank Cone
Posts: 40
Joined: 09 Oct 2008 11:54

Re: CommandLine Switch for Audio Track 2

Postby InsureMan » 18 Oct 2008 13:03

Sorry about the duplicate, Internet went down in the middle of send

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: CommandLine Switch for Audio Track 2

Postby VLC_help » 18 Oct 2008 19:29

I removed the duplicate thread.

http://wiki.videolan.org/VLC_command-line_help
--audio-track=<integer> Audio track
Stream number of the audio track to use (from 0 to n).

InsureMan
Blank Cone
Blank Cone
Posts: 40
Joined: 09 Oct 2008 11:54

Re: CommandLine Switch for Audio Track 2

Postby InsureMan » 19 Oct 2008 02:47

What I am trying to do is have a commandline switch that will set the Audio Track to play my predetermined audio for that disc, be it 2.0, 5.1, or 5.1 DTS. Just not sure what switch command I should be using having tried a number of combination using ": --audio-track=2" and ": --audio-track-id=2".

It’s obvious I don't fully understand the process and would like some guidance between selecting audio tracks and audio devices. In my experimenting I get different results if I use DVD or DVDSimple in the commandline also. I presume you can grow the commandline to set up the player to do exactly what you want.

Example:
C:\Program Files\VideoLan\VLC\vlc.exe dvdsimple://"C:\Video Folder\DVD Name"@1:12-1:16 : --audio-track-id=2 : -f : --aspect-ratio="16:9"

Thanks

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: CommandLine Switch for Audio Track 2

Postby VLC_help » 19 Oct 2008 12:46

So neither one of those options work?

InsureMan
Blank Cone
Blank Cone
Posts: 40
Joined: 09 Oct 2008 11:54

Re: CommandLine Switch for Audio Track 2

Postby InsureMan » 19 Oct 2008 21:15

Read in a publication, Advanced use of VLC on page 40, Miscellaneous Options, that there is a commandline switch,

--audio-type<integer> specifies the default audio type to use with dvds.

Would this option work to allow me to select desired audio type on startup, is there a list some where of the integer to use and if not what is the integer for, 2.0 Stero, 5.1 Dolby Digital, 5.1 DTS

Thanks

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: CommandLine Switch for Audio Track 2

Postby VLC_help » 20 Oct 2008 17:25

audio-type can't be found from VLC command line manual, so I assume it is deprecated.

InsureMan
Blank Cone
Blank Cone
Posts: 40
Joined: 09 Oct 2008 11:54

Re: CommandLine Switch for Audio Track 2

Postby InsureMan » 21 Oct 2008 05:33

Thanks for the advice. Is there any way with commandline switches that I can set up to have VLC start playing a DVD with a particular audio type?

As an alternative do I have the ability to force any audio, say 5.1 DTS?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: CommandLine Switch for Audio Track 2

Postby VLC_help » 21 Oct 2008 14:59

AFAIK VLC doesn't allow forcing by audio type.

InsureMan
Blank Cone
Blank Cone
Posts: 40
Joined: 09 Oct 2008 11:54

Re: CommandLine Switch for Audio Track 2

Postby InsureMan » 21 Oct 2008 21:56

May be this thread can now be closed as it would appear that it is not possible with commandline switches to set Audio options on startup

Thanks for your help.

bsimecek
New Cone
New Cone
Posts: 3
Joined: 08 Dec 2008 16:55

Re: CommandLine Switch for Audio Track 2

Postby bsimecek » 08 Dec 2008 17:03

To play vlc using a specific track, I use MediaInfo (sourceforge) to detect which streams are available, and then use the streams detected output to get me the track number for vlc to use from the command line. I use this to automate the priority of audio tracks when available (DTS, DTS 2, AC3 5.1, AC3 2, Stereo...)...Put it all together with AutoIT scripting, and ya got a great way to just call one file for an AVI or DVD and you get the best possible audio stream. The hardest part of the audio stream is that dvd's sometimes don't use the same audio type across all tracks...the default track is all i use (works for main features)...but when the main feature audio type/track isn't availabe for another track, i'm usually screwed. I wish VLC had an audio prioritization menu item in it's options...this would be very handy!


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 96 guests