XBMC: Difference between revisions
Line 34: | Line 34: | ||
mount -t nfs 192.168.0.101:/volume1/video /storage/INVADERvideos/ -o udp,noatime,rsize=32768,wsize=32768,nolock,nfsvers=3 | mount -t nfs 192.168.0.101:/volume1/video /storage/INVADERvideos/ -o udp,noatime,rsize=32768,wsize=32768,nolock,nfsvers=3 | ||
</pre> | </pre> | ||
NB The udp option could be causing problems, so try dropping it if it does. [http://lucatnt.com/2013/09/avoid-stuttering-streaming-from-nfs-shares-with-xbmc-on-the-raspberry-pi/ See here for source] | NB The udp option could be causing problems, so try dropping it if it does. Instead use noatime,nolock,vers=4 as options [http://lucatnt.com/2013/09/avoid-stuttering-streaming-from-nfs-shares-with-xbmc-on-the-raspberry-pi/ See here for source] | ||
To remount at boot, don't use fstab (it's readonly), but either: | To remount at boot, don't use fstab (it's readonly), but either: |
Revision as of 08:47, 14 April 2015
OpenElec
You can find a whole load of settings files in:
/storage/.xbmc/userdata/
/storage/.config
SSH
login as user: root pass: openelec
Optimising
Menu speed
Turn off Extract thumbnail and video information from System => Settings => File lists
Turn off the RSS feed in System => Settings => Appearance.
Improving stutter
To ensure your Raspberry Pi can keep up in fast moving complex scenes you need to set the refresh rate of your monitor to match that of the video. To achieve this head over to System => Settings => Videos => Playback and set Adjust display refresh rate to match video to Always. Now fast moving scenes will play without glitches or stuttering because XBMC no longer has to pull up the refresh rate to 50 or 60 Hz.The only downside is the slightly increased chance of interference patterns. But these are still far less annoying than shocking movement in scenes.
ALSO 1080p MKV files stutter like hell. The solution is to mount the NAS using NFS, see below!
and here for stuff about changing the buffering, but that shouldn't be necessary if you're mounting properly using NFS
Mounting with NFS
Also see here mount stuff in:
mount -t nfs 192.168.0.101:/volume1/video /storage/INVADERvideos/ -o udp,noatime,rsize=32768,wsize=32768,nolock,nfsvers=3
NB The udp option could be causing problems, so try dropping it if it does. Instead use noatime,nolock,vers=4 as options See here for source
To remount at boot, don't use fstab (it's readonly), but either:
Using systemd
make sure /storage/INVADERvideos exists :)
/storage/.config/system.d/storage-INVADERvideos.mount
[Unit] Description=mount INVADER Videos Requires=network-online.service After=network-online.service Before=xbmc.service [Mount] What=192.168.0.101:/volume1/video Where=/storage/INVADERvideos Options=udp,noatime,rsize=32768,wsize=32768,nolock,nfsvers=3 Type=nfs [Install] WantedBy=multi-user.target
After running this you need to enable the mount
systemctl enable storage-INVADERvideos.mount
NB in the example it says servicectl this is wrong it needs to be systemctl!
Using autostart.sh
This method is depreciated! vi /storage/.config/autostart.sh
#!/bin/sh (sleep 30; \ mount -t nfs 192.168.0.100:/c/media/Videos /storage/NAS -o nolock; \ )&
chmod +x /storage/.config/autostart.sh
Autostart scripts
vi /storage/.config/autostart.sh
#!/bin/sh (sleep 30; \ stuff you want run; \ )&
chmod +x /storage/.config/autostart.sh
Add ons
Turkish
XBMCTR Dream-Clup addon
XBMCTR forum
XBMCTR scraper
Codec keys:
Thank you for purchasing codec license keys from the Raspberry Pi Store.To enable codecs on your device(s), add the following lines to the config.txt file in the FAT partition of your SD card:
decode_MPG2=0x5c6af7b5
decode_WVC1=0xad51e9bb
If you want to verify that the codecs are now enabled, the following commands will report their status:
vcgencmd codec_enabled MPG2
vcgencmd codec_enabled WVC1
Regards
The Raspberry Pi Foundation
Bluetooth
lsusb - shows you if the device is there
Bus 001 Device 007: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
bluetoothctl - opens a control panel to help play with your bluetooth device. Use help for commands.
list - lists the controller show - shows the statusses scan on - scans for devices devices - shows you the devices it has found
you can also use hcitool - it has a few more options
hcitool scan
rebooting a LOT helps a lot on the pi!
LiveTV
The system needs to be running Tvheadend which takes the input from a DVB card and moves it to XBMC Live TV. It's configured through a web interface. In the Howto's there's a section on Ziggo that may apply to UPC as well.
DVB
DVB-C = cable DVB-S or S2 = satellite DVB-T or T2 = terrestrial
A list of linux (and therefore XBMC compatible) hardware is to be found on the LinuxTV wiki
Standard you need a DVB-C card with a CI interface. Some DVB-T boxen also have DVB-C compatibility and a CI card.
The HDHomeRun with TVHeadEnd is your best bet, but unfortunately this is not CI+ certified. So far, nothing is, as CI+ was developed to stop people from watching TV on their PCs.
You can find a list of raspberry pi verified peripherals at here