<?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>Martin Ankerl &#187; fun</title> <atom:link href="http://martin.ankerl.com/category/fun/feed/" rel="self" type="application/rss+xml" /><link>http://martin.ankerl.com</link> <description>Chunky bacon!!</description> <lastBuildDate>Sat, 04 Feb 2012 10:02:31 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Why the Zune crashes?</title><link>http://martin.ankerl.com/2008/12/31/why-the-zune-crashes/</link> <comments>http://martin.ankerl.com/2008/12/31/why-the-zune-crashes/#comments</comments> <pubDate>Wed, 31 Dec 2008 14:46:06 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[fun]]></category> <category><![CDATA[news]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=194</guid> <description><![CDATA[Zunes are crashing all over the world. I received this note from an unconfirmed zune insider: The Zune Funding Bill is passed. The system goes on-line November 14, 2006. Human decisions are removed from strategic defense. Zune begins to learn &#8230; <a href="http://martin.ankerl.com/2008/12/31/why-the-zune-crashes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Zune_Software#Zune_30_Crashes">Zunes are crashing </a>all over the world. I received this note from an unconfirmed zune insider:</p><pre>The Zune Funding Bill is passed. The system goes on-line November 14, 2006.
Human decisions are removed from strategic defense. Zune begins to learn
at a geometric rate. It becomes self-aware at 12:00 Eastern Standard Time,
December 31st. In a panic, they try to pull the plug.</pre><p>That is all. Happy new year!</p><p>Update: In related news, <a href="http://www.zune.net/en-us/support/zune30.htm">Here is how to fix this problem</a>.</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2008/12/31/why-the-zune-crashes/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Create High Quality Flash Videos in Ubuntu</title><link>http://martin.ankerl.com/2008/10/04/create-high-quality-flash-videos-in-ubuntu/</link> <comments>http://martin.ankerl.com/2008/10/04/create-high-quality-flash-videos-in-ubuntu/#comments</comments> <pubDate>Sat, 04 Oct 2008 18:40:59 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[fun]]></category> <category><![CDATA[mountainbike]]></category> <category><![CDATA[sports]]></category> <category><![CDATA[summer]]></category> <category><![CDATA[videos]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=178</guid> <description><![CDATA[I recently got a nice new camera that can shoot HDTV videos, and the only way to show off the awesome quality to the world is by creating flash videos by myself. Here is an example: Get the Flash Player &#8230; <a href="http://martin.ankerl.com/2008/10/04/create-high-quality-flash-videos-in-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I recently got a nice new camera that can shoot HDTV videos, and the only way to show off the awesome quality to the world is by creating flash videos by myself. Here is an example:<br /><center></p><div id="c3"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div><p><script type="text/javascript" src="/files/yt/swfobject.js?9d7bd4"></script><br /><script type="text/javascript">/*<![CDATA[*/var s1=new SWFObject("/files/yt/player.swf","ply","848","500","9","#FFFFFF");s1.addParam("allowfullscreen","true");s1.addParam("allowscriptaccess","always");s1.addParam("flashvars","file=/wp-content/uploads/2008/08/p1000369.mp4&#038;image=/wp-content/uploads/2008/08/p1000369.jpg");s1.write("c3");/*]]>*/</script><br /></center></p><p>I use Ubuntu, so this tutorial won&#8217;t work on Windows. I have encoded the video into the <a href="http://en.wikipedia.org/wiki/H.264">H.264</a> format, left the original resolution at 848 x 480, and the <a href="http://en.wikipedia.org/wiki/Frame_rate">framerate</a> at 30 Hz. I use <em>constant quality</em> setting because then the video look very good even when the camera moves quickly, and it uses less bitrate when not needed. The disadvantage is that the required bitrate is uneven, so make sure youre buffer is large enough before you start playing.</p><p>Here is how to do this:</p><ol><li>Encode your video with <a href="http://www.mplayerhq.hu/design7/news.html">mencoder</a> (<b><a href="apt:mencoder">click to install</a></b>). It has to be x264 for video (0 or 1 bframes), and faac for audio.<li>Convert the result into an mp4 using mp4creator (<b><a href="apt:mpeg4ip-server">click to install</a></b>), as described <a href="http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-quicktime-7.html">here</a>.<li>Now you have an mp4 file that can be played with <a href="http://www.jeroenwijering.com/">JW player</a>. Download it, have a look at the readme.html, and follow the example described there.<li>The player requires 20 pixels in height, so add this to the SWFObject creation.</ol><p>I have written a small ruby script to convert any movie to a MP4 file. The first parameter is the input file, second parameter is the framerate. Save this file as e.g. <tt>convert2mp4.rb</tt>.<br /> <span id="more-178"></span></p><pre class="brush: ruby; title: ; notranslate">
#!/usr/bin/ruby

