Skip to content

Instantly share code, notes, and snippets.

@ocReaper
Last active May 8, 2017 16:00
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ocReaper/00b854e8d096479e86592fad0ccc5362 to your computer and use it in GitHub Desktop.
Save ocReaper/00b854e8d096479e86592fad0ccc5362 to your computer and use it in GitHub Desktop.
Fix Emby Server on Debian (or Raspbian) if throws ffmpeg error in the log
# Get and compile ffmpeg
cd /usr/src
sudo git clone git://git.videolan.org/x264
cd x264
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl
sudo make
sudo make install
cd ..
sudo git clone git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg
sudo apt-get install libmp3lame-dev libomxil-bellagio-dev
sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-libmp3lame --enable-omx-rpi --disable-debug --enable-version3 --enable-nonfree
sudo make -j4
sudo make install
# Make Emby use this ffmpeg version:
sudo nano /usr/bin/emby-server
change:
FFMPEG_BIN=$(command -v ffmpeg)
to
FFMPEG_BIN=/usr/local/bin/ffmpeg
and change:
FFPROBE_BIN=$(command -v ffprobe)
to
FFPROBE_BIN=/usr/local/bin/ffprobe
sudo service emby-server restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment