Prerequisites:
An Intel-based system running OS X 10.4+ (10.5 or 10.6 strongly recommended)
An administrator account on that system (if you're the only account on it, you're the admin)
Apple's Xcode Developer Tools (requires free registration with the Apple Developers' Center) 3 or higher
MacPorts installed
Perian installed
The AMVApp unzipped in a folder called AMVApp31 in your Downloads folder
* If you're familiar with command-line applications and file/folder structure, you can unzip it somewhere else and modify the command lines here, otherwise, stick to the paths I'm using here
Extra prerequisite for 10.4 users:
X11 must be installed (it comes on your system install disk)
Step 1: Install WINE
* Start Terminal.app (Applications -> Utilities -> Terminal or Terminal.app)
* Enter the following line and press Enter. You will be prompted for your password; as you enter it, nothing will show up (not even *'s), but it will take it as soon as you hit Enter; it's a security feature. You will also be asked if you want to install other packages (which are required for WINE to run). Just hit Enter to accept the default value of Yes.
Code: Select all
sudo port install wine
Step 2: Install AMVApp Components
* Only some of the AMVApp components work under WINE. Notably, AvsPmod and ZarxGUI do not (both rely on libraries that are not fully implemented in WINE yet; soon, hopefully). So we'll only be installing the parts that do work.
* Enter the following series of lines, pressing enter after each one. Each will start the standard Windows installer for that component. Accept all the default settings, and enter the next line after the installer closes.
Code: Select all
wine ~/Downloads/AMVApp31/Avisynth_258.exe
wine ~/Downloads/AMVApp31/AVSPluginPack.exe
wine ~/Downloads/AMVApp31/DGMPGDec158.exe
wine ~/Downloads/AMVApp31/VirtualDub_1910.exe
wine ~/Downloads/AMVApp31/HuffyuvSetup.exe
Step 3: Creating Startable .apps to run DGIndex and VirtualDub
* Start the Applescript Editor (Applications -> Utilities -> Applescript Editor.app for 10.6, Applications -> AppleScript -> Script Editor.app for 10.4 and 10.5). Paste the following block of code in the editing window, then save it in a convenient place for you (like your Documents or Applications folder). Make sure in the save box, you select "Application" as the file type. This will create a .app file that when you double-click it, will start DGIndex (it can take a few seconds to show up after you start it, be patient).
Code: Select all
on run
--edit this to be the correct location and file to run (typically only edit after the "drive_c")
set toRun to "$WINEPREFIX/drive_c/Program Files/DGMPGDec/DGIndex.exe"
--edit winePrefix if you are not using the default prefix
set winePrefix to "$HOME/.wine"
--edit wineLocation if your wine install is not the default location
set wineLocation to "/opt/local/bin"
--edit dyldFallbackLibraryPath if your using X11.app that is not the default Apple one
set dyldFallbackLibraryPath to "/usr/X11/lib"
-------------------------------------------------------
--DO NOT EDIT ANYTHING BELOW THIS LINE
-------------------------------------------------------
set toRunPath to do shell script "WINEPREFIX=\"" & winePrefix & "\"; TEMPVAR=\"" & toRun & "\"; echo \"${TEMPVAR%/*}\""
set toRunFile to do shell script "WINEPREFIX=\"" & winePrefix & "\"; TEMPVAR=\"" & toRun & "\"; TEMPVAR2=\"" & toRunPath & "\"; echo \"${TEMPVAR#$TEMPVAR2/}\""
do shell script "PATH=\"" & wineLocation & ":$PATH\";
export WINEPREFIX=\"" & winePrefix & "\";
export DYLD_FALLBACK_LIBRARY_PATH=\"" & dyldFallbackLibraryPath & "\";
cd \"" & toRunPath & "\";
wine \"" & toRunFile & "\" > /dev/null 2>&1 &"
end run
Code: Select all
on run
--edit this to be the correct location and file to run (typically only edit after the "drive_c")
set toRun to "$WINEPREFIX/drive_c/Program Files/VirtualDub/VirtualDub.exe"
--edit winePrefix if you are not using the default prefix
set winePrefix to "$HOME/.wine"
--edit wineLocation if your wine install is not the default location
set wineLocation to "/opt/local/bin"
--edit dyldFallbackLibraryPath if your using X11.app that is not the default Apple one
set dyldFallbackLibraryPath to "/usr/X11/lib"
-------------------------------------------------------
--DO NOT EDIT ANYTHING BELOW THIS LINE
-------------------------------------------------------
set toRunPath to do shell script "WINEPREFIX=\"" & winePrefix & "\"; TEMPVAR=\"" & toRun & "\"; echo \"${TEMPVAR%/*}\""
set toRunFile to do shell script "WINEPREFIX=\"" & winePrefix & "\"; TEMPVAR=\"" & toRun & "\"; TEMPVAR2=\"" & toRunPath & "\"; echo \"${TEMPVAR#$TEMPVAR2/}\""
do shell script "PATH=\"" & wineLocation & ":$PATH\";
export WINEPREFIX=\"" & winePrefix & "\";
export DYLD_FALLBACK_LIBRARY_PATH=\"" & dyldFallbackLibraryPath & "\";
cd \"" & toRunPath & "\";
wine \"" & toRunFile & "\" > /dev/null 2>&1 &"
end run
* You now can take decrypted VOBs (I haven't tested DVD rippers on my Mac yet; I've been testing with things I decrypted on Windows) and load them into DGIndex, and save the .d2v and .avs files wherever you like.
* The .avs can be edited in any text editor you like (including TextEdit) to include whatever filters you have installed, and the resulting .avs can be opened in VirtualDub to create either Uncompressed or HuffYUV-encoded AVI files that you can use in FCE, FCP, and Premiere Pro on Mac. Check out the Read <a href=http://www.a-m-v.org/guides/avtech31/>ErMaC & AbsoluteDestiny's Friendly AMV Guides</a> for more details.
Future Work: Export/Final Encodes
* Right now, since the ZarxGUI doesn't work under WINE, there's not a quick one-stop-shop encoder that I'm aware of for distribution encodes (which is partially why this is a WIP tutorial, not a full one). Any suggestions for my testing would be welcome.