avi=$1 function echolightgreen { echo -e "\033[32;1m $1 \033[0m" } function echolightred { echo -e "\033[31;1m $1 \033[0m" } echolightgreen "Starting to build mpeg file" echolightgreen "and the DVD in 10 seconds" echolightgreen "When you see Red letters" echolightgreen "the process is finish" echolightgreen "What is the name of your project?" read DVD echolightgreen "The Project will start in 10 seconds." sleep 10 CWD='pwd' mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \ -vf scale=720:480,harddup -srate 48000 -af lavcresample=48000 \ -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\ keyint=18:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9 -ofps 30000/1001 \ -o movie.mpg $avi mkdir $DVD #creating DVD toc dvdauthor -o $DVD/ -t movie.mpg dvdauthor -o $DVD/ -T #Burning disc now! growisofs -dvd-compat -dvd-video -Z /dev/dvd $DVD chown $USER:users $DVD.iso movie.mpg chown -R $USER:users $DVD echolightred "DVD IS NOW FINISHED!" echolightred "////////////////////" echolightred "////////////////////" echolightred "////////////////////" echolightred "////////////////////"