Page 1 of 1

How to extract AC3 audio from a DVD on Windows

Posted: 26 Dec 2019 12:09
by NeuNeuRolf
Sorry to bother you all, but I'm new to vlc and would like on Windows 10 to extract the audio from a DVD.

I found out how to do that while converting into wav :
vlc.exe -I dummy --no-sout-video --sout-audio --no-sout-rtp-sap --no-sout-standard-sap --ttl=1 --sout-keep --sout "#transcode{acodec=s16l,channels=2}:std{access=file,mux=wav,dst=$NN.wav}" dvdsimple:///D\:#3:${NN}-3:${NN} vlc://quit
I can convert that to mp3 afterwards, so that's basically what I want.

Now I don't really need to convert because my music player can play ac3, which is the original audio format of a DVD, or so I've been told. When I try to get that directly like this :
/vlc.exe -I dummy --no-sout-video --sout-audio --no-sout-rtp-sap --no-sout-standard-sap --ttl=1 --sout-keep --sout '#std{access=file,mux=raw,dst=1.ac3}' :no-sout-all dvdsimple:///D\:#3:1-3:1 vlc://quit
Then I get a file of about the right size, but the audio is scrambled.

Any ideas, tips, hints would be highly appreciated !

Re: How to extract AC3 audio from a DVD on Windows

Posted: 26 Dec 2019 12:23
by NeuNeuRolf
The DVD that I work with actually has got three Audio streams : the first two are described as A52 Audio (aka AC3) (a52), the third as DTS Audio (dts)

Re: How to extract AC3 audio from a DVD on Windows

Posted: 26 Dec 2019 13:58
by NeuNeuRolf
Ok, thanks to
https://forum.videolan.org/viewtopic.php?t=139862
https://forum.videolan.org/viewtopic.php?f=14&t=135250&p=447359&hilit=audio+track#p447359
I found the solution : --no-sout-all

Re: How to extract AC3 audio from a DVD on Windows

Posted: 26 Dec 2019 14:19
by NeuNeuRolf
for NN in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
do
/cygdrive/c/Program\ Files\ \(x86\)/VideoLAN/VLC/vlc.exe -I dummy --no-sout-video --sout-audio --no-sout-rtp-sap --no-sout-standard-sap --no-sout-all --ttl=1 --sout-keep --sout "#std{access=file,mux=raw,dst=$NN.ac3}" dvdsimple:///D\:#3:$NN-3:$NN vlc://quit
done