February 3, 2017

Installing Emby server on the raspberry pi 3 with ffmpeg

Refs:
https://emby.media/community/index.php?/topic/43166-arm-devices-official-instructions/
http://hannes.enjoys.it/blog/2016/03/ffmpeg-on-raspbian-raspberry-pi/
https://akosresch.wordpress.com/2016/05/11/installing-emby-server-on-raspberry-pi-3/
https://github.com/FFmpeg/FFmpeg
https://trac.ffmpeg.org/wiki/CompilationGuide/RaspberryPi

1. Emby server
  1.1 wget -qO - http://download.opensuse.org/repositories/home:emby/xUbuntu_14.04/Release.key | sudo apt-key add -
  1.2 sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/emby/xUbuntu_14.04/ /' >> /etc/apt/sources.list.d/emby-server.list"
  1.3 sudo apt-get update
  1.4 sudo apt-get install emby-server

2. ffmpeg
  2.1 sudo apt-get install git libasound2-dev libfreetype6-dev libomxil-bellagio-dev libmp3lame-dev
  2.2 git clone --depth 1 git://source.ffmpeg.org/ffmpeg.git
  2.3 cd ffmpeg
  2.4 ./configure --arch=armhf --target-os=linux --enable-gpl --enable-mmal --enable-omx --enable-omx-rpi --enable-nonfree --enable-libfreetype --extra-libs=-lasound --enable-libmp3lame --disable-debug --enable-shared
  2.5 make -j4
  2.6 sudo make install
  2.7 sudo ldconfig

3. Setting and running Emby server
  3.1 sudo vi /usr/bin/emby-server
  3.2 Change
FFMPEG_BIN=$(command -v ffmpeg)
FFPROBE_BIN=$(command -v ffprobe)
to
FFMPEG_BIN=/usr/local/bin/ffmpeg
FFPROBE_BIN=/usr/local/bin/ffprobe
  3.3 sudo service emby-server start
  3.4 http://localhost:8096 on the web browser