how to build FFmbc on MAC

1,603 views
Skip to first unread message

to...@rendertom.com

unread,
Nov 27, 2012, 10:28:30 AM11/27/12
to ffmbc-...@googlegroups.com
Hi guys.
I am total newby when it comes to building stuff.
I usually use FFMPEG for my video conversions, and now I want to try FFMBC, but have no idea how to build it.
Please, can someone give a link on HOW TO? Or maybe a built binary for that?

Sorry if this was asked before, but I didn't found any topic about it here.
Thank you.

Robert Krüger

unread,
Nov 27, 2012, 10:38:53 AM11/27/12
to ffmbc-...@googlegroups.com
You can basically use any instructions for ffmpeg.

Bottom line is you need to install the command line tools for xcode (they also exist as a separate download, so you don't have to install the full xcode just to use gcc, make etc. https://developer.apple.com/downloads/index.action), yasm and the additional libs you want to use (e.g. x264) and then it works like any straight Unix build.

HTH

to...@rendertom.com

unread,
Nov 27, 2012, 10:49:08 AM11/27/12
to ffmbc-...@googlegroups.com
yeap, I do have xcode installed on my system.

Robert Krüger

unread,
Nov 27, 2012, 11:23:22 AM11/27/12
to ffmbc-...@googlegroups.com
but the command line tools are not installed by default any more. there is a way to install them later from within xcode, though.

to...@rendertom.com

unread,
Nov 27, 2012, 12:31:47 PM11/27/12
to ffmbc-...@googlegroups.com
all is good with xcode, everything is installed.
My question is how to install/build FFmbc? Can someone provide a step by step tutorial/explanation?

Thanks.

Jan

unread,
Nov 27, 2012, 12:46:25 PM11/27/12
to ffmbc-...@googlegroups.com
I can send you a compiled version...

its a 0.7-rc6 but there wherent that much changes in rc7

there you go:



Gruss,
Jan Fröhling





Mobil: +49 (0)1761 8880 995

www.MoovIT.de

HRB 74531 | Amtsgericht Köln | Steuernummer 218/5727/0870 | USt-idNr.: DE815339118



to...@rendertom.com

unread,
Nov 27, 2012, 12:59:23 PM11/27/12
to ffmbc-...@googlegroups.com, j.fro...@moovit.de
Thank you, Jan. That's very kind of you.
I am downloading it now. Will play with it.
Thank you once again,

Bur for future reference, is there some step by step guide how to do it yourself? I mean how to compile it myself? Or do I need to be linux and some command line guru for that?

I am feeling comfortable with command line when using ffmpeg to convert stuff, but definitely have no clue how to build it for the first time.

Cheers.

st...@pureandapplied.com.au

unread,
Nov 30, 2012, 9:57:40 AM11/30/12
to ffmbc-...@googlegroups.com, to...@rendertom.com
On Wednesday, November 28, 2012 2:28:30 AM UTC+11, to...@rendertom.com wrote:Hi guys.
I am total newby when it comes to building stuff.
I usually use FFMPEG for my video conversions, and now I want to try FFMBC, but have no idea how to build it.
Please, can someone give a link on HOW TO? Or maybe a built binary for that?
[..]

This works for much of the open source software around. There are other systems, but this is the most common. I'm no expert, this is just from experience.

First cd to the directory with the source code (eg cd ~/Downloads/ffmbc* ) then basically the three magic words are:

./configure
make
sudo make install

or for a one liner:

./confgure && make && sudo make install 

(if you do it like this with the && separator it runs the next command only if the previous was successful)

./configure runs the configure script  which is in the source distribution. It sets up a makefile which the built in program "make" uses to actually build the binary and the last line installs it. Now it's not as simple for ffmbc, because you usually want to have some extra libraries installed like libx264 or libmp3lame or whatever. If you type

./configure --help

that will list all the options. If you type

ffmpeg --version

you'll see what your version of ffmpeg has been compiled with. For reference here's my list of options for ffmbc:

 --enable-gpl --enable-nonfree --enable-frei0r --enable-libass --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-runtime-cpudetect --enable-libopenjpeg

So when I build I type

configure  --enable-gpl --enable-nonfree --enable-frei0r --enable-libass --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-runtime-cpudetect --enable-libopenjpeg
make && sudo make install

A lot of those will involve doing the same thing for the dependencies - eg to get libx264 you need to download the x264 source (from the vlc people) and do the ./confgure && make && sudo make install dance for it (and if it has any dependencies you need to get them and build them (and their dependancies (and their dependencies ...)))) This can be very frustrating. Be prepared for a bit of googling. FFMBC compiles pretty well but some of the other libraries don't.

HTH
-stib

to...@rendertom.com

unread,
Dec 3, 2012, 5:00:05 AM12/3/12
to ffmbc-...@googlegroups.com, to...@rendertom.com, st...@pureandapplied.com.au
Now THAT was super useful information. It should be like a sticky for other guys like me:)
That gave me a lot of explanation what to do and when. And what all those things mean.

Thank you my friend for this explanatory post. Appreciate that very much.

Jan Fröhling

unread,
Nov 27, 2012, 3:10:31 PM11/27/12
to ffmbc-...@googlegroups.com
As mentioned before you can follow the same procedure like compiling ffmpeg, try to use that guide. Maybe you have to tweak here and there but it is not that complicated...


or



Gruss,
Jan Fröhling
Mobil: +49 (0)1761 8880 995

www.MoovIT.de

HRB 74531 | Amtsgericht Köln | Steuernummer 218/5727/0870 | USt-idNr.: DE815339118



Phillip Barnett

unread,
Nov 28, 2012, 4:12:23 AM11/28/12
to ffmbc-...@googlegroups.com
Change directory to the downloaded ffmbc directory

./configure
make
sudo make install 

usually does it for me.

Daniel Flehner Heen

unread,
Nov 27, 2012, 12:57:10 PM11/27/12
to ffmbc-...@googlegroups.com

Try homebrew. It has rc7 in the repos.

-Daniel (mobile)

MoovIT-Logo.jpg

25al...@gmail.com

unread,
Dec 25, 2012, 10:25:47 AM12/25/12
to ffmbc-...@googlegroups.com, to...@rendertom.com
The quick and easy way is to install homebrew, and use that to install ffmbc (and a lot of other useful stuff like ffmpeg, ImageMagick, etc.)

The install command is listed on http://mxcl.github.com/homebrew/. As of 2012-09-19, it was

    ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)

Then, run

brew doctor
brew install ffmbc

( For more info about the installation, check https://github.com/mxcl/homebrew/wiki/installation )

That's it.

Except that Homebrew needs the Xcode command-line tools, so if you don't have these already, you may need to dance the Apple dance to get them:

To get Xcode, you need some sort of Apple ID.

At the bottom of this page (https://developer.apple.com/programs/which-program/), there is

Register as an Apple Developer

If you're not ready to join one of our developer programs, you can register as an Apple Developer for free. As a registered Apple Developer you gain access to development tools, resources and information to assist you in creating apps for iOS and OS X. https://developer.apple.com/programs/register/ Learn More


This link leads to
https://developer.apple.com/programs/register/ , where there is a "Create Apple ID" button, leading to
Create Apple ID

Or maybe you can use this page instead: https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/wa/createAppleId?localang=en_US

Once you have an Apple ID, y
ou can get the command line tools by searching for "Xcode" on https://developer.apple.com/downloads/index.action

Reply all
Reply to author
Forward
0 new messages