Ffmpeg Mac Os X 10.6 Download
HOWTO install and employ FFmpeg on Mac Bone Ten Leopard
Notice: this commodity is pretty outdated, and things accept gotten a lot simpler. For now i would recommend installing Homebrew, and simply typing brew install ffmpeg
. That'due south information technology.
If you have e'er delved into the deep caves of video encoding and transcoding you've probably come up along FFmpeg, the 'swiss regular army knife' of video encoding tools. Basically, FFmpeg is a command-line tool that allows you to catechumen about any video and audio format to some other format. That's very handy if you want to convert your DVD's to XVID, a movie to a format you tin play on your iPod or PSP or a Flash moving-picture show you tin can use on your website without needing to buy the whole Flash software bundle.
All the same, if you're like me and you are more than interested in making movies than converting them you might get a little scared by the fact that FFmpeg is control-line only, doesn't come with proficient documentation and can simply be 'congenital from source', which means that you can't actually download the thing and run it, you lot have to compile it beginning. Phew.
Fortunately there is a solution and it's chosen MacPorts. MacPorts is a software parcel that makes the whole process of running free and open source applications under Mac OS 10 a whole lot simpler by providing a elementary control that yous tin can run from the final. At the moment i'm writing this, 4376 applications can exist installed using MacPorts.
To start you first take to download the appropriate package and install information technology. Brand sure you have installed Xcode first. This is Apple's developer toolkit that comes bundled with every Mac but isn't installed automatically with Mac Os X. To install it, become your original Mac OS X install discs and install information technology from there.
And then, when yous finished installing MacPorts open a terminal (you can detect this in your Applications/Utilities folder equally Terminal.app) and try to see if it worked by executing:
$ port help
This will output all possible assistance options. If you're getting nervous already by seeing all those messages on the screen y'all might download a graphical frontend to the port command. A gratuitous frontend is Porticus, which is pretty decent only still in beta stage, so you might have some trouble with it. PortAuthority is another option, but it will set you back $20. If you lot're not getting nervous now, read on.
The most of import options for port are called search and install which will let port, well.. search for packages and install them! Allow's endeavor searching for ffmpeg
$ port search ffmpeg
ffmpeg multimedia/ffmpeg 0.four.9-pre1 Digital VCR and streaming server
Yous could now run port install ffmpeg to install the whole matter, but and then you might not install all the things you want. Port packages can as well contain variants which install additional options. To see all possible variants for ffmpeg run:
$ port variants ffmpeg
ffmpeg has the variants: universal, darwin_9, gpl, postproc, lame, libogg, vorbis, theora, faac, faad, xvid, x264, a52
Aha! If y'all wouldn't install these variants too you couldn't encode your movies to the popular XVID format, with MP3 audio (because you're lacking lame) or to the free H264-compatible x264 format. You can add these variants to the install package by just adding them to the command preceded by a plus:
$ port install ffmpeg +gpl +lame +x264 +xvid
You also need to add the gpl variant because xvid is licensed under the terms of the GNU Full general Public License (GPL) instead of FFmpeg which is licensed under the GNU Bottom General Public License (LGPL). When you have tried to use the control above to install FFmpeg you probably got an fault back along the lines of:
Error: Unable to execute port: can't create directory "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg": permission denied
This is because you're installing into some of the directories of the system which a normal user doesn't accept write access to. To exercise this you have to precede sudo to your install command. If yous haven't enabled sudo access for your Mac, read this article. Let's repeat the procedure in a higher place using sudo:
$ sudo port install ffmpeg +gpl +lame +x264 +xvid
You will now be prompted for a password. After that, port volition start downloading and compiling many packages (many which are needed for FFmpeg to run). This might take a while (maybe even upwardly to an hour if you lot accept an one-time system), so leave your Mac on and practice something else, but don't close the Terminal window.
When everything is installed and you got no errors, try running ffmpeg:
$ ffmpeg
If all worked well you lot volition now get a huge corporeality of information. A more minimal way of checking if ffmpeg is installed correctly is past running information technology with the -version argument:
$ ffmpeg -version
So, allow's encode a pic! For these instructions, i'yard supposing yous accept a motion-picture show named mymovie.avi, which is a movie i encoded with XVID and MP3 audio, merely it could of class exist any movie. Yous can view a lot of data about a film by using the -i (input) parameter:
$ ffmpeg -i mymovie.avi
Input #0, avi, from 'mymovie.avi':
Duration: 00:03:43.six, start: 0.000000, bitrate: 1405 kb/due south
Stream #0.0: Video: msmpeg4, yuv420p, 640x480, 25.00 fps(r)
Stream #0.1: Audio: mp3, 48000 Hz, stereo, 128 kb/s
Let's say nosotros want to catechumen this file to a flick encoded using the x264 codec, with a bitrate of 256kb/due south , and AAC audio. To view all possible encoding formats you lot can run FFmpeg with the -formats parameter:
$ ffmpeg -formats
This will output all possible formats (it's quite a long listing). You lot tin use the grep command to search through the list for specific keywords:
$ ffmpeg -formats | grep mp3
DE mp3 MPEG audio layer three
DEA mp3
D A mp3adu
D A mp3on4
The 'D" stands for decoding (reading the file), the 'E' for encoding (writing the file) and the 'A' for audio (that this codec is used for audio). Information technology volition be a 'V' if the codec is used for video.
So here is the command i used to transcode my XVID/MP3 motion-picture show to a X264/AAC movie with a bitrate of 256k:
$ ffmpeg -i mymovie.avi -b 256k -vcodec h264 -acodec aac mymovie.mov
You can't view the results of your work with FFmpeg, for that yous demand a pic player (FFmpeg just transcodes movies). I recommend VLC. If you want to stay on the control line you lot could endeavor mplayer (which you can install using port). In that location's also Quicktime, but it might not exist able to run every codec.
If for some reason you can't compile ffmpeg yous might have luck with this trick. It essentially involves using a precompiled ffmpeg executable from a shareware package (ffmpegX).
So, i hope this article has given you some advice on how to run FFmpeg under Mac Bone X. If yous have whatever comments, please experience free to drop them in beneath this post.
You may also digg this article.
72 comments
Ffmpeg Mac Os X 10.6 Download
Posted by: kahlgought1940.blogspot.com