1 |
On Tue, Dec 15, 2009 at 9:23 AM, Skippy <linuxgn2@××××××××××××.com> wrote: |
2 |
> |
3 |
> |
4 |
> Greetings, my scripting skills are non-existent, so I come asking for |
5 |
> help. :) I use the following to extract audio from vob files and |
6 |
> write it as wav files: |
7 |
> |
8 |
> mplayer filename.vob -ao pcm:waveheader:file=filename.wav -vo null |
9 |
> |
10 |
> It would be handy if this could be automated so I could run a bash |
11 |
> script in a directory full of vob files and end up with a set of wav |
12 |
> files with the same file name as the original vob. |
13 |
> |
14 |
> If anyone knock out such an animal for me I'd be ever grateful and |
15 |
> praise your name over and over. |
16 |
|
17 |
I'm sure there are 20 ways to do it... Something like this might work: |
18 |
|
19 |
for a in *.vob; do mplayer $a -ao pcm:waveheader:file=$a.wav -vo null; done |
20 |
|
21 |
You also may want to look at the -dumpaudio and -dumpfile options of |
22 |
mplayer if you want the original format audio from your DVD instead of |
23 |
converting it to WAV files... |