From b4e24f80fb798e9a26f40aa214c1966db90982f3 Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Mon, 11 Jun 2012 16:26:06 -0400 Subject: updates --- process-video-beta | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) (limited to 'process-video-beta') diff --git a/process-video-beta b/process-video-beta index 8c7fa53..17d95b9 100755 --- a/process-video-beta +++ b/process-video-beta @@ -42,7 +42,7 @@ stage_4= server_list= -while getopts "ht:n:l:d:v:S:V1234:" OPTION +while getopts "ht:n:l:d:v:S:V1234" OPTION do case $OPTION in h) @@ -140,7 +140,7 @@ i=$set_number # check for the server list if [[ -z $server_list ]]; then log "no server specified, using localhost" - $server_list=":" + server_list=":" fi @@ -156,25 +156,22 @@ for num in $(seq $set_number $last_set); do mkdir $output_dir/Final/$set_type$num/ -pv mkdir $output_dir/Filtered/$set_type$num/final -pv done - + +while read crop; do + crop_list=$crop_list" $crop" +done < $crop_file log "set_list $set_list" # Stage 1: extract all of the pngs with Mplayer if [[ $stage_1 -eq 1 ]]; then -echo "Stage 1: Extracting Cropped PNGs" - -while read crop; do + echo "Stage 1: Extracting Cropped PNGs" - setname=$set_type$i + echo "$crop_list" + echo "$set_list" - mplayer -quiet -vo png:prefix=$setname"_":outdir=$output_dir/Cropped/$setname -nosound -vf crop=$crop -speed 12 $video_file &