mac+ffmpeg+php,如何安裝ffmpeg-php Mac OS X豹

Has anyone been able to install ffmpeg-php on osx? i was able to install ffmpeg via mac ports. ffmpeg-php wont install.

有沒有人能夠在osx上安裝ffmpeg-php?我能夠通過mac端口安裝ffmpeg。 ffmpeg-php不會安裝。

Problems: cannot find shared directory because macports installs it to /opt/local/include/ and /opt/local/lib. ffmpeg-php looks in /usr/local/include/ffmpeg

問題:找不到共享目錄,因為macports將其安裝到/ opt / local / include /和/ opt / local / lib。 ffmpeg-php查找/ usr / local / include / ffmpeg

phpize returns a whole bunch of warnings, not sure if this is a problem or not.

phpize返回一大堆警告,不確定這是否是一個問題。

When i get all the headers/libraries in the right locations make is still throwing fits.

當我在正確的位置獲得所有標題/庫時,make仍然是合適的。

Has anyone actually done this? or...

有人真的這樣做過嗎?要么...

is there an alturnative to ffmpeg? I want to be able to create pictures of video frames on the fly.

對於ffmpeg有什么反響?我希望能夠動態創建視頻幀的圖片。

3 个解决方案

#1

My "Formula" for ffmpeg-php is accepted.

我接受了ffmpeg-php的“公式”。

Install homebrew, and run:

安裝自制程序,然后運行:

brew install ffmpeg-php

And you're good to go.

你很高興去。

#2

I haven't been able to compile it either although ffmpeg can still be useful without that extension. Here's a simple example that grabs a jpg every 5th secoond:

雖然ffmpeg在沒有擴展名的情況下仍然有用,但我無法編譯它。這是一個簡單的例子,每隔5個secoond抓一個jpg:

$ffmpeg = '/opt/local/bin/ffmpeg';

$vid = 'test.mpg';

$cmd = $ffmpeg.' -i '.$vid.' -r 0.2 -sameq -f image2 '.$vid.'.%03d.jpg';

exec($cmd);

#3

I just went through the whole process of installing it on my OSX 10.6.2 using these instructions as guidelines. What also helped me was getting the right files following instructions on the site linked here (for the ffmpeg part) and the "simple" instructions under "Installation" from ffmpeg-php site itself for your actual question. All without any macport.

我剛剛使用這些說明作為指導,完成了在OSX 10.6.2上安裝它的整個過程。還有什么幫助我得到正確的文件,按照這里鏈接的網站上的說明(對於ffmpeg部分)和ffmpeg-php網站本身的“安裝”下的“簡單”說明,以獲得實際問題。所有沒有任何macport。

Can't say it was easy, but it's working just fine. It's a very long process that I just won't quote here. Hopefully it's suffice to say basically you need the most recent ffmpeg then everything is a regular "./configure && make" process.

不能說這很容易,但它的工作正常。這是一個非常漫長的過程,我在這里不會引用。希望說基本上你需要最新的ffmpeg然后一切都是常規的“./configure && make”過程就足夠了。

My ffmpeg configuration options were these: --enable-libmp3lame --enable-shared --disable-mmx --arch=x86_64 --enable-libfaad --enable-gpl

我的ffmpeg配置選項如下: - enable-libmp3lame --enable-shared --disable-mmx --arch = x86_64 --enable-libfaad --enable-gpl

Just as a note, this is how I found those links on google (all those search options are default for me, including the filtering by last year). Funny thing, the first result was this question, thus I'm here answering it. ;-)

就像一張紙條,這是我在谷歌上找到這些鏈接的方式(所有這些搜索選項對我來說都是默認的,包括去年的過濾)。有趣的是,第一個結果是這個問題,因此我在這里回答它。 ;-)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值