#!/bin/csh -f
#
# P. Martin  softimage France 
# Date : Thu Jul 20 10:34:07 GMT 1995
#
#	E Mail : pmartin@microsoft.com
#
#

        echo "------------------------------------------------------------------"
        echo "sgi2mv v 0.0 from VRT using the Cosmo compress Softimage France 1995"

if($#argv < 3 ) then
        echo
        echo "Usage : jpcapt <Name> <TC> <DUR in sec>"
        echo "------------------------------------------------------------------"
        exit (-1)
endif
        echo "------------------------------------------------------------------"

set Img = "$2.#.sgi"
set File = "$1.mv"

# Define here your Quality Factors
# QUA is from 1 to 100 the best
# BRATE 14000000 is the best
set QUA   = 80
set BRATE = 14000000
set Port  = /dev/ttyd2
set NODE  = 1

set DATE = `date`

#dmconvert -vf sgimv -p audio -p video,comp=jpeg,or=t2b,sx=768,sy=576,il=even,rate=25 -n $Img,start=1,end=20 $File

#dmconvert  -f  mpeg1v -p video,engine=cosmo,sx=768,sy=576,inrate=25 \
#titi.#.sgi,start=0,end=30,step=1 titi.mv

dmconvert -vf mpeg1v -p video,engine=cosmo titi.#.sgi titi.mv

dmconvert -vf sgimv -p video,comp=jpeg,engine=cosmo,or=t2b,il=even,rate=25 t1_90.#.sgi t1_90.mv

#dmconvert -f mpeg1v -p video,cropl=10,cropr=20,sx=320,sy=240 -n
#          in###.rgb,start=51,end=150 in.movie in###.rgb out.mpv





