Ffmpeg Mac Download

Download and install: Click to download and install the latest version of ffmpegX for MacOSX 10.2-10.14. Mailing list: If you want to receive an email when ffmpegX is updated, sign up to the mailing list by entering your email address here.

Let’s learn how to install FFmpeg on Ubuntu, MacOS, and Windows – the easy and painless way. Often times, people spend too much time installing FFmpeg and not using it. Let’s solve that problem today!

  1. Ffmpeg free download - ffmpegX, iSpy, FFMpeg Console, and many more programs.
  2. Download and install: Click to download and install the latest version of ffmpegX for MacOSX from 10.2 to 10.14. Mailing list: If you want to receive an email when ffmpegX is updated, sign up to the mailing list by entering your email address here.

For those who do not know, FFmpeg is one of the most important and popular video processing and compression libraries there is! It powers some of the most efficient encoders that are commercially available along with commonly used software like Handbrake and VLC player.

In this article, let’s start with the basics and see how to install FFmpeg on Windows, MacOS, and Ubuntu. Let’s go!

How to Install FFmpeg on Windows?

On a Windows machine, it is a complex process to compile and install FFmpeg if you are not a programmer and don’t have access to coding tools.

However, for almost all purposes, you can head over to Zeranoe and download compiled .exe FFmpeg files and use that (or the shared libraries).

Update: Zeranoe is shutting down on Sept. 18, 2020 and I’ll provide weekly Win64 builds (static and shared) over here.

How to Install FFmpeg on MacOS?

On a Mac, you can install FFmpeg using brew which is a superb package manager for the MacOS ecosystem. Here is the one-liner to install FFmpeg on a Mac machine (testing and working on Cataline v 10.15.5)

If you want additional tools like Netflix’s VMAF on MacOS with FFmpeg, all you need to do is to include if when you install ffmpeg. For example,

The brew page is an excellent resource for all the possible options. Check there first before hunting on Google or Stackoverflow.

How to Install FFmpeg on Ubuntu?

On Ubuntu, you can install FFmpeg in a couple of ways – using the apt package manager or compiling from source.

Using apt

To simply install it using apt, use the following commandline,

That’s it.

Compiling FFmpeg from Source

However, if you are installing FFmpeg on an Ubuntu machine, there is a high likelihood that you are going to tinker with FFmpeg and that means you might want to compile from the FFmpeg source.

To do so, you can use the procedure mentioned in the FFmpeg Official Installation Guide.

I’ve done it a few times, and there are a couple of dependencies missing in the official guide. Here is my procedure for compiling and installing FFmpeg from source on Ubuntu 18.04.

Step 1: Install the Dependencies (including nasm). And, remember to create the following folders

Step 2: Install the Video and Audio Codecs that you are going to need. I installed libx264, libx265-dev, libnuma-dev, libvpx-dev, libfdk-aac-dev, libmp3lame-dev, and libopus-dev.

Step 3: Install libunistring-dev to prevent the following error : ERROR: gnutls not found using pkg-config

Step 4: Download and compile FFmpeg from sources. Notice that we are now using --enable libvmaf to enable VMAF with FFmpeg.

That’s it – you should be up and running with FFmpeg now!

I’m Dr. Krishna Rao Vijayanagar, and I have worked on Video Compression (AVC, HEVC, MultiView Plus Depth), ABR streaming, and Video Analytics (QoE, Content & Audience, and Ad) for several years.

I hope to use my experience and love for video streaming to bring you information and insights into the OTT universe.

Related Posts:

The FFmpeg project is a fast, accurate multimedia transcoderwhich can be applied in a variety of scenarios on OS X.

If you just want to add a good video transcoder to a toolset thatalready includes Final Cut Pro, Adobe Photoshop, and similar tools,FFmpegX may be your best choice because of its familiarMac-style user interface.

But it's possible that you are interested in using FFmpeg to set up anautomated, web based system to transcode a variety of input videoformats to the Flash video format, which can easily be displayed onthe web.

