Home > Audio/Video > Configuring external DVD drive on Xbian/Raspberry Pi

Configuring external DVD drive on Xbian/Raspberry Pi


As mentioned in my earlier posts, raspberry Pi when combined with Xbian or Raspbmc forms a great and affordable HTPC. I was in the market to look for a cheap DVD player as my panasonic BD player doesnt support Divx formats. Then this idea came to mind that why not buy a external USB dvd drive and hook it up to raspberry Pi. Did some googling and found that lot of people are using it that way. So finalized on a cheap DVD drive and tried configuring it on Xbian. But as it turned out this was not straight forward so thought of sharing the “How to” which I found after googling a lot. Since this time I had two SD cards lying around I tried both Xbian and Raspbmc and turned out that on Raspbmc it was easier to get it working. So I will share the method on both the OS.

Hardware Info

1. Raspbberry Pi

2. Powered USB Hub (Optional)

3. External USB dvd drive (I used Buffalo MediaStation 8x Portable CD/DVD Writer)

Pros of Buffalo Drive

* LED indication to say if it requires more power

* Comes with a Y USB cable (which seperates Power and Data USB cable)

Note: My USB hub was not able to power up the DVD drive, hence I connected the power USB cable to a Nexus 7 Power adapter.

Most of the info below is taken from http://forum.stmlabs.com/showthread.php?tid=7623

Configuration in Raspbmc.

Configuration in raspbmc was simple. Just download the PlayDVD addon zip file from the below link and install the add on through the XBMC menu (System->Addon->Install from Zip file). Once done go to XBMC->System->Addon->Programs->PlayDVD->select install). This takes some time as it has to download some additional packages from net.

Download link: http://forum.stmlabs.com/attachment.php?aid=527

Once installed automatically the PLay CD button will come when you insert the DVD.

 

Configuration in Xbian

Configuring on Xbian is not straight forward as some how the addon python script was not working on xbian (There are ways to fix it, but I thought the manual process is easier as in Xbian the DVD drive was not getting automounted due to permission issues.
1. Get Required Programs
sudo apt-get update
sudo apt-get install -y bzip2 make mplayer curl lsdvd

2. Compile libdvdcss
wget http://www.videolan.org/pub/libdvdcss/1.2.13/libdvdcss-1.2.13.tar.bz2
tar -xvjf libdvdcss-1.2.13.tar.bz2
cd libdvdcss-1.2.13
./configure
make
sudo make install
cp /usr/local/lib/libdvdcss* /lib
sudo apt-get -y -f install

3. Setup Filesystem
sudo mkdir /media/LARGEFILES
sudo mkfifo /media/LARGEFILES/dvd.mpg
sudo chmod o+w /media/LARGEFILES/dvd.mpg

4. Add xbian user to cdrom group.
sudo usermod -a -G cdrom xbian

5. Add the below entry to the /etc/fstab file (assumption is the dvd drive is detected as /dev/sr0)
/dev/sr0        /media/LARGEFILES               auto                    noauto,ro,user  0 0

6. Once done just reboot or do mount -a. Now the play CD option will be available on XBMC

Advertisements
Categories: Audio/Video
  1. Xbian user
    December 27, 2014 at 3:50 AM

    Thanks for your article.
    Make with libdvdcss fails with these error:

    src/ioctl.c: In function ‘ioctl_ReadCopyright’:
    src/ioctl.c:267:5: error: #error “DVD ioctls are unavailable on this system”
    src/ioctl.c: In function ‘ioctl_ReadDiscKey’:
    src/ioctl.c:434:5: error: #error “DVD ioctls are unavailable on this system”
    src/ioctl.c: In function ‘ioctl_ReadTitleKey’:
    src/ioctl.c:594:5: error: #error “DVD ioctls are unavailable on this system”
    src/ioctl.c: In function ‘ioctl_ReportAgid’:
    src/ioctl.c:716:5: error: #error “DVD ioctls are unavailable on this system”
    src/ioctl.c: In function ‘ioctl_ReportChallenge’:
    src/ioctl.c:846:5: error: #error “DVD ioctls are unavailable on this system”
    src/ioctl.c: In function ‘ioctl_ReportASF’:
    src/ioctl.c:975:5: error: #error “DVD ioctls are unavailable on this system”
    src/ioctl.c: In function ‘ioctl_ReportKey1’:
    src/ioctl.c:1100:5: error: #error “DVD ioctls are unavailable on this system”
    src/ioctl.c: In function ‘ioctl_InvalidateAgid’:
    src/ioctl.c:1209:5: error: #error “DVD ioctls are unavailable on this system”
    src/ioctl.c: In function ‘ioctl_SendChallenge’:
    src/ioctl.c:1342:5: error: #error “DVD ioctls are unavailable on this system”
    src/ioctl.c: In function ‘ioctl_SendKey2’:
    src/ioctl.c:1475:5: error: #error “DVD ioctls are unavailable on this system”
    src/ioctl.c: In function ‘ioctl_ReportRPC’:
    src/ioctl.c:1626:5: error: #error “DVD ioctls are unavailable on this system”
    make[1]: *** [src/ioctl.lo] Error 1
    make[1]: Leaving directory `/home/xbian/libdvdcss-1.2.13′
    make: *** [all] Error 2

  2. August 21, 2015 at 11:54 AM

    We are a bunch of volunteers and opening a new
    scheme in our community. Your web site provided us with helpful info
    to work on. You’ve done a formidable activity and our
    whole neighborhood will probably be grateful to you.

  3. Matte
    November 30, 2016 at 4:31 PM

    Thank you!
    Worked like a charm, although i did two changes (XBian, new installation November 2016):
    – Newer version of the libs:
    >> wget http://download.videolan.org/pub/libdvdcss/1.4.0/libdvdcss-1.4.0.tar.bz2
    – and C-compiler needed:
    >> sudo apt-get install build-essential

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: