First of all, thanks bluepixel for the script guidance on getting the framerange from a qt. I've written a script that takes all quicktimes in a folder and converts them to sgi sequences with respective folders for each. Thought I'd post for others to reference.
- Create the following, all within the same directory:
qt2sgi.sh (plain text file that we'll paste our shell script data into)
qt_720x540 (folder to put all quicktimes to be converted - can be named whatever you want, just need to update shell script)
sgi_720x540 (folder where sgi's will be made, in respective folders - can be named whatever you want, just need to update shell script)
- Paste code into qt2sgi.sh. Edit directory names in red to match directory names, if necessary.
#! /bin/tcsh
#This script renders sgi sequences from quicktimes and makes respective folders for each
#Run from directory that contains qt and sgi folders
#set variables for qt and sgi directories - ie change "sgi_720x540" to name of sgi directory
set sgi_dir=sgi_720x540
set qt_dir=qt_720x540
#change directory into qt directory
cd $qt_dir
#for each qt: get duration, create sgi folder in sgi directory, render sgi
foreach name (*.mov)
set shortname=echo $name | cut -d "." -f 1
echo $shortname
mkdir ../$sgi_dir/$shortname
set duration=shake $name -info | & less -e | grep "Duration" | cut -d ":" -f 3
shake -fi $name "auto" -reorder rgbn -fo "../$sgi_dir/$shortname/$shortname.#.sgi" "auto" -t $duration -v
echo "echo $shortname complete"
echo " "
end
echo "All renders completed"
- Make script executable
chmod 777 qt2sgi.sh
- Execute from terminal and enjoy!
./qt2sgi.sh
NOTES:
-reorder rgbn is used to remove the alpha channel from the quicktime to save file size. Can be removed if you like.
Sorry if this is a little overexplained, I know almost all of you know how to do most of these steps. I figure the few people that don't know how to shell script would appreciate it.