here is the script
if possible add a progressbar to the encodings:

#!/bin/sh
# Written by Santanu Sinha

tput clear
echo "       Santanu's AVI creation script"
echo "============================================="
case $# in
        1) echo "Input file name is: $1"
           echo "No output filename specified, using: output.avi"
           OUTFILE=output.avi;;
        2) echo "Input file name is: $1"
           echo "Output filename is: $2"
           OUTFILE=$2;;
        *) echo "Usage: $0 <infile> [<outfile>]">/dev/stderr;;
                
esac;

echo 
echo

if ! test -f "$1" ; then
        echo "Input file doesn't exist !!!">/dev/stderr
        exit 1
else
        echo "Input file checked out..."
fi
if  test -f "$OUTFILE" ; then
        echo "Output file exists!!!">/dev/stderr
        exit 1
else
        echo "Output file checked out..."
fi
echo 
echo
echo -n "Enter Title: "; read TITLE
echo -n "Enter Artist: "; read ARTIST
echo -n "Enter Genre: "; read GENRE
echo -n "Enter Comments: "; read DESCRIPTION

tput clear
echo "       Santanu's AVI creation script"
echo "============================================="
echo "Title: $TITLE"
echo "Artist: $ARTIST"
echo "Genre: $GENRE"
echo "Description: $DESCRIPTION"
echo "Logfile: $OUTFILE.log"
echo "============================================="
echo
echo -n "Press Ctrl-C to abort now or ENTER to proceed...";read
 mencoder -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:vbitrate=650 -oac mp3lame 
-lameopts fast:preset=standard "$1" -o "$OUTFILE" -info 
name="$TITLE":artist="$ARTIST":genre="$GENRE":comment="$DESCRIPTION" 
>$OUTFILE.log 2>$OUTFILE.err &
echo "Wait..."
echo press <CTRL-C> when you see that the left hand %-mark has reached 100%
tail -f $OUTFILE.log


_________________________________________________________________
Powered by http://www.emailpinoy.com - Your 1 GB mailbox is waiting!
If this e-mail is a spam report it to us and we will delete this user's account 
ASP.

--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3

Reply via email to