VLC command line audio track not working

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.
vlc_cli_newbie
Blank Cone
Blank Cone
Posts: 12
Joined: 06 Nov 2022 14:48

VLC command line audio track not working

Postby vlc_cli_newbie » 22 Nov 2022 18:05

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.

Alaric
Developer
Developer
Posts: 36
Joined: 27 Apr 2022 18:37

Re: VLC command line audio track not working

Postby Alaric » 23 Nov 2022 14:59

Hey, could you share verbose logs by adding `-vv --logfile=...` to your command line ?
Additionally you could try `audio-language=ger`.

vlc_cli_newbie
Blank Cone
Blank Cone
Posts: 12
Joined: 06 Nov 2022 14:48

Re: VLC command line audio track not working

Postby vlc_cli_newbie » 23 Nov 2022 16:14

Thanks, the option `audio-language=ger` worked!

Alaric
Developer
Developer
Posts: 36
Joined: 27 Apr 2022 18:37

Re: VLC command line audio track not working

Postby Alaric » 24 Nov 2022 09:44

It's likely that you've filled your track number wrong then! :)


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 71 guests