tags:

views:

81

answers:

3

hi i was wondering if anyone knew how to install ffmpeg on mac then how would i link it to mamp so that i can use it with php?

thanks

A: 

ffmpeg can be installed using Homebrew. If you just need the binary available for PHP scripts to execute, then you're good to go once it's installed. Just use /usr/local/bin/ffmpeg as the path to the ffmpeg binary.

I can't be more specific about the "link to MAMP" part unless you tell us what PHP package depends on ffmpeg.


After "sudo brew install ffmpeg" I have this in my terminal:

adam@fsck:~:0$ sudo brew install ffmpeg
[--snip--]
==> Downloading http://ffmpeg.org/releases/ffmpeg-0.6.tar.bz2
######################################################################## 100.0%
==> ./configure --disable-debug --prefix=/usr/local/Cellar/ffmpeg/0.6 --enable-shared --enable-pthreads --enable-nonfree --enable-gpl --disable-indev=jack --enable-libx264 --enable-
==> make install
/usr/local/Cellar/ffmpeg/0.6: 91 files, 15M, built in 2.3 minutes
adam@fsck:~:0$ which ffmpeg
/usr/local/bin/ffmpeg

So, my ffmpeg is indeed in /usr/local/bin via Homebrew.

Adam Backstrom
i have php version 5
sarmen
ffmpeg doesnt exist in the bin folder. would it be somewhere else?
sarmen
Answer updated: I have ffmpeg in my /usr/local/bin.
Adam Backstrom
A: 

Install MacPorts then:

sudo port selfupdate 

sudo port install ffmpeg
Chris
A: 

i've done exactly this guide to install ffmpeg

It worked like a charm.

Herr Kaleun