<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>KrisWillis.com &#187; media server</title>
	<atom:link href="http://www.kriswillis.com/index.php/tag/media-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kriswillis.com</link>
	<description></description>
	<lastBuildDate>Tue, 06 Sep 2011 14:21:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Serving DivX to the Xbox 360 from Ubuntu</title>
		<link>http://www.kriswillis.com/index.php/2007/12/06/serving-divx-to-the-xbox-360-from-ubuntu/</link>
		<comments>http://www.kriswillis.com/index.php/2007/12/06/serving-divx-to-the-xbox-360-from-ubuntu/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 21:48:24 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[GNU Linux]]></category>
		<category><![CDATA[Xbox 360]]></category>
		<category><![CDATA[DivX]]></category>
		<category><![CDATA[media server]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[uPnP]]></category>
		<category><![CDATA[XviD]]></category>

		<guid isPermaLink="false">http://kriswillis.com/index.php/2007/12/06/serving-divx-to-the-xbox-360-from-ubuntu/</guid>
		<description><![CDATA[Microsoft released the fall update for the Xbox 360 on the 4th of December which included support for DivX/Xvid playback. A popular choice for encoding video due to its compression to quality ratio. Could this mean I am now able to free up some space on my A/V rack? Currently I&#8217;m using a hardware-modified Xbox [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://kriswillis.com/wp-content/uploads/2007/12/img_3867_xbox360logo.jpg" title="Xbox 360 Logo"><img src="http://kriswillis.com/wp-content/uploads/2007/12/img_3867_xbox360logo.thumbnail.jpg" alt="Xbox 360 Logo" border="0" hspace="10" vspace="10" class="alignright" /></a>Microsoft released the fall update for the Xbox 360 on the 4th of December which included support for DivX/Xvid playback. A popular choice for encoding video due to its compression to quality ratio. Could this mean I am now able to free up some space on my A/V rack? Currently I&#8217;m using a hardware-modified Xbox (original) with the open source Xbox Media Center (XBMC) installed on it, decoding my Divx/Xvid content from a Samba share on my media server.</p>
<p>After a quick poke around I found a package called uShare that serves media over the uPnP protocol that the Xbox 360 utilises.<span id="more-18"></span> Before we go installing uShare, it has a few dependencies: libupnp and libdlna. First up, libupnp&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>dfn.dl.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>sourceforge<span style="color: #000000; font-weight: bold;">/</span>pupnp<span style="color: #000000; font-weight: bold;">/</span>libupnp-1.6.1.tar.bz2
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xf</span> libupnp-1.6.1.tar.bz2
<span style="color: #7a0874; font-weight: bold;">cd</span> libupnp-1.6.1
.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>&#8230;and then libdlna&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>libdlna.geexbox.org<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>libdlna-0.2.3.tar.bz2
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xf</span> libdlna-0.2.3.tar.bz2
<span style="color: #7a0874; font-weight: bold;">cd</span> libdlna-0.2.3
.<span style="color: #000000; font-weight: bold;">/</span>configure</pre></div></div>

<p>This is where I hit my first problem:</p>
<pre>Error, can't find libavformat</pre>
<p>After consulting the almighty Google, it would appear libavformat is a part of ffmpeg, so I then installed ffmpeg, still no luck compiling. I also tried installing libdlna via apt-get, which looked to have worked but I later discovered it didn&#8217;t when configuring uShare.</p>
<p>We can serve content to the Xbox 360 with DLNA disabled so I took that route for now. Lets install uShare&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>ushare.geexbox.org<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>ushare-<span style="color: #000000;">1.1</span>.tar.bz2
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xf</span> ushare-<span style="color: #000000;">1.1</span>.tar.bz2
<span style="color: #7a0874; font-weight: bold;">cd</span> ushare-<span style="color: #000000;">1.1</span>
<span style="color: #c20cb9; font-weight: bold;">nano</span> src<span style="color: #000000; font-weight: bold;">/</span>mime.c</pre></div></div>

<p>You&#8217;ll notice we just opened mime.c for editing, this is because we need to change the following line:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #ff0000;">&quot;avi&quot;</span>,   UPNP_VIDEO, <span style="color: #ff0000;">&quot;http-get:*:video/x-msvideo:&quot;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,</pre></div></div>

<p>To this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #ff0000;">&quot;avi&quot;</span>,   UPNP_VIDEO, <span style="color: #ff0000;">&quot;http-get:*:video/x-ms-wmv:&quot;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,</pre></div></div>

<p>We have to change this line so that uShare thinks that avi containers are actually wmv as it currently assumes that the Xbox 360 only supports wmv. On with the uShare install, as you can see below we&#8217;re disabling DLNA as I couldn&#8217;t get it to install &#8211; Feel free to try it without that option, you might have managed a successful libdlna install.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--disable-dlna</span>
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Now that we have uShare installed, we can launch it with the following command. I have used two options, -x enables Xbox mode, and the -c is for marking the directory we want to serve to the Xbox 360.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ushare <span style="color: #660033;">-xc</span> <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>tv</pre></div></div>

<p>We can now fire up the Xbox 360, browse to the media blade, select videos, hit the X button to change the source and select uShare to start browsing your shared content.</p>
<p>So, can I demote my original Xbox? No, and here&#8217;s why:</p>
<ul>
<li>The Xbox 360 only decodes DivX that was encoded with version 5.0 or higher. I have a fair number of pre 5.0 files that I don&#8217;t fancy re-encoding.</li>
<li>There is no support for subtitles (.srt) &#8211; I sometimes find myself watching films that have some foreign dialog.</li>
<li>A large number of my encoded films are playing back in a small box using only a quarter of my screen &#8211; I&#8217;m not sure if it was the way I ripped and encoded the files, but I can&#8217;t pinpoint a consistent attribute in those rips that could be causing this. It doesn&#8217;t happen on the Xbox.</li>
<li>There is no support for playing media compressed in archives, which I find myself doing on a regular basis. But to be fair, I wasn&#8217;t expecting to be able to do this anyway!</li>
</ul>
<p>It&#8217;s definitely a start, but also something I can&#8217;t see Microsoft improving on any time soon. It may also be perfect for a lot of people, but just not me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kriswillis.com/index.php/2007/12/06/serving-divx-to-the-xbox-360-from-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

