OK, here goes:
I have compiled MPlayer under Mac OS X 10.4.6 on an Intel iMac Core Duo. If your build environment differs, it may very well be that the build process fails.
If something's not clear or you get errors during the process, please ask.
Install X11
Forgot this before. You have to have X11 installed. It's also on the first disc of your Mac OS X installation media.
Install Xcode
Install Xcode from the first disc of your Mac OS X installation media.
Install DarwinPorts
There are packages for Panther and Tiger available but I recommend building DarwinPorts from source. (If you have an Intel Mac that's your only option.)
Download
http://darwinports.opendarwin.org/do...s-1.2.1.tar.gz and move it to the Desktop. Unpack the file by double-clicking it. This will create a directory
DarwinPorts-1.2.1.
Open the Terminal (Applications -> Utilities -> Terminal).
(Commands are in
bold, one per line. If you've never used the
sudo command before, you'll likely be asked for your administrator password twice the first time.)
Code:
cd ~/Desktop/DarwinPorts-1.2.1
./configure
make
sudo make install
You now have to add DarwinPorts' binary directory to your PATH variable.
Code:
echo "export PATH=/opt/local/bin:$PATH" >> ~/.profile
Quit the Terminal and open it again.
Update DarwinPorts.
Code:
sudo port -d selfupdate
Install DarwinPorts packages
Install the DarwinPorts package subversion. (Note that many DarwinPorts packages have dependencies on other packages. These will be installed, too.)
Code:
sudo port install subversion
Install the DarwinPorts package pkgconfig.
Code:
sudo port install pkgconfig
Install the DarwinPorts package fontconfig. (Note that Mac OS X comes with fontconfig installed but the ASS/SSA patch requires a more recent version.)
Code:
sudo port install fontconfig
Download & compile MPlayer
Download the MPlayer source code.
Code:
cd ~/Desktop
svn co svn://svn.mplayerhq.hu/mplayer/trunk mplayer
This will create a directory
mplayer on your Desktop.
For Intel Macs only: go to
https://trac.videolan.org/vlc/browse...n-mactel.patch and download the patch. (Right-click on the "Original Format" link at the end of the page and save the file to your computer.) Move the patch file to the Desktop.
Code:
cd ~/Desktop/mplayer
patch -p0 < ~/Desktop/ffmpeg-svn-mactel.patch
Download the ASS/SSA patch from
http://www.sendspace.com/file/qvpb5l. Move the file to the Desktop and unpack it. This will create a file
mplayer-ass.patch on the Desktop.
Code:
cd ~/Desktop/mplayer
patch -p0 < ~/Desktop/mplayer-ass.patch
Run the MPlayer configure script. (
The last line is different for Intel Macs!)
Code:
cd ~/Desktop/mplayer
export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig/"
./configure --disable-sdl --disable-x11 --with-freetype-config=/opt/local/bin/freetype-config
For Intel Macs only:
Code:
./configure --disable-mp3lib --disable-sdl --disable-x11 --with-freetype-config=/opt/local/bin/freetype-config
Finally, compile MPlayer. This can take some time.
Code:
cd ~/Desktop/mplayer
make
If there were no errors during the compilation process you should have a
mplayer executable now. Try it out.
Code:
cd ~/Desktop/mplayer
./mplayer
MPlayer should output a basic help page. If this works try out the ASS/SSA support next. (If you don't know the UNIX path of a file, simply type the command as you normally would except for the filename, then drag the file from the finder and drop it in the Terminal window.)
Code:
./mplayer -ass -embeddedfonts -fontconfig /path/to/anyfile.mkv
If this works we can now embed the custom compiled MPlayer in the MPlayer OSX GUI. Download the official MPlayer build:
http://www1.mplayerhq.hu/MPlayer/rel...CVS-060409.dmg. Copy MPlayer into Applications.
Code:
cd ~/Desktop/mplayer
cp mplayer "/Applications/MPlayer OSX.app/Contents/Resources/External_Binaries/mplayer.app/Contents/MacOS/mplayer"
cp mplayer "/Applications/MPlayer OSX.app/Contents/Resources/External_Binaries/mplayer.app/Contents/MacOS/mplayer_altivec"
Now open MPlayer OSX and bring up the Preferences window.
On the page [b]General[b] set
Font to
None.
On the page
Miscellaneous tick the checkbox
Additional parameters. Enter "-ass -embeddedfonts -fontconfig" in the textbox (without quotes).
Click
OK and you should be good to go.