Page 1 of 1

VLC command line audio track not working

Posted: 22 Nov 2022 18:05
by vlc_cli_newbie
Hello,
I try to extract a video from a DVD via command line script in Windows. Thats it:
"C:/Program Files/VLC/vlc.exe" dvd:///F:/#2 --sout="#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none}:std{access=file,mux=ts,dst=D:/video.mp4}" --no-sout-all --audio-track=1 --audio-track-id=-1 --noloop --run-time=10020 vlc://quit

It always gives me the video with english language, although I want the german one. When I play the video normally via VLC I can see, that there is english (#1), german (#2) and spanish (3) as audio tracks. but whatever number I choose for --audio-track I always get english.
Any idea?
It seems to work when I choose the convert function in VLC, but not with the script.
Thanks.

Re: VLC command line audio track not working

Posted: 23 Nov 2022 14:59
by Alaric
Hey, could you share verbose logs by adding `-vv --logfile=...` to your command line ?
Additionally you could try `audio-language=ger`.

Re: VLC command line audio track not working

Posted: 23 Nov 2022 16:14
by vlc_cli_newbie
Thanks, the option `audio-language=ger` worked!

Re: VLC command line audio track not working

Posted: 24 Nov 2022 09:44
by Alaric
It's likely that you've filled your track number wrong then! :)