Changeset 597 for palm/trunk/SCRIPTS/img2video
- Timestamp:
- Nov 18, 2010 1:34:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/img2video/img2video
r586 r597 1 1 #!/bin/ksh 2 # img2video- script for generating video files 3 # 4 # Required packages: 5 # Imagemagick 6 # MEncoder (MPlayer) 7 # gifsicle 2 #------------------------------------------------------------------------------! 3 # Current revisions: 4 # ----------------- 5 # Some bugfixes 6 # 7 # Former revisions: 8 # ----------------- 9 # Initial version 10 # 11 # Description: 12 # ------------ 13 # img2video converts image files (e.g. from NCL, DVRP, VAPOR) and creates 14 # video files with several codecs. Required packages on the local host are: 15 # Imagemagick, MEncoder (MPlayer) and gifsicle 16 #------------------------------------------------------------------------------! 8 17 9 18 #PRESET OF VARIABLES … … 41 50 (c) codec=$OPTARG;; 42 51 (C) colors=$OPTARG;; 52 (f) output_file=$OPTARG;; 43 53 (h) hq=true;; 44 54 (i) input_folder=$OPTARG;; … … 47 57 (o) output_folder=$OPTARG;; 48 58 (r) restart=true;; 49 (R) r botate=$OPTARG;;59 (R) rotate=$OPTARG;; 50 60 (s) scaling=$OPTARG;; 51 61 (S) speedup=$OPTARG;; … … 65 75 then 66 76 (printf "\n *** img2video can be called as follows:\n" 67 printf "\n img2video -c.. -C.. -i.. -k -n.. -o.. -r -R -s.. -S.. -t.. -X -w\n"77 printf "\n img2video -c.. -C.. -i.. -k -n.. -o.. -r -R.. -s.. -S.. -t.. -X -w\n" 68 78 printf "\n Description of available options:\n" 69 79 printf "\n Option Description Default-Value" … … 215 225 then 216 226 col1="Rotate video by" 217 col2="$ rotate°"227 col2="${rotate}°" 218 228 printf "\n| $col1$col2 |" 219 229 fi … … 372 382 for i in $output_folder/images_${img_fmt}/$name*; 373 383 do 374 convert $error_opt2 -rotate $rotate "$output_folder/images_${img_fmt}/${filename}.$img_fmt" "$output_folder/images_${img_fmt}/${filename}.${img_fmt}"384 convert $error_opt2 -rotate $rotate $i $i 375 385 done 376 386 printf "done."
Note: See TracChangeset
for help on using the changeset viewer.