Friday, 19 October 2012

Compiling mplayer on Mac OS X Lion

To compile mplayer on Mac OS X Lion 10.7.5 I did the following:
  • Download lame from SourceForge.
    • cd
    • tar xvf Downloads/lame-3.99.5.tar
    • cd lame-3.99.5
    • ./configure
    • make
    • sudo make install

  • Downloaded yasm.
    • cd
    • tar xvf Downloads/yasm-1.2.0.tar
    • cd yasm-1.2.0
    • ./configure
    • make
    • sudo make install
  • Downloaded the mplayer  "source snapshot".
    • cd
    • tar xjvf Downloads/mplayer-export-snapshot.tar.bz2
    • cd mplayer-export-2012-10-17
    • ./configure --cc=clang
    • make
    • sudo make install
  • To compile ffmpeg:
    • cd
    • cd mplayer-export-2012-10-17/ffmpeg
    • ./configure --enable-libmp3lame
    • make
    • sudo make install

    This was originally to obtain mencoder but I had more success with ffmpeg for encoding mp3 format files.

2 comments:

FranK said...

with this , can mplayer reproduce h264?

codfish said...

It can play sound only with "-vo null" - any other video option results in a hang (for me, anyway).