(requires MPEG2 key installed on SD card - buy one here:
http://www.raspberrypi.com/mpeg-2-license-key/)
i.e. Playback commercial DVDs direct from attached USB DVD drive
While it works, it only plays the film, no dvd menus.
SSH into the running RaspBMC
Download and compile libdvdcss:
- Code: Select all
wget http://www.videolan.org/pub/libdvdcss/1.2.12/libdvdcss-1.2.12.tar.bz2
sudo apt-get update
sudo apt-get install -y bzip2 gcc make
tar -xvjpf libdvdcss-1.2.12.tar.bz2
cd libdvdcss-1.2.12
./configure
make
sudo make install
sudo cp /usr/local/lib/libdvdcss* /lib
Install mplayer
- Code: Select all
sudo apt-get install -y mplayer
Make a directory to store the virtual file (named pipe)
- Code: Select all
sudo mkdir /dvd
Make the background script:
- Code: Select all
sudo nano /sbin/playdvd.sh
- Code: Select all
mkfifo /dvd/dvd.mpg
while :
do
mplayer dvd://1 -dumpstream -dumpfile /dvd/dvd.mpg 1>null 2>null
sleep 5
done
ctrl+X to save the file
Make it executable
- Code: Select all
sudo chmod a+x /sbin/playdvd.sh
Add it to startup:
- Code: Select all
sudo nano /etc/rc.local
add the line
- Code: Select all
playdvd.sh
before exit 0.
(ctrl+x to save and close)
In the XBMC GUI:
Add /dvd as a video folder in XBMC
When you want to play a dvd, play the dvd.mpg file (which is really a named pipe)
The script running in the background will take care of dvd changes.