Oh, and I forgot to mention... - Hannibal Fortune
Or you can always use Option-click on the link to download the file instead of displaying it. It's a basic Mac operation.Wednesday, May 16 2007 @ 10:30 PM PDT
Oh, and I forgot to mention... - jargall
#/usr/bin/sh#Save this file as something like "ffmpegInstaller.command" and use the Terminal to change permissions on it (chmod 777) ... then run the file! It may run better using "sudo"
#
#The ffmepgX downloads directory will be put in the $REPOS directory: (default is /)
REPOS=""
#If you want this script to download all the right components, leave $DOWNLOAD as YES
DOWNLOAD="YES"
#If you want this script to install RealPlayer components, then leave $REALPLAYER as YES
REALPLAYER="YES"
#
#Vars
if rsync -E /dev/null /dev/null ; then HFS=-E ; elif test -e /usr/local/bin/rsync ; then HFS="--rsync-path=/usr/local/bin/rsync --eahfs" ; fi
LOG=/Library/Logs/WolverInstaller.log
OPT="-verbose"
RSY="-va --exclude=/.Trashes"
EXE=WolverInstaller
LOGDATE="+%Y-%m-%d %H:%M:%S %Z:"
MNT="" ; UM=0 ; AFP=""
USRFILES=/Users/Shared
if test "$OSTYPE" = cygwin ; then
EXT=.WIN
PATH="$PATH:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin"
HN=`hostname`
ARC=intel
else
EXT=""
HN=`hostname -s`
if test "`system_profiler SPHardwareDataType | grep "Processor Name" | grep Intel`" = "" ; then ARC=PPC ; else ARC=intel ; fi
fi
OPTIREPOS="$REPOS"
DRIVE=""
date "$LOGDATE InstallStart" >> $LOG
open $LOG
###
MOD=5ffmpegX
MSG="$MOD" ; echo $MSG ; echo $MSG >> $LOG
VersionTracker="http://www.versiontracker.com/dyn/moreinfo/macosx/15473"
#Download locations: ffmpegX.dmg, mpeg2enc.intel, mepg2enc, ffmpegXbinaries20060307.zip and all_clients-helix-20051110-macos-gcc3-pb.tar.gz or reallib.zip in the $REPOS/ffmegX directory.
if test "$DOWNLOAD" = YES ; then
mkdir -pv "$REPOS/ffmpegX" ; cd "$REPOS/ffmpegX" ; curl -C - -O ftp://ftp2.ffmpegX.com/ffmpegx/ffmpegX.dmg ; curl -C - -O http://mjpeg.sourceforge.net/MacOS/mpeg2enc.intel ; curl -C - -O http://mjpeg.sourceforge.net/MacOS/mpeg2enc ; curl -C - -O http://optusnet.dl.sourceforge.net/sourceforge/mplayerosx/ffmpegXbinaries20060307.zip ; curl -C - http://software-dl.real.com/2518029e3374231b6d03/helix/20051110/all_clients-helix-20051110-macos-gcc3-pb.tar.gz > tgz ; tgzl=`du tgz` ; if test ${tgzl/%tgz/} -lt 20 ; then rm tgz ; curl -C - -O http://superb-east.dl.sourceforge.net/sourceforge/mplayerosx/reallib.zip ; else mv tgz all_clients-helix-20051110-macos-gcc3-pb.tar.gz ; fi
fi
DIR=/Applications/ffmpegX
mkdir -pv "$DIR" >> $LOG
DMG="$REPOS/ffmpegX/ffmpegX.dmg" ; S=""
DMGL=`hdid "$DMG" | grep /Volumes/` ; VOL="${DMGL/#*\/Volumes\//}" ; rsync $RSY $HFS "/Volumes/$VOL/$S" "$DIR" >> $LOG ; diskutil eject "/Volumes/$VOL"
DIR=/Library/Application\ Support/ffmpegX
mkdir -pv "$DIR" >> $LOG
cd "$DIR"
if test "$ARC" = PPC ; then ARCX="" ; else ARCX=".intel" ; fi ; cp -p "$REPOS/ffmpegX/mpeg2enc$ARCX" ./mpeg2enc
unzip -uoCL "$REPOS/ffmpegX"/ffmpegXbinaries*.zip -d .
TGZ="$REPOS/ffmpegX/all_clients-helix-20051110-macos-gcc3-pb.tar.gz" ; FOL=all_clients-helix-20051110-macos-gcc3-pb ; DATE="+%Y%m%d%H%M%S%Z" ; M=__MACOSX ; TEMPFOL=`date "$DATE"` ; ZIP="$REPOS/reallib.zip" ; S=""
if test "$REALPLAYER" = YES ; then
if tar -zxf "$TGZ" ; then mv "$FOL" reallib ; else cd "$TEMP" ; mkdir $TEMPFOL ; unzip "$ZIP" -d $TEMPFOL ; mv $TEMPFOL/$M $TEMPFOL$M ; rsync $RSY $TEMPFOL$M/ $TEMPFOL/ >> $LOG ; rm -Rf $TEMPFOL$M ; /System/Library/CoreServices/FixupResourceForks $TEMPFOL ; chown -R $USR:admin "$TEMPFOL/$S" ; chmod -R g=u "$TEMPFOL/$S" ; rsync $RSY $HFS "$TEMPFOL/$S" "$DIR" >> $LOG ; rm -Rf $TEMPFOL ; fi
fi
DIR=/Library/Application\ Support
cd "$DIR"
TGZ="/Applications/ffmpegX/ffmpegX.app/Contents/Resources/gocr.tgz"
tar -zxf "$TGZ"
TGZ="/Applications/ffmpegX/ffmpegX.app/Contents/Resources/yuvtools.tgz"
tar -zxf "$TGZ"
DIR=$HOM
cd "$DIR"
TGZ="/Applications/ffmpegX/ffmpegX.app/Contents/Resources/mux.tgz"
tar -zxf "$TGZ"
#
Monday, June 25 2007 @ 08:32 PM PDT
Oh, and I forgot to mention... - jargall
either press File > Save once the "junk" has loaded, or go into the Terminal and paste the following lines in to download those files to your desktop:cd Desktop
curl -O http://mjpeg.sourceforge.net/MacOS/mpeg2enc.intel
curl -O http://optusnet.dl.sourceforge.net/sourceforge/mplayerosx/ffmpegXbinaries20060307.zip
Reply to This
Monday, May 14 2007 @ 04:14 AM PDT