Last active
August 29, 2015 14:12
-
-
Save ebeigarts/2e2ed9f894b760aa01d7 to your computer and use it in GitHub Desktop.
This file contains 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
# Become root | |
su - | |
# Add multimedia source | |
echo "deb http://www.deb-multimedia.org jessie main non-free" > /etc/apt/sources.list.d/deb-multimedia.org.list | |
echo "deb-src http://www.deb-multimedia.org jessie main non-free" >> /etc/apt/sources.list.d/deb-multimedia.org.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 | |
# Install all dependencies we'll need | |
apt-get install \ | |
-y \ | |
libfaad-dev \ | |
faad \ | |
faac \ | |
libfaac0 \ | |
libfaac-dev \ | |
libmp3lame-dev \ | |
libfdk-aac-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-libfdk-aac \ | |
--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/doc | |
# Generate the debian package (*.deb) | |
checkinstall -D --install=no --pkgname=ffmpeg-full --autodoinst=yes -y | |
# install the package :) | |
dpkg -i ffmpeg-full*.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment