Emby on Freebsd using Jails and Hardware Transcoding
Setup Bastille
- pkg install bastille
- bastille create emby 14.3-RELEASE 10.0.0.11
- bastille restart emby
Install Emby
- bastille pkg emby install emby-server libva-utils libva-intel-media-driver
- bastille sysrc emby emby_server_enable="YES"
- bastille mount emby /home/mike/Movies /home/mike/Movies nullfs ro 0 0
- service emby-server start
- bastille config emby set allow.mlock 1
- bastille config emby set allow.raw_sockets
- bastille config emby set mount.devfs
- bastille config emby set devfs_ruleset 6
- bastille rdr emby tcp 8096 8096
- Add the following to the jail.conf of the jail
- exec.poststart = "cd /usr/local/bastille/jails/emby/root/dev/dri; ln -s card0 render0";
- Checkpoint. Running vainfo should show codecs
- Add video to the group by running pw groupmod -n video -m emby
- Add sys — needed by emby to detect device
- cd /usr/local/bastille/jails/emby/root
- tar xvf /path/to/download-of/sys.tar