NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
edalquist
Aug 04, 2014Apprentice
HowTo: Compile ffmpeg on OS6
I needed more codec support than the version of ffmpeg available in the default package manager provided. The following instructions worked for me to compile and install ffmpeg with all of the codecs I needed on my RN314 with OS version 6.1.8
Gist version available here: https://gist.github.com/edalquist/131644c46bfcec5ddc74
# 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
Gist version available here: https://gist.github.com/edalquist/131644c46bfcec5ddc74
3 Replies
Replies have been turned off for this discussion
- fuko747AspirantThank you,
This worked perfectly for me on legacy Readynas Pro. - Edalquist,
I am attempting to install ffmpeg (on OS6) per your instructions, but hitting a snag and wonder how you addressed it.
When executing this:
apt-get install -y libmp3lame-dev
I get the following error:
The following packages have unmet dependencies:
libmp3lame-dev : Depends: libmp3lame0 (= 1:3.99.5-dmo3) but 3.99.5+repack1-3 is to be installed
Everything was clean up to that point.
Any ideas on addressing it?
Thanks! - edalquistApprenticeI'm not really sure, I'd probably look into apt-get options to see if you can force the install even with the version miss-match.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!