I need a script that runs:
mplayer kickboxing01.wmv -frames 1 -vo jpeg quality=90:outdir=./ -ao null
convert 00000002.jpg -resize 50% -crop 140x120+20 th_kickboxing01.jpg
on each file in a directory.
So, instead of 'kickboxing01.wmv' it would be all <name>.wmv files in a given directory.
and each converted jpg would have its respective th_<name>.jpg
Currently, I run the script in the directory of the wmv files, due to complications in mplayer writing out the jpg.