Last active
July 27, 2016 21:06
-
-
Save edalquist/131644c46bfcec5ddc74 to your computer and use it in GitHub Desktop.
Install on ReadyNAS OS6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add multimedia source | |
echo "deb http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list | |
echo "deb-src http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list | |
apt-get update | |
apt-get install deb-multimedia-keyring # if this aborts, try again | |
apt-get update | |
# Go to local source directory | |
cd /usr/local/src | |
# Find the version number of libswscale2 provided by the deb-multimedia repository, this is required to install x264 | |
apt-cache policy libswscale2 | |
# Switch to the version of libswscale2 from deb-multimedia | |
apt-get install libswscale2=8:1.0.10-dmo1 | |
# Install all dependencies we'll need | |
apt-get install \ | |
-y \ | |
libfaad-dev \ | |
faad \ | |
faac \ | |
libfaac0 \ | |
libfaac-dev \ | |
libmp3lame-dev \ | |
x264 \ | |
libx264-dev \ | |
libxvidcore-dev \ | |
build-essential \ | |
checkinstall | |
# Install all build dependencies for ffmpeg | |
apt-get build-dep ffmpeg | |
# Get the actual ffmpeg source code | |
apt-get source ffmpeg | |
# Go into the ffmpeg source directory | |
cd ffmpeg-* | |
# Configure it | |
./configure \ | |
--enable-gpl \ | |
--enable-nonfree \ | |
--enable-libfaac \ | |
--enable-libgsm \ | |
--enable-libmp3lame \ | |
--enable-libtheora \ | |
--enable-libvorbis \ | |
--enable-libx264 \ | |
--enable-libxvid \ | |
--enable-zlib \ | |
--enable-postproc \ | |
--enable-swscale \ | |
--enable-pthreads \ | |
--enable-x11grab \ | |
--enable-libdc1394 \ | |
--enable-version3 \ | |
--enable-libopencore-amrnb \ | |
--enable-libopencore-amrwb | |
# a fix | |
mkdir -p /usr/local/share/ffmpeg | |
# Generate the debian package (*.deb) | |
checkinstall -D --install=no --pkgname=ffmpeg-full --autodoinst=yes -y | |
# install the package :) | |
dpkg -i ffmpeg-full_*-1_amd64.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How do I update ffmpeg after following this in order to get it installed?