This Should Be a Gist

The girlfriend was having trouble getting some videos to play on a kiosk at work since the company had given them HD videos and the player could only handle low-res mpeg1/2 videos.

I thought, I could probably convert them all with a for loop…

find . -name "*mov" -print0 | while read -d $'\0' file; do
    echo $file
    mencoder "$file" -ovc lavc -lavcopts vcodec=mpeg2video -oac mp3lame -ofps 3000/200 -vf scale=640:480 -o "/media/user/USB DISK/${file:2:-4} 640x480.mpg"; mencoder "$file" -ovc lavc -lavcopts vcodec=mpeg2video -oac mp3lame -ofps 3000/200 -vf scale=320:240 -o "/media/user/USB DISK/${file:2:-4} 320x240.mpg"
done

Turns out it was a while loop.