<?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>the blog of Chris &#187; tv</title>
	<atom:link href="http://blog.christophersmart.com/tag/tv/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.christophersmart.com</link>
	<description>Fortiter Et Recte</description>
	<lastBuildDate>Wed, 28 Dec 2011 23:39:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MythTV Down Under (finally, it&#8217;s not all upside down)</title>
		<link>http://blog.christophersmart.com/2008/08/13/mythtv-down-under-finally-its-not-all-upside-down/</link>
		<comments>http://blog.christophersmart.com/2008/08/13/mythtv-down-under-finally-its-not-all-upside-down/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 10:33:04 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[FOSS]]></category>
		<category><![CDATA[entertainment]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[myth]]></category>
		<category><![CDATA[pvr]]></category>
		<category><![CDATA[tv]]></category>

		<guid isPermaLink="false">http://blog.christophersmart.com/?p=32</guid>
		<description><![CDATA[Every 6 months or so for the past number of years I have tried to install a dedicated PVR, and fail. I give up because I just can&#8217;t get all the Australian stuff working nicely, but finally I have succeeded! The main problem is that the tv guide grabbers just don&#8217;t work nicely in Australia. [...]]]></description>
			<content:encoded><![CDATA[<p>Every 6 months or so for the past number of years I have tried to install a dedicated PVR, and fail. I give up because I just can&#8217;t get all the Australian stuff working nicely, but finally I have succeeded!</p>
<p>The main problem is that the tv guide grabbers just don&#8217;t work nicely in Australia. Install mythtv in the States and you&#8217;ll be working in 5 minutes, but here it&#8217;s a whole lot of heartache and pain.</p>
<p>Sure, I can easily watch TV, but I can do that in 30 seconds under Linux with Me-TV or Kaffeine. I want to be able to see what&#8217;s coming up, schedule recordings and all that sweet stuff (OK, Me-TV can do that too, but it&#8217;s new, and I also like the idea of mythtv <img src='http://blog.christophersmart.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p>For anyone else out there like me, <strong>here&#8217;s what I did!</strong><br />
<span id="more-32"></span><br />
<strong>MythTV</strong></p>
<p><strong>Install mythbuntu</strong>, or get your mythtv software installed. This should work with any distro with mythtv, but I installed Mythbuntu (the Ubuntu based MythTV distribution).</p>
<p>I had to add my default user to mythtv group and then re-login<br />
<code>sudo gpasswd -a [user] mythtv</code></p>
<p><strong>Create a place for recordings</strong><br />
<code>sudo mkdir /home/store<br />
sudo chown mythtv:mythtv /home/store<br />
sudo chmod 775 /home/store</code></p>
<p><strong>Create the database</strong> (use root password and the mythtv database password from the install process)<br />
<code>mysql -u root -p<br />
create database mythconverg;<br />
grant all on mythconverg.* to 'mythtv'@'localhost' identified by 'password';<br />
quit</code></p>
<p>Now, <strong>setup mythtv</strong>. In Mythbuntu, open the &#8220;Control Center&#8221; from Applications -&gt; System.<br />
Click the &#8220;MythTV Configuration&#8221; button on the left hand side, and on the right pane click &#8220;Launch MythTV Setup&#8221;.</p>
<p>Others can run the command <em>mythsetup</em> which should do the same thing (make sure you&#8217;re in the mythtv group!).</p>
<p>Now, inside the mythsetup program, answer any initial prompts like setting the language and database updates.</p>
<p>Now, <strong>configure MythTV</strong> as folllows! (Note, I am assuming you are using a DVB card that Linux has detected and which works.)<br />
<strong>1. General</strong>, set TV format to <em>PAL</em>, &#8220;Channel freq table&#8221; to <em>australia</em>, and &#8220;timezone&#8221; to <em>Auto</em>, finish.<br />
<strong>2. Capture cards</strong>, add a new capture card, set &#8220;Card type&#8221; to be <em>DVB DTV capture card</em>, finish.<br />
<strong>3. Video source</strong>, add a new video source, set &#8220;Video source name&#8221; to anything (i.e. <em>Channels</em>), set &#8220;Listings grabber&#8221; to <em>No grabber</em>, leave &#8220;Channel frequency&#8221; to <em>default</em>, then finish.<br />
<strong>4. Input connections</strong>, select your capture card, set a name if you want, and set &#8220;Video source&#8221; to the name you set in step 3 (i.e. <em>Channels</em>), hit next, finish.<br />
<strong>5. Channel editor</strong>, hit &#8220;channel scanner&#8221; in the bottom left, all settings should be auto filled as above, hit next to start scan, finish.<br />
<strong>6. Storage</strong>, open &#8220;Default&#8221; and add a new directory, type the path you created above, i.e. <em>/home/store</em>.<br />
<strong>4. Input connections</strong>, load your card, set &#8220;Starting channel&#8221; to a channel you want, next, finish.</p>
<p>Exit mythtvsetup and make sure you run mythfilldatabase when prompted.</p>
<p><em>I repeat. <strong>Run mythfilldatabase!</strong></em></p>
<p><strong>TV GUIDE</strong><br />
TV should now be working, but to get guide information we turn to a script called <em>shepherd</em>.</p>
<p><strong>Shepherd is a perl script</strong>, see the <a href="http://svn.whuffy.com/index.cgi/wiki/Installation">website</a> for a full set of instructions.</p>
<p>Download it <img src='http://blog.christophersmart.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<code>wget http://www.whuffy.com/shepherd/shepherd</code></p>
<p>Shepherd requires a whole heap of perl modules, so if you are using a Debian based system then you can easily install them with the following command:<br />
<code>sudo apt-get install xmltv libxml-simple-perl libjavascript-perl libalgorithm-diff-perl libgetopt-mixed-perl libcompress-zlib-perl libdata-dumper-simple-perl libdate-manip-perl liblist-compare-perl libdatetime-format-strptime-perl libhtml-parser-perl libxml-dom-perl libgd-gd2-perl libdigest-sha1-perl libarchive-zip-perl libio-string-perl libdbi-perl</code></p>
<p>Now we need to <strong>configure shepherd</strong>, so run:<br />
<code>perl shepherd --configure</code></p>
<p>It will upgrade any &#8220;grabbers&#8221; then ask you for your <em>region code</em>. So enter your region then press enter (I&#8217;m in Canberra, so I enter <em>126</em>).</p>
<p>Answer the following questions when asked:<br />
<code>"Would you like Guided channel selection?" Type, <em>yes</em>.<br />
"Do you have High-Definition (HDTV)?". Type <em>yes</em> if you do.<br />
"Do you have PayTV?" I said <em>no</em>.</code></p>
<p>You will be then asked to match each of your &#8220;MythTV channel&#8217;s&#8221; to the correct &#8220;Guide data sources&#8221; channel.<br />
You will have to do this for each MythTV channel that you want a guide for (i.e. map &#8220;Channel 10&#8243; with &#8220;Capital&#8221;, Prime with &#8220;Prime&#8221;, ABC1 with &#8220;ABC&#8221;, etc.).</p>
<p>Once finished it will allow you to double check the channel mappings. If correct type <em>yes</em>.</p>
<p>When asked if you want to &#8220;Transition from grabber?&#8221;, enter <em>0</em> (that&#8217;s a ZERO).<br />
When asked whether to &#8220;Create configuration file and update MythTV?&#8221; type <em>yes</em>.</p>
<p>Shepherd can also attempt to download the channel icons. If you want them, then answer yes when it asks &#8220;Shepherd can (optionally) install channel icons.&#8221;.</p>
<p>If you choose to download icons, if found, you will be asked to choose from a number of options. Take a punt <img src='http://blog.christophersmart.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>When asked: &#8220;Grab data now?&#8221; type <em>no</em> (as in NO).</p>
<p>You should now be back at the terminal. We now need to get shepherd to grab the guide information from the Internet.</p>
<p>Run the following<br />
<code>~/.shepherd/shepherd --daily</code><br />
<strong>Note:</strong> As this is the first time this has been run, it will take a while, around 45 mins!</p>
<p>Now we need to load the guide information into the MythTV database:<br />
<code>mythfilldatabase --file 1 ~/.shepherd/output.xmltv</code></p>
<p><strong>Congratulations MythTV should now have full guide information.</strong> The only thing left to do is to cron shepherd so it runs regularly.<br />
Start crontab<br />
<code>crontab -e</code><br />
and enter<br />
<code>44 * * * * ~/.shepherd/shepherd --daily --quiet &amp;&amp; mythfilldatabase --update --file 1 ~/.shepherd/output.xmltv --quiet</code></p>
<p><strong>NOTE:</strong> You are <em>not</em> reading the cron incorrectly, above it is scheduled to run every hour. You can change this if you want (it&#8217;s just the recommended default). The question is whether your MythTV box is going to be on all the time, or only at certain times. If it&#8217;s always on, you could change it to once a day or something, but if not then it&#8217;s best to tell it to check pretty regularly to make sure it&#8217;s updated within an hour of it being on. Of course you can run it manually <img src='http://blog.christophersmart.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>That&#8217;s it!</strong> Now open the MythTV frontend and enjoy your TV &#8211; with guide.</p>
<p>-c</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.christophersmart.com/2008/08/13/mythtv-down-under-finally-its-not-all-upside-down/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

