Skip to content

Instantly share code, notes, and snippets.

@chorrell
Created August 8, 2012 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chorrell/3295245 to your computer and use it in GitHub Desktop.
Save chorrell/3295245 to your computer and use it in GitHub Desktop.
add ffmpeg-php to a smartosplus64 3.1.0 SmartMachine
# Install ffmpeg and autoconf from the pkgsrc repos
pkgin update
pkgin -y install ffmpeg autoconf gcc-compiler
mkdir src
cd src
# Download ffmpeg-php
curl -L -O http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2
# Unpack
tar -xjf ffmpeg-php-0.6.0.tbz2
# Build and install
cd ffmpeg-php-0.6.0/
phpize
./configure --prefix=/opt/local -includedir=/opt/local/include
make
make install
# Add the extension:
echo "extension=ffmpeg.so" >> /opt/local/etc/php.ini
# Restart Apache
svcadm restart apache
# Verify that it's installed:
php -i | grep ffmpeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment