Batch convert *.avi files using ffmpeg
        Posted  
        
            by 
                Darius
            
        on Super User
        
        See other posts from Super User
        
            or by Darius
        
        
        
        Published on 2012-09-05T19:16:43Z
        Indexed on 
            2012/09/05
            21:41 UTC
        
        
        Read the original article
        Hit count: 370
        
I am trying to convert 20+ .avi files in a batch using ffmpeg.
I've got the following
@echo off.
for file in *.avi
do
   ffmpeg -i "$file" -s 640x480 -vcodec msmpeg4v2 "'basename "$file" .avi'.mpg';
done
in my .bat file but it does not work. How can I make it work under Windows OS. Oh, and yes all the files are in the same folder.
The error message I get:
File was unexpected at this time
© Super User or respective owner