#!/bin/bash ## Convert movie to 768x432 H264 Quicktime ## version 0.0.6 (091013) ## Created by David Rylander, 2009, www.rylanderanimation.se ## Creative Commons Attribution-Share Alike 3.0 licenced (http://creativecommons.org/licenses/by-sa/3.0/) ## Dependencies of this script; mencoder ##### Variables ##### mypath="`pwd`" #get current path. for filename in "$@" do renamed=`echo $filename | sed 's/\..\{3\}$/-conv.mov/'` mencoder $filename -sws 9 -vf scale=768:432:::,harddup -oac faac -faacopts br=128:mpeg=4:object=2:raw -ovc x264 -x264encopts bitrate=6000:keyint=25:vbv_maxrate=8000:vbv_bufsize=2000:nocabac:level_idc=13:global_header -of lavf -lavfopts format=mov -o $renamed | zenity --progress --pulsate --title="Converting" --text="Converting $filename to H264 mov, 768x432." done