Automatically Update FFMPEG and x264 From Source / SVN In Ubuntu

Whenever I wish to install and use the rather excellent video and audio transcode programs ffmpeg and x264 I have used FakeOutdoorsman’s excellent How To from the Ubuntu Forums. However, constantly typing out all the commands, especially when updating, is a pain in the arse.

I thus decided, with FakeOutdoorsman’s permission, to write some scripts to automate the task. They are, I hope, fairly comprehensive and allow a user to build and install the latest version of ffmpeg and x264, from source for Ubuntu Hardy, Intrepid, Jaunty, Karmic and Lucid. They allow this to be done automatically, after a few questions have been answered.

There are four scripts in total, one for the initial install, one for keeping everything up-to-date, one to reverse the changes with minimal impact and one to completely reverse all changes (this one I recommend no-one using, hence it is depreciated, but it is there in case some one wants it).

I am certainly not the best at bash, but I have done lots of Googling and I think the script is fairly robust, though I am sure there are errors.

I will be adding to the script over time, adding new features, combining things, adding better error checking etc, so for now consider them BETA releases. They have been tested on Lucid and Karmic only, but they appeared to work.

Please submit any questions here or at the project hosting page.

So, where are the files?

You can get all the scripts here:

Have fun!

6 thoughts on “Automatically Update FFMPEG and x264 From Source / SVN In Ubuntu

  1. For x264 i need to use ./configure –disable-asm due to my AMD Thunderbird CPU. How should I best implement this in your script?

  2. Hi!

    I use your script since a while, thank you!

    Yesterday i tried to update, but the script returns:

    Now updating x264.
    x264 updated.

    Now updating ffmpeg.
    -ffmpeg: error running svn update
    ffmpeg updated.

    That’s it, all done.

    With is everything all right:

    installing dependencies

    downlading, building and installing x264

    downloading, building and installing ffmpeg

    Any idea?

  3. Hi,
    I tried your script but it will not run on my installation of precise. It reports Syntax error in line 437: “(” unexpected (expecting “}”)
    Because I don’t I have much experience with Sheell scripts under linux, I would be happy if you could point me in the right directio,n please.


  4. OK. Got it fixed. Problem exists between keyboard and chair. I first started the script with sudo sh This led to the error message above. I needed to start the script with “sudo bash”. Thanks for your help!

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.