Emby on Freebsd using Jails and Hardware Transcoding     

Emby on Freebsd using Jails and Hardware Transcoding

Setup Bastille

  1. pkg install bastille
  2. bastille create emby 14.3-RELEASE 10.0.0.11
  3. bastille restart emby

Install Emby

  1. bastille pkg emby install emby-server libva-utils libva-intel-media-driver
  2. bastille sysrc emby emby_server_enable="YES"
  3. bastille mount emby /home/mike/Movies /home/mike/Movies nullfs ro 0 0
  4. service emby-server start
  5. bastille config emby set allow.mlock 1
  6. bastille config emby set allow.raw_sockets
  7. bastille config emby set mount.devfs
  8. bastille config emby set devfs_ruleset 6
  9. bastille rdr emby tcp 8096 8096
  10. Add the following to the jail.conf of the jail
  11. exec.poststart = "cd /usr/local/bastille/jails/emby/root/dev/dri; ln -s card0 render0";
  12. Checkpoint. Running vainfo should show codecs
  13. Add video to the group by running pw groupmod -n video -m emby
  14. Add sys — needed by emby to detect device
  15. cd /usr/local/bastille/jails/emby/root
  16. tar xvf /path/to/download-of/sys.tar