How to install ffmpeg-php Mac OS X leopard

Has anyone been able to install ffmpeg-php on osx? I was able to install ffmpeg via mac ports. ffmpeg-php will not install.

Problems: Cannot find the shared directory because macports installs it in / opt / local / include / and / opt / local / lib. ffmpeg-php is browsing / usr / local / include / ffmpeg

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

When I get all the headers / libraries in the correct locations, it still throws the fit.

Has anyone really done this? or...

is there any abnormal for ffmpeg? I want to be able to create snapshots of video frames on the fly.

+3
source share
3 answers

"" ffmpeg-php .

homebrew :

brew install ffmpeg-php

.

+2

, ffmpeg . , jpg 5 :

$ffmpeg = '/opt/local/bin/ffmpeg';
$vid = 'test.mpg';
$cmd = $ffmpeg.' -i '.$vid.' -r 0.2 -sameq -f image2 '.$vid.'.%03d.jpg';
exec($cmd);
+4

OSX 10.6.2, . , ( ffmpeg) "" "" ffmpeg-php . .

, , . , . , , ffmpeg, . /configure & make.

ffmpeg: --enable-libmp3lame --enable-shared --disable-mmx --arch=x86_64 --enable-libfaad --enable-gpl

<sub> As a note, here's how I found these links on Google (all of these default search options for me, including filtering compared to last year). Funny, the first result was this question, so I answer here. ;-) Sub>

0
source

Source: https://habr.com/ru/post/1709428/


All Articles