This howto assumes, that you are able to create a file on a linux filesystem. Furthermore it assumes, that you are able to apt-get.
VPP was made working in the meantime on SNB, IVB and HSW. For HSW you need to install at least 1.3.2 version of libva-driver-intel. Ubuntu Trusty does not ship this version, as a result VAAPI-BOB will produce green artifacts.
That ppa (https://launchpad.net/~wsnipex/+archive/...nta-master) can automatically use the Yadif or BOB CPU Deinterlacer. It can additionally use GPU Deinterlacing (VAAPI-BOB). Those methods can be selected when watching a specific movie by changing the relevant options via the movie reel.
The best quality gives the filter called Deinterlace that is the implementation also referred to as Yadif
This ppa provides a gotham version of current master. The same code also is now in OpenELEC.
Some visual comparison:
-1.) Hardware Requirements / Software Requirements
SNB, IVB, HSW Intel Hardware
Ubuntu Trusty mini iso installed x64. Download link for example here: http://archive.ubuntu.com/ubuntu/dists/t...t/mini.iso
If you have a UEFI only system, you need to use the server iso as your basis, as the mini iso won't boot in UEFI mode. Server iso is here: http://cdimage.ubuntu.com/ubuntu-server/...-amd64.iso
0.) Basic Installation and script tuning
After the mini iso is installed, continue with the following steps:
sudo apt-get update
sudo apt-get install ssh python-software-properties software-properties-common udisks upower xorg alsa-utils mesa-utils git-core librtmp0 lirc libmad0 lm-sensors libmpeg2-4 avahi-daemon libnfs1 consolekit pm-utils libva1 vainfo libva-intel-vaapi-driver linux-firmware
sudo apt-get dist-upgrade
Allow every user (everyone) to start X11
sudo dpkg-reconfigure x11-common
Create the xbmc user and it add it the relevant groups. If you have created the xbmc user during installation only do the usermod part.
sudo adduser xbmc
sudo usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip xbmc
To use the following upstart procedure you need to create /etc/init/xbmc.conf to start xbmc via upstart. That scripts does only wait for your HDMI device, if you want to wait for networking, you have to add that.
# starts XBMC on startup by using xinit.
# by default runs as xbmc, to change edit below.
author "Matt Filetto"
start on (filesystem and stopped udevtrigger)
stop on runlevel 
# tell upstart to respawn the process if abnormal exit
respawn limit 10 5
limit nice 21 21
exec su -c "xinit /usr/bin/xbmc --standalone -- /usr/bin/X -bs -nolisten tcp :0" $USER
# the following two are to get an idea, if you want to user a window manager
# sudo apt-get install fluxbox and comment the above exec line
# only one exec line is allowed.
# exec su -c "xinit /usr/bin/fluxbox -- /usr/bin/X -bs -nolisten tcp :0" $USER
# remove all those to set Full rgb range make sure to change HDMI2 to match your device
# starting from the next line, including end script
# post-start script
# sleep 1
# DISPLAY=:0 xrandr --output HDMI2 --set "Broadcast RGB" Full
# end script
edit /etc/security/limits.conf and add before the end. remember xbmc is the username, not the application. This will allow your user to get the audio thread a bit more priority.
xbmc - nice -1
Last thing is missing some permissions to shutdown, suspend the computer, therefore create the file /etc/polkit-1/localauthority/50-local.d/custom-actions.pkla with the following content (don't introduce line breaks, especially the Action= line must be exactly one line (especially no linebreaks or auto ".." in freedesktop.udisks.*), verify this):
[Actions for xbmc user]
1.) Installation of the repository and the new packages
sudo apt-add-repository ppa:wsnipex/xbmc-fernetmenta-master
sudo apt-get update
sudo apt-get install xbmc xbmc-bin
3.) XBMC settings
Vertical Sync: Let Driver decide
Enable HQ Scalers for scaling above: 20%
Allow hardware acceleration (VDPAU): off
Allow hardware acceleration (VAAPI): On
Use Mpeg-2 VAAPI: Yes
Use Mpeg-4 VAAPI: if you like
UseVC-1 VAAPI: off (this causes vc1 interlaced to segfault, when on)
Adjust Refreshrate to match video: On
If you experience kernel hangs (dmesg will tell), you can set Prefer VAAPI Render: Off that will force the swfilter even when progressive / VAAPI BOB is in use.
System -> Video -> Playback
Sync Playback to Display: On
Sync Method: Video Clock (Drop/Dupe)
Adjust display refresh rate to match video: On Start / Stop
When playing some 720p file or lower (do you get why?) open the movie icon and set Deinterlace: Auto and Deinterlace Method to: Deinterlace (if it causes too much cpu load, choose Bob (Celeron Baytrail and Celeron 847 Nucs(!)) - also set Scaling algorithm to Lanczos 3 optimized (also not for Baytrail and Celeron Nucs, only for HD3000 and faster). Save for all files.
If you are running a Baytrail NUC or a 847 Celeron NUC or comparable - choose Scaling: Bilinear and Deinterlace-Method: BOB
advancedsettings.xml in /home/xbmc/.xbmc/userdata/advancedsettings.xml should contain (don't create that file / directory as root - use the xbmc user, e.g. mkdir -p /home/xbmc/.xbmc/userdata/):
<cputempcommand>sensors|sed -ne "s/Core 0: \+[-+]\([0-9]\+\).*/\1 C/p"</cputempcommand>
<delay>175</delay> <!-- set to zero or adjust if audio seems out of sync with 24p movies -->
Especially the RSS Reader produces high CPU load. You can disable that one under Appearance setting.
Howto update xbmc
As xbmc is a normal ubuntu package, installed via the ppa, it's as simple as:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get update
sudo apt-get install plymouth-label v86d
sudo dpkg -i plymouth-theme-xbmc-logo.deb
We are now done. A final reboot and everything should work:
In order to get any help, please provide the following logs.
sudo apt-get install pastebinit
dmesg | pastebinit
cat ~/.xbmc/temp/xbmc.log | pastebinit
cat /var/log/Xorg.0.log | pastebinit
DISPLAY=:0 vainfo | pastebinit
dpkg -l |grep mesa | pastebinit
id | pastebinit
aplay -L | pastebinit
Check if you audio device is muted
You can use alsamixer -c0 or alsamixer -c1 to do it manually, or use something like:
amixer set 'IEC958',0 unmute
If you want to run pulseaudio, please see the xbmc wiki before: http://wiki.xbmc.org/index.php?title=PulseAudio
Out of historical reasons, you can join #xbmc-xvba for discussing this howto. The channel name shall make us remember forever, that best hardware is worth nothing, if there are no drivers for it :-)
- MADI / MACI are non working on all architectures, we disabled them in code
- To use VAAPI BOB on HSW, you need to build libva-driver-intel 1.3.2 or higher from source, alternatively you can install that driver from wsnipex vaapi repository
- There is an upstream bug in mesa/dri/libva which cause out of a sudden to start tearing. If you press stop xbmc gui will hang and you can see a kernel hang with dmesg. Upstream report is here: https://bugs.freedesktop.org/show_bug.cgi?id=78960 A workaround is to disable "Prefer VAAPI Render method" under Video -> Acceleration (Expert Mode). This will produce a bit more CPU load but will cure that error.
14/01/05: Update to kernel 3.13-rc7
14/01/12: Update to kernel 3.13-rc8
14/01/20: Update to kernel 3.13 final
14/01/30: Update to kernel 3.13.1
14/02/06: Told howto update.
14/02/07: Update to kernel 3.13.2
14/02/14: Update to kernel 3.13.3
16/02/14: Add code to set Display to RGB Full mode
14/02/22: Update to kernel 3.13.4
14/02/24: Update to kernel 3.13.5
14/04/09: Update to Ubuntu trusty
14/04/16: Coming from Saucy? Upgrade: http://forum.xbmc.org/showthread.php?tid...pid1677121
14/06/30: SwFilter Option has been removed. If you want to force a copy to system run disable the new setting: Prefer VAAPI Render in Video -> Acceleration. This is not needed in general, cause when Deinterlace or Bob is active this is automatically bypassed.