<?xml version="1.0" encoding="iso-8859-1"?>
        <?xml-stylesheet type="text/css" href="http://www.miek.nl/blog/"?>
<rss version="2.0"
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns:dc="http://purl.org/dc/elements/1.1/"
 xmlns:admin="http://webns.net/mvcb/"
 xmlns:atom="http://www.w3.org/2005/Atom"
>
<channel>
<title>Filed under: dreambox | Miek</title>
<atom:link href="http://www.miek.nl/blog/archives/dreambox/index-rss.xml" rel="self" type="application/rss+xml" />
<link>http://www.miek.nl/blog</link>
<description>Thoughts on (technical) stuff</description>
<dc:language>en-us</dc:language>
<dc:creator>Miek Gieben</dc:creator>
<dc:date>2012-02-04T04:15:11+01:00</dc:date>
<admin:generatorAgent rdf:resource="http://nanoblogger.sourceforge.net" />

<item>
<link>http://www.miek.nl/blog/archives/2009/05/24/av_heaven/index.html</link>
<guid isPermaLink="true">http://www.miek.nl/blog/archives/2009/05/24/av_heaven/index.html</guid>
<title>A/V heaven</title>
<dc:date>2009-05-24T11:47:14+01:00</dc:date>
<dc:creator>Miek Gieben</dc:creator>
<dc:subject> dreambox</dc:subject>
<description><![CDATA[<p>I'm in an A/V heaven, my
<a href="http://www.miek.nl/blog/archives/dreambox/index.html">Dreambox</a> is
working great. My 
<a href="http://www.miek.nl/blog/archives/2009/04/28/resize_raid1_array_without_knowing_which_disk_is_which/index.html">raid setup</a>
is doing <em>very</em> well.</p>

<p>And now I've also bought a Dolby 5.1 digital sound receiver. The sound
<em>is so much</em> better, than the lousy stereo I got from our TV.</p>

<p>Only thing left is 
<a href="http://www.miek.nl/blog/archives/2008/08/27/getting_rid_of_the_cable_mess/index.html">to rework the
cabling</a>
and mounting the speakers to the wall.</p>

<p>Watched "2001: A Space Odyssey" <em>again</em> last night :-).</p>]]></description>

</item>
<item>
<link>http://www.miek.nl/blog/archives/2009/04/25/recursively_build_playlists/index.html</link>
<guid isPermaLink="true">http://www.miek.nl/blog/archives/2009/04/25/recursively_build_playlists/index.html</guid>
<title>Recursively build playlists</title>
<dc:date>2009-04-25T12:00:58+01:00</dc:date>
<dc:creator>Miek Gieben</dc:creator>
<dc:subject> dreambox, linux</dc:subject>
<description><![CDATA[<p>My music is stored and sorted in <code>/shared/music</code>. To make it more
accessible for my Dreambox I want have the following playlists.</p>

<pre><code>/shared/music/
&lt;complete list of everything below&gt;
/shared/music/P
&lt;complete list of everything below P&gt;
/shared/music/P/Prodigy
&lt;complete list of everything below P/Prodigy&gt;
</code></pre>

<p>First I was playing around with some Perl and came up with the following
solution:</p>

<pre><code>% cat m3u
#!/usr/bin/perl
while(&lt;&gt;) {
chomp;
chdir $_;
system("fapg -r . &gt; playlist.m3u");
}
</code></pre>

<p>Which would then become</p>

<pre><code>find /shared/music -type d | m3u
</code></pre>

<p>Only 2 things wrong with this solution</p>

<ol>
<li>Perl isn't needed</li>
<li><code>playlist.m3u</code> is a bad filename sorting wise</li>
</ol>

<p>For some odd reason I could not write it strait away in shell, but after
some coffee it became</p>

<pre><code>find /shared/music -type d | ( while read dir; do
    cd "$dir" &amp;&amp; fapg -r . &gt; 00-PLAYLIST.m3u
    done )
</code></pre>

<p>Note however that the usual find caveats apply: directories with
a trailing space or directories with newlines in the name will not work.</p>]]></description>

</item>
<item>
<link>http://www.miek.nl/blog/archives/2009/04/24/transcoding_video_with_mencoder/index.html</link>
<guid isPermaLink="true">http://www.miek.nl/blog/archives/2009/04/24/transcoding_video_with_mencoder/index.html</guid>
<title>Transcoding video with mencoder</title>
<dc:date>2009-04-24T15:19:17+01:00</dc:date>
<dc:creator>Miek Gieben</dc:creator>
<dc:subject> dreambox</dc:subject>
<description><![CDATA[<p>I've bought a <a href="http://www.dream-multimedia-tv.de/english/products_dm500.php">dreambox 500</a>,
which is one of the smallest model they make, but I only want to
use it to stream content from my pc to the tv.</p>

<p>When you start streaming there is almost always not right with the
video stream... its is not encoded in <code>mpeg2</code> which means the dm500
can't show it, or if it is in the right format there is something
wrong with the aspect ratio.</p>

<p>So enter <a href="http://www.mplayerhq.hu/">mencoder</a>, which can be used for
all kinds of transcoding. I wanted to convert <code>avi</code> files to <code>mpeg2</code> (or
DVD format) for showing on the dm. I'm now using the following shell
script:</p>

<div class="nbcode">
<pre>
<span class="lnr">1 </span><span class="Type">int</span> main(<span class="Type">int</span> c) {
<span class="lnr">2 </span>    printf(<span class="Constant">&quot;This is nice&quot;</span>);
<span class="lnr">3 </span>    exit(<span class="Constant">1</span>);
<span class="lnr">4 </span>}
</pre>
</div>

<p>Where you give it basename of the file you want to convert. </p>

<p>I also needed to a <code>presize</code> filter to make the video appear in the correct size
on the tv screen, so the <code>scale=presize=pal</code> filter is needed in this case.</p>]]></description>

</item>
</channel>
</rss>

