<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Alex's Adventures on the Infobahn - drm</title><link href="https://www.bennee.com/~alex/" rel="alternate"></link><link href="https://www.bennee.com/~alex/blog/tag/drm/feed" rel="self"></link><id>https://www.bennee.com/~alex/</id><updated>2011-04-18T13:43:00+01:00</updated><subtitle>the wanderings of a supposed digital native</subtitle><entry><title>Playing Blu-Ray under Linux</title><link href="https://www.bennee.com/~alex/blog/2011/04/18/playing-blu-ray-under-linux/" rel="alternate"></link><published>2011-04-18T13:43:00+01:00</published><updated>2011-04-18T13:43:00+01:00</updated><author><name>alex</name></author><id>tag:www.bennee.com,2011-04-18:/~alex/blog/2011/04/18/playing-blu-ray-under-linux/</id><summary type="html">&lt;p&gt;One of the many deficiencies of &lt;a class="reference external" href="http://en.wikipedia.org/wiki/Digital_rights_management"&gt;Digital Restrictions Management&lt;/a&gt; is the fact it makes doing legal authorised things hard for paying customers. For example my brother still can't play Blu-Ray disks on his laptop despite it having the requisite a) drive, b) power and c) display resolution. Because the OS …&lt;/p&gt;</summary><content type="html">&lt;p&gt;One of the many deficiencies of &lt;a class="reference external" href="http://en.wikipedia.org/wiki/Digital_rights_management"&gt;Digital Restrictions Management&lt;/a&gt; is the fact it makes doing legal authorised things hard for paying customers. For example my brother still can't play Blu-Ray disks on his laptop despite it having the requisite a) drive, b) power and c) display resolution. Because the OS on his machine (Vista?) can't see a verifiable encrypted path to his big screen display it refuses to play his legally purchased disks.&lt;/p&gt;
&lt;p&gt;This is one reason why I haven't brought any Blu-Ray disks since the couple I got with my PS3 (to test the Hi-Def goodness). I refuse to buy them while I have no devices under my control* that can play them. Still the conversation with my brother and the fact I had a Blu-Ray drive in my desktop prompted me to see if it was indeed now possible.&lt;/p&gt;
&lt;p&gt;My desktop system runs &lt;a class="reference external" href="http://en.wikipedia.org/wiki/Gentoo_Linux"&gt;Gentoo&lt;/a&gt; which makes running bleeding edge code very easy. I duly enabled the &amp;quot;bluray&amp;quot; and &amp;quot;aacs&amp;quot; &lt;a class="reference external" href="http://www.gentoo.org/dyn/use-index.xml"&gt;use flags&lt;/a&gt; and recompiled mplayer. This brought in libbluray and the command line utility aacskeys. Unfortunately mplayer was still unable to play the disk, complaining the disk was still encrypted.&lt;/p&gt;
&lt;p&gt;After a bunch of searching the interwebs and drawing blanks on finding any explicit &amp;quot;HOWTO&amp;quot; instructions I resorted to running mplayer through a debugger (one advantage of an Open Source system is there are no &amp;quot;black boxes&amp;quot; to reverse engineer) to see how libbluray was being invoked. It turned out it attempts to &lt;a class="reference external" href="http://en.wikipedia.org/wiki/Dynamic_loading"&gt;dlopen&lt;/a&gt; another library &lt;a class="reference external" href="http://www.videolan.org/developers/libaacs.html"&gt;libaacs&lt;/a&gt; which wasn't on my system. Once I added its &lt;a class="reference external" href="http://bugs.gentoo.org/show_bug.cgi?id=352031"&gt;ebuild&lt;/a&gt; to my overlay I was one step closer.&lt;/p&gt;
&lt;p&gt;Unlike the libdecss (which works around the rather anaemic crypto on plain old DVDs) the libaacs library doesn't crack the considerably stronger keys used on BluRay. It relies on a database of Volume keys which can be placed in &lt;em&gt;~/.config/aacs/KEYDB.CFG&lt;/em&gt; which are used to calculate the final decryption keys for the content. Confusingly the format is different from the key databases &lt;a class="reference external" href="http://www.google.co.uk/search?q=KEYDB.CFG"&gt;you may find searching&lt;/a&gt; the internet. However the &lt;a class="reference external" href="https://code.videolan.org/videolan/libaacs/-/blob/master/KEYDB.cfg?ref_type=heads"&gt;libaacs file format documentation&lt;/a&gt; provides instruction on convert the old format into a new format file.&lt;/p&gt;
&lt;p&gt;With all of this in-place I was finally able to play my legally owned copy of Black Hawk Down. Yay!&lt;/p&gt;
&lt;p&gt;Of course this does require having the appropriate keys for the disc you want to play in your key database. This is where aacskeys comes in. This program allows you to extract the appropriate volume ID key from the disc you want to play. However there are some potential caveats. For starters the program is a little unfriendly to use as it requires certain files to be in the directory your running from. Also some BluRay drive firmwares will refuse to supply the needed keys if the disks are a newer generation than the drive (due to the AACS key revocation model). I'm not sure if a drive will self revoke under Linux if presented with a newer disk but this is the reason there are patched drive firmwares out there.&lt;/p&gt;
&lt;p&gt;In the event I was able to verify that aacskeys generates the same volume ID for my copy of Blackhawk Down as was in the KEYDB.CFG database so I know it works for now.&lt;/p&gt;
&lt;p&gt;In summary this does show it is possible to play a Blu-Ray disk on a Linux system however there was a fair bit of hoop jumping involved. If I can find a source repository for aacskeys I might start by cleaning it up and making the process of updating the key database a little less painful. I doubt I'll be buying any more Blu-Ray disks until the process of playback is a lot simpler.&lt;/p&gt;
&lt;p&gt;* My PS3 is very much Sony's device, a Faustian bargain I accept because I like playing games every now and again. Witness the removal of &lt;a class="reference external" href="http://en.wikipedia.org/wiki/OtherOS"&gt;OtherOS&lt;/a&gt; from working systems in the wild by a mandatory firmware update.&lt;/p&gt;
</content><category term="geek"></category><category term="blu-ray"></category><category term="defective-by-design"></category><category term="drm"></category><category term="gentoo"></category><category term="linux"></category></entry><entry><title>Rag tag bag</title><link href="https://www.bennee.com/~alex/blog/2008/09/11/rag-tag-bag/" rel="alternate"></link><published>2008-09-11T11:46:00+01:00</published><updated>2008-09-11T11:46:00+01:00</updated><author><name>alex</name></author><id>tag:www.bennee.com,2008-09-11:/~alex/blog/2008/09/11/rag-tag-bag/</id><summary type="html">&lt;p&gt;I went clay pigeon shooting last night with work. I'm not sure if the guns just had better recoil protection or if my technique is getting better but I have no bruised shoulder this morning. Anyway aside from that I have a few links to share today.&lt;/p&gt;
&lt;p&gt;Firstly the story …&lt;/p&gt;</summary><content type="html">&lt;p&gt;I went clay pigeon shooting last night with work. I'm not sure if the guns just had better recoil protection or if my technique is getting better but I have no bruised shoulder this morning. Anyway aside from that I have a few links to share today.&lt;/p&gt;
&lt;p&gt;Firstly the story about &lt;a class="reference external" href="http://tech.slashdot.org/article.pl?sid=08/09/10/203233&amp;amp;from=rss"&gt;the United Airlines having it's share price decimated&lt;/a&gt; when an old story from 2002 appeared on Google's news aggregator. I'm sure the lawyers are currently winding up to see if they can blame anyone but really the story should be a warning about trusting fully automated news sources. Although this case looks fairly innocent I'm sure cyber-criminals are now devising attacks against &lt;a class="reference external" href="http://en.wikipedia.org/wiki/Internet_bot"&gt;news bots&lt;/a&gt; for more elaborate &lt;a class="reference external" href="http://en.wikipedia.org/wiki/Pump_and_dump"&gt;pump and dump&lt;/a&gt; scams.&lt;/p&gt;
&lt;p&gt;The second is the launch of a UK &lt;a class="reference external" href="http://news.bbc.co.uk/1/hi/technology/7608442.stm"&gt;classical music download store&lt;/a&gt;. As seems to be a growing trend they have launched &lt;a class="reference external" href="http://en.wikipedia.org/wiki/Digital_rights_management"&gt;DRM&lt;/a&gt; free and refreshingly also offer music in the &lt;a class="reference external" href="http://en.wikipedia.org/wiki/Flac"&gt;FLAC&lt;/a&gt; format for high fidelity.&lt;/p&gt;
&lt;p&gt;In contrast I offer the furore over &lt;a class="reference external" href="http://www.theregister.co.uk/2008/09/10/spore_drm_amazon_effect/"&gt;Spore's draconian DRM&lt;/a&gt; and the resultant flash mob reviews on &lt;a class="reference external" href="http://www.amazon.co.uk/review/product/B000FN7K2S/ref=cm_cr_dp_all_summary/202-4313796-3939025?_encoding=UTF8&amp;amp;showViewpoints=1&amp;amp;sortBy=bySubmissionDateDescending"&gt;Amazon&lt;/a&gt;. This sort of DRM will eventually kill the PC games industry when people realise how it's turned into a rental market. Admittedly my PS3 is DRMed to the hilt as far as games are concerned. However two key differences that I can live with are that the DRM scheme doesn't get in the way of me using the PS3 as a general purpose computer and secondly when I'm bored of the game I can sell it to someone else.&lt;/p&gt;
</content><category term="general"></category><category term="drm"></category></entry></feed>