2009-08-26, 17:53
I wrote this little script to quick fix some avi files.
I don't know bash too well, so I couldn't figure out how to detect avi or mkv file types without processing an entire directory with *.avi.
Code:
#!/bin/bash
for i in "$1" ;
do
mencoder -ovc copy -oac copy -of avi -o "$i.temp" "$i"
mv "$i.temp" "$i"
done
I don't know bash too well, so I couldn't figure out how to detect avi or mkv file types without processing an entire directory with *.avi.