#!/bin/sh # # c2007-2010 by Paul Sherman http://www.pcbypaul.com # just a teeny wrapper to convert a FLV file to an AVI. # ret=`which ffmpeg` if [ ! "$ret" == "/usr/bin/ffmpeg" ]; then DIALOG=Xdialog $DIALOG --title "ffmpeg not found..." \ --msgbox "ffmpeg needs to be installed for this conversion. \n\nYou need to install the Multimedia Files (as root),\nor install the ffmpeg package separately.\n" 0 0 exit 0 fi pth=`dirname "$1"` cd $pth mv "$1" `echo $1 | tr ' ' '_' | tr A-Z a-z` 2>/dev/null newfile=`echo "$1" | sed "s/\.flv/\.avi/g"` xterm -title "Converting FLV to AVI" -geom 96x32 -e ffmpeg -i "$1" "$newfile"