I have been working on this short script to convert movies from vob files to xvid. I would like it to read the file VOB.lst for the list of movies to convert, then just do it. I keep getting error's and I'm not sure how to correct it. Any help would be great.
Script...
---------
#!/bin/bash
for INPUT_MOVIE in 'cat VOB.lst' do mencoder $INPUT_MOVIE -o $INPUT_MOVIE.avi -ovc xvid -oac mp3lame -lameopts cbr:br=224:vol=10 -xvidencopts bitrate=1800;done
The Error's
-----------
./Movie: line 2: syntax error near unexpected token `done'
./Movie: line 2: `for INPUT_MOVIE in 'cat VOB.lst' do 'mencoder $INPUT_MOVIE -o $INPUT_MOVIE.avi -ovc xvid -oac mp3lame -lameopts cbr:br=224:vol=10 -xvidencopts bitrate=1800';done'
Script...
---------
#!/bin/bash
for INPUT_MOVIE in 'cat VOB.lst' do mencoder $INPUT_MOVIE -o $INPUT_MOVIE.avi -ovc xvid -oac mp3lame -lameopts cbr:br=224:vol=10 -xvidencopts bitrate=1800;done
The Error's
-----------
./Movie: line 2: syntax error near unexpected token `done'
./Movie: line 2: `for INPUT_MOVIE in 'cat VOB.lst' do 'mencoder $INPUT_MOVIE -o $INPUT_MOVIE.avi -ovc xvid -oac mp3lame -lameopts cbr:br=224:vol=10 -xvidencopts bitrate=1800';done'