Showing posts with label ROS GLC VIDEO CONVERSION AVI SCRIPT. Show all posts
Showing posts with label ROS GLC VIDEO CONVERSION AVI SCRIPT. Show all posts

Tuesday, January 18, 2011

.glc to .avi conversion script



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