Thanks to Jon Rogers for this script!
#!/bin/bash
FILES="*.glc"
for f in $FILES
do
echo "Processing $f file..."
# take action on each file. $f store current file name
glc-play $f -y 1 -o - | mencoder -demuxer y4m - -ovc lavc -lavcopts vcodec=mpeg4 -o ${f%.*}.avi
# This previous line takes in the glc file at $f and changes the extension to .avi for saving it as mpeg4
done
No comments:
Post a Comment