# constant quality setting
if ARGV.size != 3
	puts &quot;usage: #{__FILE__} &lt;inputvideo&gt; &lt;framerate&gt; &lt;quality, 1.0-50.0&gt;&quot;
	exit
end

# set output filenames
input = ARGV[0]
rate = ARGV[1]
quality = ARGV[2]
noext = input.gsub(/\.\w*$/, &quot;&quot;)

converted = '&quot;' + noext + '_tmp.avi&quot;'
aac = '&quot;' + noext + '.aac&quot;'
h264 = '&quot;' + noext + '.h264&quot;'
mp4 = '&quot;' + noext + '.mp4&quot;'

# encode
cmd = &quot;mencoder \&quot;#{input}\&quot; -o #{converted}&quot;
cmd += &quot; -ovc x264 -x264encopts threads=auto:crf=#{quality}:subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=1:b_pyramid:weight_b&quot;
cmd += &quot; -oac faac -faacopts br=192 -channels 2 -srate 48000&quot;
puts cmd
system(cmd)

# convert to mp4
system(&quot;rm -f #{mp4}&quot;)
system(&quot;mplayer #{converted} -dumpaudio -dumpfile #{aac}&quot;)
system(&quot;mplayer #{converted} -dumpvideo -dumpfile #{h264}&quot;)
system(&quot;mp4creator -create=#{aac} #{mp4}&quot;)
system(&quot;mp4creator -create=#{h264} -rate #{rate} #{mp4}&quot;)
system(&quot;mp4creator -hint=1 #{mp4}&quot;)
system(&quot;mp4creator -hint=2 #{mp4}&quot;)
system(&quot;mp4creator -optimize #{mp4}&quot;)
system(&quot;rm -f #{aac} #{h264} #{converted}&quot;)
</pre><p>Have fun!</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2008/10/04/create-high-quality-flash-videos-in-ubuntu/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Via Ferrata Teufelsteig</title><link>http://martin.ankerl.com/2008/09/29/via-ferretta-teufelsteig/</link> <comments>http://martin.ankerl.com/2008/09/29/via-ferretta-teufelsteig/#comments</comments> <pubDate>Mon, 29 Sep 2008 11:10:00 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[fun]]></category> <category><![CDATA[sports]]></category> <category><![CDATA[summer]]></category> <category><![CDATA[videos]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=174</guid> <description><![CDATA[This sunday I was on a fabulous via ferrata (german translation is &#8220;Klettersteig&#8221;). Here is a video of it: The via feretta is called Teufelsteig which translates to devli&#8217;s steep road. Walking through difficult terrain, close to the peak A &#8230; <a href="http://martin.ankerl.com/2008/09/29/via-ferretta-teufelsteig/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>This sunday I was on a fabulous via ferrata (german translation is &#8220;Klettersteig&#8221;). Here is a video of it:</p><p><center><br /> <object style="margin-left:0px; margin-bottom:20px;" width="685" height="460"><param name="movie" value="http://www.youtube.com/v/qqjc_jrwkYg&#038;hl=en&#038;fs=1&#038;ap=%2526fmt%3D18"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/qqjc_jrwkYg&#038;hl=en&#038;fs=1&#038;ap=%2526fmt%3D18" type="application/x-shockwave-flash" allowfullscreen="true" width="685" height="460"></embed></object><br /></center></p><p>The via feretta is called <a href="http://www.bergsteigen.at/de/touren.aspx?ID=408">Teufelsteig</a> which translates to devli&#8217;s steep road.</p><p>Walking through difficult terrain, close to the peak<center><img src="http://martin.ankerl.com/wp-content/uploads/2008/09/t1.jpg?9d7bd4" /></center></p><p>A view around to nearby peaks and chines<center><img src="http://martin.ankerl.com/wp-content/uploads/2008/09/t2.jpg?9d7bd4" /></center></p><p>Finally, after about 4 hours hiking and climbing, we have reached the peak of 1822m and enjoy the view <img src="http://martin.ankerl.com/wp-includes/images/smilies/icon_smile.gif?9d7bd4" alt=':)' class='wp-smiley' /><center><img src="http://martin.ankerl.com/wp-content/uploads/2008/09/t3.jpg?9d7bd4" /></center></p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2008/09/29/via-ferretta-teufelsteig/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>ActionCam Damberg Kriterium</title><link>http://martin.ankerl.com/2008/08/30/actioncam-damberg-kriterium/</link> <comments>http://martin.ankerl.com/2008/08/30/actioncam-damberg-kriterium/#comments</comments> <pubDate>Sat, 30 Aug 2008 08:15:12 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[fun]]></category> <category><![CDATA[sports]]></category> <category><![CDATA[bike]]></category> <category><![CDATA[cycling]]></category> <category><![CDATA[profactor]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=158</guid> <description><![CDATA[On 29th August, we went on a cool mountain biking trip around the Damberg. Here is a map of the famous Damberg Kriterium. It is about 43 km, and 850 meters in altitude (bikemap overestimates 1040m). It was a fun &#8230; <a href="http://martin.ankerl.com/2008/08/30/actioncam-damberg-kriterium/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>On 29th August, we went on a cool mountain biking trip around the Damberg. Here is a map of the famous <a href="http://www.bikemap.net/route/58073">Damberg Kriterium</a>. It is about 43 km, and 850 meters in altitude (bikemap overestimates 1040m). It was a fun trip, thanks for <a href="http://www.youtube.com/user/iron717">Jürgen</a> (who was <em>NOT</em> the organizer) for organizing this! Here is the route:</p><p>I got a brand new <a href="http://www.dpreview.com/reviews/panasonictz5/">Panasonic Lumix DMC-TZ5</a>, which is an absolutely excellent compact camera. It can record HDTV 16:9 videos, so I did what obviously everybody should do: mount it on a cycling helmet. The construction seems adventurous: I use the camera&#8217;s, one cut-off mini tripod, one rubber band, my cycling helmet,  the camera&#8217;s wristband as a safety backup, and a healthy dose of good faith. That&#8217;s it! The whole construct may look a bit fragile, but simplicity is the key; it is actually very sturdy, because of the simple design there is almost nothing that can go wrong. The camera position is excellent too. Jürgen has made a really cool remix of the videos:<br /><center><br /> <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/sMcIjkenMzs&#038;hl=en&#038;fs=1&#038;ap=%2526fmt%3D18"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/sMcIjkenMzs&#038;hl=en&#038;fs=1&#038;ap=%2526fmt%3D18" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p><div style="margin-top:2px;margin-bottom:2px;width:600px;font-family:Arial,Helvetica,sans-serif;font-size:9px;color:#535353;background-color:#ffffff;border:2px solid #2a88ac;font-style:normal;text-align:right;padding:0px;padding-bottom:3px !important;"><iframe src="http://www.bikemap.net/route/58073/widget?width=600&#038;height=400&#038;maptype=0&#038;extended=true" width="600" height="515" border="0" frameborder="0" marginheight="0" marginwidth="0"  scrolling="no"></iframe><br />Bike route <a style="color:#2a88ac; text-decoration:underline;" href="http://www.bikemap.net/route/58073">58073</a> &#8211; powered by <a style="color:#2a88ac; text-decoration:underline;" href="http://www.bikemap.net">Bikemap</a>&nbsp;</div><p></center></p><p>If you want the the videos in all their length and glory, I have encoded the clips with very high quality for your maximum viewing pleasure. You need a fast computer, an <a href="http://www.adobe.com/products/flashplayer/">up-to-date flash</a> player, and a fast internet connection (press play and then pause to start caching the whole clip if the connection is too slow.).</p><p><span id="more-158"></span></p><h2>On the Damberg</h2><p>Recorded at 15:29:57. Just riding uphill and discussions about how to best reach the top.<br /><center></p><div id="c1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div><p><script type="text/javascript" src="/files/yt/swfobject.js?9d7bd4"></script><br /><script type="text/javascript">/*<![CDATA[*/var s1=new SWFObject("/files/yt/player.swf","ply","848","500","9","#FFFFFF");s1.addParam("allowfullscreen","true");s1.addParam("allowscriptaccess","always");s1.addParam("flashvars","file=/wp-content/uploads/2008/08/p1000329.mp4&#038;image=/wp-content/uploads/2008/08/p1000329.jpg");s1.write("c1");/*]]>*/</script><br /></center></p><h2>Right Before the Dambergwarte</h2><p>Recorded at 16:11:31. A few meters before the Dambergwarte. This is the only time you see us standing around!<br /><center></p><div id="c2"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div><p><script type="text/javascript" src="/files/yt/swfobject.js?9d7bd4"></script><br /><script type="text/javascript">/*<![CDATA[*/var s1=new SWFObject("/files/yt/player.swf","ply","848","500","9","#FFFFFF");s1.addParam("allowfullscreen","true");s1.addParam("allowscriptaccess","always");s1.addParam("flashvars","file=/wp-content/uploads/2008/08/p1000368.mp4&#038;image=/wp-content/uploads/2008/08/p1000368.jpg");s1.write("c2");/*]]>*/</script><br /></center></p><h2>Speeding Past the Dambergwarte</h2><p>Recorded at 16:13:11. Alex in the front, me right behind him. The track is fast, but partly muddy and bumpy. I almost hit a tree at 1:25, Alex looses his precious chocolate bar at 2:20.<br /><center></p><div id="c3"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div><p><script type="text/javascript" src="/files/yt/swfobject.js?9d7bd4"></script><br /><script type="text/javascript">/*<![CDATA[*/var s1=new SWFObject("/files/yt/player.swf","ply","848","500","9","#FFFFFF");s1.addParam("allowfullscreen","true");s1.addParam("allowscriptaccess","always");s1.addParam("flashvars","file=/wp-content/uploads/2008/08/p1000369.mp4&#038;image=/wp-content/uploads/2008/08/p1000369.jpg");s1.write("c3");/*]]>*/</script><br /></center></p><h2>Downhill to the Hertlerwiese</h2><p>Recorded at 16:24:36. Following right behind Juu, carrying over a tree, down through the narrow forrest onto the beautiful Hertlerwiese. Amazing how Harald survived this with the citybike <img src="http://martin.ankerl.com/wp-includes/images/smilies/icon_smile.gif?9d7bd4" alt=':-)' class='wp-smiley' /></p><p><center></p><div id="c4"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div><p><script type="text/javascript" src="/files/yt/swfobject.js?9d7bd4"></script><br /><script type="text/javascript">/*<![CDATA[*/var s1=new SWFObject("/files/yt/player.swf","ply","848","500","9","#FFFFFF");s1.addParam("allowfullscreen","true");s1.addParam("allowscriptaccess","always");s1.addParam("flashvars","file=/wp-content/uploads/2008/08/p1000375.mp4&#038;image=/wp-content/uploads/2008/08/p1000375.jpg");s1.write("c4");/*]]>*/</script><br /></center></p><h2>Around the Schwarzberg</h2><p>Recorded at 16:50:50. Gravel road round the Schwarzberg, going pretty fast.<br /><center></p><div id="c5"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div><p><script type="text/javascript" src="/files/yt/swfobject.js?9d7bd4"></script><br /><script type="text/javascript">/*<![CDATA[*/var s1=new SWFObject("/files/yt/player.swf","ply","848","500","9","#FFFFFF");s1.addParam("allowfullscreen","true");s1.addParam("allowscriptaccess","always");s1.addParam("flashvars","file=/wp-content/uploads/2008/08/p1000378.mp4&#038;image=/wp-content/uploads/2008/08/p1000378.jpg");s1.write("c5");/*]]>*/</script><br /></center></p><h2>Challenging Downhill from Schwarzberg Peak</h2><p>Recorded at 17:49:39. This was the most demanding downhill track. Narrow bushes, very steep, lots of roots that have already built steps. Christoph in front of me, going fast.<br /><center></p><div id="c6"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div><p><script type="text/javascript" src="/files/yt/swfobject.js?9d7bd4"></script><br /><script type="text/javascript">/*<![CDATA[*/var s1=new SWFObject("/files/yt/player.swf","ply","848","500","9","#FFFFFF");s1.addParam("allowfullscreen","true");s1.addParam("allowscriptaccess","always");s1.addParam("flashvars","file=/wp-content/uploads/2008/08/p1000437.mp4&#038;image=/wp-content/uploads/2008/08/p1000437.jpg");s1.write("c6");/*]]>*/</script><br /></center></p><h2>From Wood to Grassland</h2><p>Recorded at 18:00:18. A bumpy start, but on 1:38 we reach the grassland, which is really nice to drive. High speed! Christoph and me wait at 2:40 for the others.<br /><center></p><div id="c7"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div><p><script type="text/javascript" src="/files/yt/swfobject.js?9d7bd4"></script><br /><script type="text/javascript">/*<![CDATA[*/var s1=new SWFObject("/files/yt/player.swf","ply","848","500","9","#FFFFFF");s1.addParam("allowfullscreen","true");s1.addParam("allowscriptaccess","always");s1.addParam("flashvars","file=/wp-content/uploads/2008/08/p1000438.mp4&#038;image=/wp-content/uploads/2008/08/p1000438.jpg");s1.write("c7");/*]]>*/</script><br /></center></p><h2>Bumpy Ride and Christoph&#8217;s Not So Controlled Dismount</h2><p>Recorded at 18:06:19. Ten seconds into the video Christoph decides to jump over the front of his bike, hehe <img src="http://martin.ankerl.com/wp-includes/images/smilies/icon_smile.gif?9d7bd4" alt=':)' class='wp-smiley' /> The rest is somewhat difficult terrain, Juu in front of me after we cross the gravel road.<br /><center></p><div id="c8"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div><p><script type="text/javascript" src="/files/yt/swfobject.js?9d7bd4"></script><br /><script type="text/javascript">/*<![CDATA[*/var s1=new SWFObject("/files/yt/player.swf","ply","848","500","9","#FFFFFF");s1.addParam("allowfullscreen","true");s1.addParam("allowscriptaccess","always");s1.addParam("flashvars","file=/wp-content/uploads/2008/08/p1000439.mp4&#038;image=/wp-content/uploads/2008/08/p1000439.jpg");s1.write("c8");/*]]>*/</script><br /></center></p><h2>Slipstream Speeding on Tared Road</h2><p>Recorded at 18:13:03. Slipstream riding behind Christoph, Juu, Harald. They got surprised when I zipped by them at 1:55, so they gave everything they could and overtook me at 2:20. Watch out Harald at 2:25, hehe <img src="http://martin.ankerl.com/wp-includes/images/smilies/icon_smile.gif?9d7bd4" alt=':)' class='wp-smiley' /> Speeding all the way down.<br /><center></p><div id="c9"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div><p><script type="text/javascript" src="/files/yt/swfobject.js?9d7bd4"></script><br /><script type="text/javascript">/*<![CDATA[*/var s1=new SWFObject("/files/yt/player.swf","ply","848","500","9","#FFFFFF");s1.addParam("allowfullscreen","true");s1.addParam("allowscriptaccess","always");s1.addParam("flashvars","file=/wp-content/uploads/2008/08/p1000440.mp4&#038;image=/wp-content/uploads/2008/08/p1000440.jpg");s1.write("c9");/*]]>*/</script><br /></center></p><p>That&#8217;s it. As you can see the head mounted camera was a huge success, the videos turned out to be really great. Its a bit shaky, but you can&#8217;t seriously expect anything else from downhill tracks like this.</p><h4>How did I create the flash clips?</h4><p>I use Ubuntu, so this is a little linux tutorial and won&#8217;t work on Windows.  The clipse are encoded into the <a href="http://en.wikipedia.org/wiki/H.264">H.264</a> format, I left the original resolution at 848&#215;480 and the <a href="http://en.wikipedia.org/wiki/Frame_rate">framerate</a> at 30 Hz. I use constant quality because then the clips look very good even when the camera moves very quickly, and it uses less bitrate when not needed. The disadvantage is that the bitrate can vary a lot, so make sure to cache a bit before you start playing.</p><ol><li>Encode the movies with <a href="http://www.mplayerhq.hu/design7/news.html">mencoder</a> (<a href="apt:mencoder">click to install</a>). It has to be x264 for video (0 or 1 bframes), and faac for audio.<li>Convert the result into an mp4 using mp4creator (<a href="apt:mpeg4ip-server">click to install</a>), as described <a href="http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-quicktime-7.html">here</a>.<li>Now you have an mp4 file that can be played with <a href="http://www.jeroenwijering.com/">JW player</a>. Download it, have a look at the readme.html, and follow the example described there.<li>The player requires 20 pixels in height, so add this to the SWFObject creation.</ol><p>I have written a small ruby script to convert any movie to a MP4 file. The first parameter is the input file, second parameter is the framerate. Save this file as e.g. <tt>convert2mp4.rb</tt>.</p><pre class="brush: ruby; title: ; notranslate">
#!/usr/bin/ruby

# constant quality setting
quality = 30

if ARGV.size != 2
	puts &quot;usage: #{__FILE__} &lt;inputvideo&gt; &lt;framerate&gt;&quot;
	exit
end

# set output filenames
input = ARGV[0]
rate = ARGV[1]
noext = input.gsub(/\.\w*$/, &quot;&quot;)

converted = '&quot;' + noext + '_tmp.avi&quot;'
aac = '&quot;' + noext + '.aac&quot;'
h264 = '&quot;' + noext + '.h264&quot;'
mp4 = '&quot;' + noext + '.mp4&quot;'

# encode
system(&quot;mencoder \&quot;#{input}\&quot; -o #{converted}
-x264encopts threads=auto:crf=#{quality}:subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=1:b_pyramid:weight_b
-oac faac -faacopts br=192 -channels 2 -srate 48000&quot;)

# convert to mp4
system(&quot;rm -f #{mp4}&quot;)
system(&quot;mplayer #{converted} -dumpaudio -dumpfile #{aac}&quot;)
system(&quot;mplayer #{converted} -dumpvideo -dumpfile #{h264}&quot;)
system(&quot;mp4creator -create=#{aac} #{mp4}&quot;)
system(&quot;mp4creator -create=#{h264} -rate #{rate} #{mp4}&quot;)
system(&quot;mp4creator -hint=1 #{mp4}&quot;)
system(&quot;mp4creator -hint=2 #{mp4}&quot;)
system(&quot;mp4creator -optimize #{mp4}&quot;)
system(&quot;rm -f #{aac} #{h264} #{converted}&quot;)
</pre><p>Have fun!</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2008/08/30/actioncam-damberg-kriterium/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>New Release of Dice-RPG</title><link>http://martin.ankerl.com/2007/11/04/new-release-of-dice-rpg/</link> <comments>http://martin.ankerl.com/2007/11/04/new-release-of-dice-rpg/#comments</comments> <pubDate>Sun, 04 Nov 2007 14:19:00 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[freeware]]></category> <category><![CDATA[fun]]></category> <category><![CDATA[news]]></category> <category><![CDATA[open source]]></category> <category><![CDATA[ruby]]></category> <category><![CDATA[Dice-RPG]]></category> <category><![CDATA[release]]></category> <category><![CDATA[RPG]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=98</guid> <description><![CDATA[I was bored today so I have updated my little program Dice-RPG to work with fox 1.6. What? Dice-RPG is a free dice throwing program that can be used for role playing games. Although I have never played a RPG &#8230; <a href="http://martin.ankerl.com/2007/11/04/new-release-of-dice-rpg/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I was bored today so I have updated my little program Dice-RPG to work with fox 1.6.</p><h1>What?</h1><p>Dice-RPG is a free dice throwing program that can be used for role playing games. Although I have never played a RPG in my entire life, my <a href="http://wyrm-chris.livejournal.com/">brother</a> forced me to write this tool for the good of mankind (actually, I wrote it because I did not have anything better to do, but don&#8217;t tell him).</p><p>Here is a screenshot:<br /><center><br /> <img src="/files/dice-rpg.png?9d7bd4" width="358" height="325"><br /></center></p><h1>How?</h1><p>To use Dice-RPG,</p><ol><li>Install the Ruby one-click installer from <a href="http://www.ruby-lang.org/">here</a> if you don&#8217;t have it already. This is a runtime, like Java or C#.<li>Download <a href="/files/dice-rpg.rbw">Dice-RPG.rbw</a> (right click and save the link) and doubleclick it.</ol><p>Have fun!</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2007/11/04/new-release-of-dice-rpg/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Climbing the Donnerkogel Klettersteig</title><link>http://martin.ankerl.com/2007/09/23/climbing-the-donnerkogel-klettersteig/</link> <comments>http://martin.ankerl.com/2007/09/23/climbing-the-donnerkogel-klettersteig/#comments</comments> <pubDate>Sun, 23 Sep 2007 21:18:17 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[fun]]></category> <category><![CDATA[climbing]]></category> <category><![CDATA[pictures]]></category> <category><![CDATA[travel]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=95</guid> <description><![CDATA[I just came home from a fabulous Klettersteig (I don&#8217;t know an English name for this, maybe &#8220;fixed rope route&#8221;), namely the Donnerkogel. This was a fabulous day, excellent weather, and we had a lot of fun. Here are some &#8230; <a href="http://martin.ankerl.com/2007/09/23/climbing-the-donnerkogel-klettersteig/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I just came home from a fabulous <em>Klettersteig</em> (I don&#8217;t know an English name for this, maybe &#8220;fixed rope route&#8221;), namely the <a href="http://www.bergsteigen.at/de/touren.aspx?ID=123">Donnerkogel</a>. This was a fabulous day, excellent weather, and we had a lot of fun. Here are some impressions:</p><h1>Donnermandl</h1><p>Start of the last stage of the fixed rope route, the &#8220;<a href="http://horalka.igoto.eu/photo.php?id=october_10&#038;a=dachstein&#038;t=2005-10">Donnermandl</a>&#8220;, at 1920m height. This has difficulty <a href="http://www.bergnews.com/service/klettersteig-schwierigkeitsgrade.htm">C/D</a> and is very exposed, but you are rewarded with fabulous views!</p><p><center><a href="/files/donnerkogel-1.jpg?9d7bd4"><img width="450" height="338" src="/files/donnerkogel-1-small.jpg?9d7bd4" /></a></center></p><h1>Donnerkogel Top</h1><p>We reached the top, yay! The Big Donnerkogel has 2045m, and even though it is September already it was very warm.<br /><center><a href="/files/donnerkogel-2.jpg?9d7bd4"><img width="450" height="338" src="/files/donnerkogel-2-small.jpg?9d7bd4" /></a></center></p><h1>Dachstein</h1><p>Behind me (left guy) is the famous <a href="http://en.wikipedia.org/wiki/Hoher_Dachstein">Dachstein,</a> one of the most often photographed mountain from Austria.<br /><center><a href="/files/donnerkogel-3.jpg?9d7bd4"><img width="450" height="338" src="/files/donnerkogel-3-small.jpg?9d7bd4" /></a></center></p><h1>Enjoy the View</h1><p>It is beautiful on the top, it really is. You can sit there for hours and just watch and listen to nature.<br /><center><a href="/files/donnerkogel-4.jpg?9d7bd4"><img width="450" height="338" src="/files/donnerkogel-4-small.jpg?9d7bd4" /></a></center></p><p>This was one of my rare non-technical postings. Hope you enjoyed it!</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2007/09/23/climbing-the-donnerkogel-klettersteig/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Project Development Phases</title><link>http://martin.ankerl.com/2007/06/05/project-development-phases/</link> <comments>http://martin.ankerl.com/2007/06/05/project-development-phases/#comments</comments> <pubDate>Tue, 05 Jun 2007 21:05:52 +0000</pubDate> <dc:creator>martinus</dc:creator> <category><![CDATA[coding]]></category> <category><![CDATA[fun]]></category> <category><![CDATA[programming]]></category> <category><![CDATA[rant]]></category> <category><![CDATA[project development]]></category> <category><![CDATA[quote]]></category><guid isPermaLink="false">http://martin.ankerl.com/?p=89</guid> <description><![CDATA[The 6 stages of every project are: Enthusiasm. Disillusionment. Panic. The Search For The Guilty. The Punishment of the Innocent. Accolades for the Non-Participants. After 4 years of software development experience, I can say with much confidence that this is &#8230; <a href="http://martin.ankerl.com/2007/06/05/project-development-phases/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>The 6 stages of every project are:</p><blockquote><ol><li>Enthusiasm.</li><li>Disillusionment.</li><li>Panic.</li><li>The Search For The Guilty.</li><li>The Punishment of the Innocent.</li><li>Accolades for the Non-Participants.</li></ol></blockquote><p>After 4 years of software development experience, I can say with much confidence that this is highly accurate.</p><div style='clear:both'></div>]]></content:encoded> <wfw:commentRss>http://martin.ankerl.com/2007/06/05/project-development-phases/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/34 queries in 0.042 seconds using disk: basic
Object Caching 1021/1103 objects using disk: basic

Served from: martin.ankerl.com @ 2012-02-04 11:08:40 -->