In this case it will be neccesary to approach FFmpeg on its own termsas a command-line, Linux-centric project. You will need to learn theinstallation techniques commonly used by open source projects, and thestarting point for your work will be running Terminal and workingmostly from the command line. This article will apply thesetechniques in a step-by-step manner to installing a version of FFmpegwhich has most of the features you will need. Some techniques will beused without explanation, so be prepared to do some Googling to fillin the gaps in your knowledge.

Before you can follow these instructions, you must install Apple'sDeveloper Tools.

Prerequisites: LAME

MP3 is the audio codec most often used with Flash video, so you willneed an MP3 encoder. FFmpeg doesn't include one, but it will useLAME, which creates good quality audio files, if youinstall it. Header files will be needed during the compile, so it isnot enough to install a prebuilt binary using a package manager.Instead follow these directions to compile it from source:

Start by creating a working directory:

On a good day you can get the latest source code release of LAME fromSourceforge. The file you want will be namedlame-3.97.tar.gz or something similar.

If that doesn't work, do what I did and get the bleeding edge releasefrom revision control:

If you download the tar file, you need to unpack it as follows (thiscommand is not necessary if you used CVS):

After downloading and unpacking the source or checking it out fromCVS, change to the main directory and then enter the three commandswhich are typically used to build open source projects:

Each command will take a minute or so to complete. You should keep aneye out for any errors which may occur, but installing LAME isgenerally trouble-free.

Optional: FAAC and FAAD

Since Quicktime commonly uses AAC for audio, you may want to encodeand decode that format. Here again FFmpeg doesn't include built-incodecs, but it will use the codecs provided by another open sourceproject if you install them first.

Installing these codecs used to be so difficult that I wouldn't evenhave tried to address it in an introductory article, but recentimprovements mean that you can simply download the latestreleases and follow the instructions they provide, for example:

It's generally a good idea to poke around in the main directory forfiles named INSTALL and README and pay attention to the instructionsthere. Often that's all you need.

Building FFmpeg for Mac OS X Leopard

Recent versions of FFmpeg will compile successfully on versions of OSX as far back as 10.3. Before that OS X used an older version of theC compiler which is no longer compatible with FFmpeg. It's possibleto get an older version of FFmpeg running on OS X 10.2 (read on), butyou may not be satisfied with its capabilities.

