<?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>about:benjie &#187; Aspect ratio</title>
	<atom:link href="http://www.benjiegillam.com/tag/aspect-ratio/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benjiegillam.com</link>
	<description>Benjie Gillam&#039;s blog, and home of MythPyWii - probably the best Wii remote (Wiimote) interface to MythTV - see sidebar.</description>
	<lastBuildDate>Tue, 06 Apr 2010 14:14:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>MythWeb Aspect Ratio</title>
		<link>http://www.benjiegillam.com/2008/04/mythweb-aspect-ratio/</link>
		<comments>http://www.benjiegillam.com/2008/04/mythweb-aspect-ratio/#comments</comments>
		<pubDate>Sun, 13 Apr 2008 14:18:45 +0000</pubDate>
		<dc:creator>Benjie</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MythTV]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Aspect ratio]]></category>
		<category><![CDATA[DVB]]></category>
		<category><![CDATA[Freeview]]></category>
		<category><![CDATA[Nokia 6120 Classic]]></category>
		<category><![CDATA[UK]]></category>
		<category><![CDATA[United Kingdom]]></category>

		<guid isPermaLink="false">http://www.benjiegillam.com/?p=111</guid>
		<description><![CDATA[Image via Wikipedia It has bothered me a little for a while that the MythWeb (part of the fantastic MythTV package for Linux) aspect ratio is hard-coded to 4:3. Most of the TV that I watch (received over Freeview (DVB-T) in the UK) is in 16:9, so watching it back on 4:3 is a bit [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; float: right;"><a href="http://commons.wikipedia.org/wiki/Image:MythTV-blue_menu.png" target="_blank"><img style="border: medium none; display: block;" src="http://upload.wikimedia.org/wikipedia/commons/thumb/1/1a/MythTV-blue_menu.png/202px-MythTV-blue_menu.png" alt="The MythTV menu (default blue theme)" /></a>Image via <a href="http://commons.wikipedia.org/wiki/Image:MythTV-blue_menu.png" target="_blank">Wikipedia</a></div>
<p>It has bothered me a little for a while that the MythWeb (part of the fantastic <a class="zem_slink" title="MythTV" rel="homepage" href="http://www.mythtv.org/" target="_blank">MythTV</a> package for Linux) aspect ratio is <a class="zem_slink" title="Hard coding" rel="wikipedia" href="http://en.wikipedia.org/wiki/Hard_coding" target="_blank">hard-coded</a> to 4:3. Most of the TV that I watch (received over Freeview (<a class="zem_slink" title="DVB" rel="wikipedia" href="http://en.wikipedia.org/wiki/DVB" target="_blank">DVB-T</a>) in the UK) is in <a class="zem_slink" title="Aspect ratio (image)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Aspect_ratio_%28image%29" target="_blank">16:9</a>, so watching it back on 4:3 is a bit of a pain. Thus I was motivated to change the hard coding to 16:9. The process is quite simple:</p>
<ol>
<li>Modify line 102 of <tt>mythweb/modules/stream/handler.pl</tt> &#8211; change &#8220;<tt>3/4</tt>&#8221; to &#8220;<tt>9/16</tt>&#8220;.</li>
<li>Modify lines 35 and 37 of <tt>mythweb/modules/mythweb/tmpl/default/set_flvplayer.php</tt> &#8211; change &#8220;<tt>3/4</tt>&#8221; to &#8220;<tt>9/16</tt>&#8221; and &#8220;<tt>4:3</tt>&#8221; to &#8220;<tt>16:9</tt>&#8221; respectively.</li>
<li>Modify line 505 of <tt>mythweb/modules/tv/tmpl/default/detail.php</tt> &#8211; change &#8220;<tt>3/4</tt>&#8221; to &#8220;<tt>9/16</tt>&#8220;.</li>
<li>Optional: I also added to the end of line 165 of <tt>mythweb/modules/stream/handler.pl</tt> (which detailed the <tt>${width}x$height</tt>) &#8211; adding <tt><br />
.' -aspect '.shell_escape("16:9")</tt><br />
(make sure you get the fullstop at the beginning!), though I am not sure if this modification is necessary or even beneficial!</li>
</ol>
<p>There is a minor bug now where the player does not show the control bar at the bottom properly initially, but a click on the preview picture solves this.</p>
<p>I&#8217;m currently working on modifications to stream the video in 3gp format to my mobile (a <a class="zem_slink" title="Nokia 6120 classic" rel="wikipedia" href="http://en.wikipedia.org/wiki/Nokia_6120_classic" target="_blank">Nokia 6120 Classic</a>), however this seems a lot harder as I have to implement a RTSP server, and have to re-encode all jobs in advance (by using a MythTV User Job) which is not quite what I am after. There is a <a title="Stream mythtv recordings to a mobile device" href="http://www.mythtv.org/wiki/index.php/Stream_mythtv_recordings_to_mobile_devices" target="_blank">page about it</a> in the MythTV wiki. I wonder if I can find a cunning way around it&#8230;</p>
<p>If this helps you, please let me know in the comments!</p>
<fieldset class="zemanta-related" style="margin: 0.5em 0pt 1em; padding: 0pt;">
<legend class="zemanta-title">Vaguely related article</legend>
<ul class="zemanta-article-ul" style="margin: 1em 0pt 1.5em; padding: 0pt;">
<li class="zemanta-article" style="margin: 0.5em 2em;"><a title="Open in new window" href="http://www.allaboutsymbian.com/news/item/6863_6120_Classic_gets_an_update.php" target="_blank">6120 Classic gets an update</a> [via Zemanta]</li>
</ul>
</fieldset>
<div id="zemanta-pixie" style="margin: 5px 0pt; width: 100%;"><a id="zemanta-pixie-a" title="Zemified by Zemanta" href="http://www.zemanta.com/"><img id="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixie.png?x-id=dda56988-5802-496e-9a8d-d5e1734b3a22" alt="" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.benjiegillam.com/2008/04/mythweb-aspect-ratio/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
