Get FFmpeg from MacPorts

By neonblue2
THIS POST HAS BEEN SUPERSEDED BY ANOTHER WEBPAGE

So you want a more recent version of FFmpeg do you? Want to be on the cutting edge and ditch the version bundled with Motion JWii? Well there is a very simple way in which you can achieve this without having to obtain all the sources and compile yourself. It involves something called MacPorts.

Step 1
Download MacPorts

Step 2
Open the Terminal

Step 3
Type sudo port -d selfupdate

Step 4
Type sudo port install ffmpeg +lame +extvorbis +theora +faac +faad +xvid +x264 +a52

Step 5
Allow MacPorts to do it's job

Step 6
Once it's finished, go to this folder...

/opt/local/bin

...and copy the ffmpeg file to where ever you want

Now, a word of warning. This version of FFmpeg you just made cannot be moved onto another computer unless MacPorts is installed because it depends on files in that opt folder. What's to be gained from doing this? Well it takes about the same amount of time to convert but the video will turn out a little smaller.

-----------

11 comments so far.

  1. Anonymous 4 November 2007 1:56 AM
    I am struggling trying to find a way on OSX to have FFMPEG use the latest SVN version. Any pointers on how to update the macports build, I have been google'ing around and can't find a thing. The latest SVN has PAFF support which I disparately need.
  2. neonblue2 4 November 2007 11:14 AM
    It all depends on how old the port is. If it does have PAFF support then type sudo port upgrade installed.

    Another good idea is to rebuild it every now and then so you get the advantages its updated dependencies bring.
  3. Anonymous 16 November 2007 4:09 PM
    Hi . . . I just read and followed your instructions. Thanks. I REALLY want to start dabbling with FFMEG as an enhancement to PHP for the purpose of grabbing a frame of video or some such thing . . . .

    I am NOT a wizard when it comes to "ports", "terminal installs", or "compiling packages" in the terminal as that's when all of this is OVER MY HEAD.

    :)

    I am on OS X.5.1 Leopard, I have PHP5 with GD support installed (big headache at first under Leopard), all tested and working, downloaded MACPORTS . . . and built ffmeg through the terminal as per your instructions.

    Great.

    But once it is actually COMPILED and INSTALLED . .. . You said "just go into ffmpeg/ . . . . and move the file wherever you want", and that's where you lost me.

    I want to get PHP to recognize it as an EXTENSION (?) so I can begin coding and manipulating Video.

    Can you help??

    Please and BIG THANKS!

    - CHris
  4. neonblue2 16 November 2007 5:48 PM
    Under "Go" in the Finder select "Go to folder..." and copy this into the text field:

    /opt/local/var/macports/software/ffmpeg/0.4.9-pre1_2+a52+faac+faad+gpl+lame+libogg+vorbis+x264+xvid/opt/local/bin/

    Then move the file called "ffmpeg" wherever you want.

    Hope that's a bit more clear
  5. Anonymous 16 November 2007 5:51 PM
    Whoops . . I spoke too soon .

    As the install / porting of ffmpeg was working . . . at the end . . it suddenly froze my mac. I preformed your instructions again after deleting the OPT folder and doing it all over again . . . same thing,

    Completely froze.

    :(
  6. neonblue2 16 November 2007 5:57 PM
    Are you using the 10.5 version? I haven't had MacPorts installed since I had 10.4.10 on my MBP. The MacUpdate link is for the 10.4 version.

    I'm going to try it now.
  7. neonblue2 16 November 2007 6:42 PM
    Okay, the path has changed slightly.

    /opt/local/var/macports/software/ffmpeg/0.4.9-pre1_2+a52+darwin_9+faac+faad+gpl+lame+libogg+vorbis+x264+xvid/opt/local/bin/
  8. Anonymous 20 November 2007 3:39 PM
    Yes I DEFINITELY have Mac ports 10.5 installed . . . and have tried it 5 times now.

    Eeverything seems to work untill It gets down to "BUILDING FFMPEG" and the computer COMPLETELY freezes . . . even with a TOTALLY CLEAN install of Leopard.

    The color wheel starts spinning and not even my mouse will move.
  9. neonblue2 21 November 2007 7:56 AM
    That's unfortunate. Everything works fine on my end so I don't know what's wrong.

    Does your crash log show anything?
  10. Anonymous 21 November 2007 7:22 PM
    O. M . F . G! It WORKED!!!!!!!!!!

    I justb decided to give it another go . . . . I didnt do a DAMN THING differently . . . but it all installed PERFECTLY!

    I cant believe it.

    Thank you for these EASY instructions.

    NOw . . . if I can get FFMPEG-PHP installed under Leopard from this . . . I will be ONE HAPPY DUDE.

    Big thanks.

    Do you know anything about FFMPEG-PHP????
  11. neonblue2 22 November 2007 3:40 PM
    Know a bit about FFmpeg, not much on PHP. I do know someone who knows some things to do with HTML and PHP.

    Check him out.

Something to say?