If you have a choice it's best to run a recent version of FFmpeg,which means downloading the source code from one of the revisioncontrol systems used by the developers, or getting a nightlysnapshot. Using revision control for something this simple is prettyeasy, and it's a useful technique, so that's what we'll do. Recentversions of Xcode already include Subversion (a newish revisioncontrol tool which really isn't so bad), so we'll use that.

First create a working directory:

The up-to-date version of FFmpeg generally compiles cleanly, and thatis the version you usually will want:

Ffmpeg

Next, configure and make

The --disable-mmx flag is not required on a PowerPC. If you leave itout on an Intel Mac, you will probably get a compile error, but it'sworth trying since it will provide a speed boost. If you installedthe AAC codecs, add the flags --enable-libfaac and --enable-libfaad.

(According to a discussion on ffmpeg-user The '--arch' flag isrequired under Snow Leopard. Experiment.)

A fallback

When I tested for this article originally, the latest source in theSubversion repository did not compile cleanly. My workaround was touse a known stable revision. In general, FFmpeg is a moving targetand you may encounter new issues that I did not. See the mailinglists for the latest information. Here's how to build FFmpegif you have problems with the latest release

Once again, the --disable-mmx flag is not required on a PowerPC-basedMac. There is nothing special about revision 15624, it's just aversion that happened to compile when this article was revised. IfFFmpeg is not compiling on OS X because of a recent change,subtracting a small amount from the latest revision number willprobably fix the issue. Work your way backwards until you findsomething that works.

Congratulations, you've installed FFmpeg. The next section describesa similar procedure for OS X 10.2, so skip ahead for additionalinformation on running FFmpeg.

Building FFmpeg for Mac OS X 10.2

Ffmpegx

[Update: the OS X 10.2 procedure results in an ffmpeg binary thatcan decode only some of the video formats listed in the ffmpegdocumentation. In particular, it can't decode Quicktime video. Takethis into account before you go to the trouble of downloading andcompiling it. On the other hand, this is one of the few freealternatives to Macromedia Flash for converting mpeg into Flash video,and you may be able to convert Quicktime to mpeg by other means.]

Start by creating a build directory:

Compiling on OS X 10.2 requires a patch, and it makes sense to patchagainst a known release. So we will download a recent release, whichcan be found by clicking here, and unpack it:

I have modified a patch by Christoph Seibert to compile onMac OS X 10.2 (if it doesn't work on another version of OS X, tryChristoph's patch). Download it by right-clicking here anduncompress it:

Change to the ffmpeg source directory and apply the patch:

(For more information on using patch, see my article on diff andpatch.)

Now build the project:

Some flv examples

FFmpeg is now installed. There are instructions in the doc/directory, but basic commands are quite simple, and you will find thatthey are similar to ImageMagick, if you have used it. To convert anmpeg video to Flash, use:

(The '-ar 22050' flag sets an audio sample rate of 22050 Hz. It isusually necessary to set a sample rate when encoding flv files becausethe MP3 encoder only supports rates of 11025, 22050, and 44100 Hz.)That's the basic idea, but in practical uses you will probably want totake control over more of the quality settings. A more realisticcommand would look like this:

where

Ffmpeg download mac os
  • '-b 600k' selects a video bitrate of 600 kilobits per second. Thisis a compromise between quality and bandwidth (with older versionsof FFmpeg you would use '-b 600'. Type 'ffmpeg -h' to check whichunits are expected in your version);

  • '-r 24' selects 24 video frames per second;

  • '-ar 22050' selects an audio sample rate of 22050 Hz, which issufficient for voice;

  • '-ab 96k' selects an audio bit rate of 96 kilobits per second; youcould go a little lower for voice-only audio (with older versions ofFFmpeg you would use '-ab 96'. Type 'ffmpeg -h' to check.)

These are the parameters you will adjust most often. Finding theperfect values for your material is a matter of experiment.

Troubleshooting

Download Ffmpeg For Mac For Audacity

flv 1.1 metadata

FFmpeg is a moving target, and this issue is resolved in the latestversion of FFmpeg from the Subversion repository. In older versions,however, FFmpeg didn't write the FLV metadata which is required forthe scrubber bar to work in some Flash video players.

If you experience this problem, there is a fix:

  1. First, try upgrading to the latest version of FFmpeg.

  2. If for some reason you can't upgrade, get the FLV MetadataInjector (Windows-only), or FLVTool2 (OS X andLinux) and process your flv files with them. See the links forinstructions.

make build errors

According to the mailing list, FFmpeg is sensitive to the version of'make' you are running and the build will fail in many cases. Recenttesting shows that the current stable version of GNU make (3.81) willwork, but 3.79 and 3.80 will both fail, for different reasons. BSDmake (also distributed with OS X as 'bsdmake') will fail with multipleerrors. If you are having a problem with make, the simple solutionwould be to upgrade Developer Tools.

Alternate download methods

If your version of Xcode doesn't include a Subversion client, refer tothe FFmpeg download page and pick another method to getthe source, for example:

Runtime errors

Some FFmpeg error messages are a little cryptic. Here are a few Ihave encountered:

  1. If you try to decode a video format that FFmpeg does notunderstand, you get the message

    Just try again with another format, or recompile FFmpeg to add thecodec you need.

  2. If you build FFmpeg without the --enable-libmp3lame flag and try toencode to Flash video, the audio stream will be silently discarded.Only by encoding to another format that does not require MP3 will youdiscover that this is not the expected behavior. In this case justfollow the instructions in this article to install LAME, if necessary,and recompile FFmpeg with LAME support.

  3. When encoding to MP3, you may receive the message

    In practice, this means that you should use the -ar flag to set anaudio sample rate of 11025, 22050, or 44100 Hz.

Further reading

Now that you have video in Flash video format, you may be interestedin publishing it on the web. See my Flash Video Howto forcomplete instructions.

Howard Pritchett publishes an FFmpeg user's guidewhich includes lots of useful information if you're just starting outwith FFmpeg.

Comment on this article and its topic

Copyright © 2006-2008 Stephen Jungels.Written permission is required to repost or reprint this article

How To Install Ffmpeg Mac

Last modified: Tue Feb 22 10:41:16 CST 2011