{"id":469,"date":"2012-09-20T14:30:54","date_gmt":"2012-09-20T14:30:54","guid":{"rendered":"http:\/\/www.redrobe.com\/mike\/?p=469"},"modified":"2012-09-20T14:30:54","modified_gmt":"2012-09-20T14:30:54","slug":"play-dvd-disks-in-xbmc-on-raspberry-pi","status":"publish","type":"post","link":"https:\/\/redrobe.com\/mike\/play-dvd-disks-in-xbmc-on-raspberry-pi\/","title":{"rendered":"Play DVD disks in XBMC on Raspberry Pi"},"content":{"rendered":"<p>Here&#8217;s how to add DVD playback support into RaspBMC n your Raspberry Pi<br \/>\n(requires MPEG2 key installed on SD card &#8211; buy one here:<br \/>\n<a href=http:\/\/www.raspberrypi.com\/mpeg-2-license-key\/>www.raspberrypi.com\/mpeg-2-license-key\/<\/a>)<\/p>\n<p>i.e. Playback commercial DVDs direct from attached USB DVD drive<\/p>\n<p>While it works well, it only plays the film, no dvd menus.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-463\" title=\"DVD with Pi\" src=\"http:\/\/www.redrobe.com\/mike\/wp-content\/uploads\/2012\/09\/photo-1-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" \/><\/p>\n<p>SSH into the running RaspBMC<\/p>\n<h3>Download and compile libdvdcss<\/h3>\n<pre>\n\nwget http:\/\/www.videolan.org\/pub\/libdvdcss\/1.2.12\/libdvdcss-1.2.12.tar.bz2\nsudo apt-get update\nsudo apt-get install -y bzip2 gcc make\ntar -xvjpf libdvdcss-1.2.12.tar.bz2\n\ncd libdvdcss-1.2.12\n.\/configure\nmake\nsudo make install\nsudo cp \/usr\/local\/lib\/libdvdcss* \/lib\n<\/pre>\n<h3>Install mplayer<\/h3>\n<pre>\n\nsudo apt-get install -y mplayer\n\n<\/pre>\n<h3>Make a directory to store the virtual file <\/h3>\n<pre>\n\nsudo mkdir \/dvd\n\n<\/pre>\n<h3>Make the background script:<\/h3>\n<pre>\nsudo nano \/sbin\/playdvd.sh<\/pre>\n<pre>\n\nmkfifo \/dvd\/dvd.mpg\nwhile :\ndo\n        mplayer dvd:\/\/1 -dumpstream -dumpfile \/dvd\/dvd.mpg 1>null 2>null\n        sleep 5\ndone\n<\/pre>\n<p>ctrl+X to save the file<\/p>\n<p>Make it executable<\/p>\n<pre>sudo chmod a+x \/sbin\/playdvd.sh<\/pre>\n<p>Add it to startup:<\/p>\n<pre>sudo nano \/etc\/rc.local<\/pre>\n<p>add the line <\/p>\n<pre>playdvd.sh<\/pre>\n<p>before exit 0.<\/p>\n<p>(ctrl+x to save and close)<\/p>\n<h3>In the XBMC GUI:<\/h3>\n<p>Add \/dvd as a video folder in XBMC<\/p>\n<p>When you want to play a dvd, play the dvd.mpg file <\/p>\n<p>The script running in the background will take care of dvd changes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s how to add DVD playback support into RaspBMC n your Raspberry Pi (requires MPEG2 key installed on SD card [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[32,50,55],"class_list":["post-469","post","type-post","status-publish","format-standard","hentry","category-software","tag-dvd","tag-raspberry-pi","tag-xbmc"],"_links":{"self":[{"href":"https:\/\/redrobe.com\/mike\/wp-json\/wp\/v2\/posts\/469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redrobe.com\/mike\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redrobe.com\/mike\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redrobe.com\/mike\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/redrobe.com\/mike\/wp-json\/wp\/v2\/comments?post=469"}],"version-history":[{"count":0,"href":"https:\/\/redrobe.com\/mike\/wp-json\/wp\/v2\/posts\/469\/revisions"}],"wp:attachment":[{"href":"https:\/\/redrobe.com\/mike\/wp-json\/wp\/v2\/media?parent=469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redrobe.com\/mike\/wp-json\/wp\/v2\/categories?post=469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redrobe.com\/mike\/wp-json\/wp\/v2\/tags?post=469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}