Page 1 of 1
CommandLine Switch for Audio Track 2
Posted: 18 Oct 2008 12:46
by InsureMan
Can someone assist with the Commandline Switch to have VLC Media Player start on Audio Track 2.
Thanks
Re: CommandLine Switch for Audio Track 2
Posted: 18 Oct 2008 13:03
by InsureMan
Sorry about the duplicate, Internet went down in the middle of send
Re: CommandLine Switch for Audio Track 2
Posted: 18 Oct 2008 19:29
by VLC_help
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).
Re: CommandLine Switch for Audio Track 2
Posted: 19 Oct 2008 02:47
by InsureMan
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
Re: CommandLine Switch for Audio Track 2
Posted: 19 Oct 2008 12:46
by VLC_help
So neither one of those options work?
Re: CommandLine Switch for Audio Track 2
Posted: 19 Oct 2008 21:15
by InsureMan
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
Re: CommandLine Switch for Audio Track 2
Posted: 20 Oct 2008 17:25
by VLC_help
audio-type can't be found from VLC command line manual, so I assume it is deprecated.
Re: CommandLine Switch for Audio Track 2
Posted: 21 Oct 2008 05:33
by InsureMan
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?
Re: CommandLine Switch for Audio Track 2
Posted: 21 Oct 2008 14:59
by VLC_help
AFAIK VLC doesn't allow forcing by audio type.
Re: CommandLine Switch for Audio Track 2
Posted: 21 Oct 2008 21:56
by InsureMan
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.
Re: CommandLine Switch for Audio Track 2
Posted: 08 Dec 2008 17:03
by bsimecek
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!