Changeset 597 for palm


Ignore:
Timestamp:
Nov 18, 2010 1:34:57 PM (11 years ago)
Author:
maronga
Message:

bugfixes in img2video

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/img2video/img2video

    r586 r597  
    11#!/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#------------------------------------------------------------------------------!
    817
    918#PRESET OF VARIABLES
     
    4150       (c)   codec=$OPTARG;;
    4251       (C)   colors=$OPTARG;;
     52       (f)   output_file=$OPTARG;;
    4353       (h)   hq=true;;
    4454       (i)   input_folder=$OPTARG;;
     
    4757       (o)   output_folder=$OPTARG;;
    4858       (r)   restart=true;;
    49        (R)   rbotate=$OPTARG;;
     59       (R)   rotate=$OPTARG;;
    5060       (s)   scaling=$OPTARG;;
    5161       (S)   speedup=$OPTARG;;
     
    6575 then
    6676   (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"
    6878    printf "\n      Description of available options:\n"
    6979    printf "\n      Option      Description                                 Default-Value"
     
    215225 then
    216226    col1="Rotate video by"
    217     col2="$rotate°"
     227    col2="${rotate}°"
    218228    printf "\n| $col1$col2 |"
    219229 fi
     
    372382       for i in $output_folder/images_${img_fmt}/$name*;
    373383       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
    375385       done
    376386       printf "done."
Note: See TracChangeset for help on using the changeset viewer.