<?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>On technology and development &#187; iPad</title>
	<atom:link href="http://blog.codewrench.net/tag/ipad/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.codewrench.net</link>
	<description>My thoughs on stuff</description>
	<lastBuildDate>Wed, 18 Jan 2012 07:49:40 +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>Streaming live video to iPad/iPhone 4</title>
		<link>http://blog.codewrench.net/2011/02/17/streaming-live-video-to-ipadiphone-4/</link>
		<comments>http://blog.codewrench.net/2011/02/17/streaming-live-video-to-ipadiphone-4/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 21:35:45 +0000</pubDate>
		<dc:creator>Pål</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[nrk]]></category>
		<category><![CDATA[streaming]]></category>

		<guid isPermaLink="false">http://blog.codewrench.net/?p=565</guid>
		<description><![CDATA[This post describes how to setup VLC to transcode live video streams to iPad/iPhone 4 compatible H264 mp4 format. Unfortunately the iPad/iPhone 4 does not support any kind of normal streaming, but something Apple calls Http Live Streaming. This means &#8230; <a href="http://blog.codewrench.net/2011/02/17/streaming-live-video-to-ipadiphone-4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This post describes how to setup VLC to <a href="http://en.wikipedia.org/wiki/Transcode">transcode</a> live video streams to iPad/iPhone 4 compatible H264 mp4 format. Unfortunately the iPad/iPhone 4 does not support any kind of normal streaming, but something Apple calls <a href="http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/HTTPStreamingArchitecture/HTTPStreamingArchitecture.html">Http Live Streaming</a>. This means you need to do a bit more as well. <span id="more-565"></span>I&#8217;m going to use an ASF stream from the national television channel in Norway (NRK) as a sample. The same method should work on all streams that VLC supports. NRK has a mobile portal (m.nrk.no) where there is an iPad compatible stream, but the quality if quite low in comparison with what I get with this method and a HQ stream.</p>
<p>What I use:</p>
<ol>
<li>VLC player from <a href="http://www.videolan.org">http://www.videolan.org</a></li>
<li>Http segmenter from <a href="http://www.espend.de/artikel/iphone-ipad-ipod-http-streaming-segmenter-and-m3u8-windows.html">http://www.espend.de</a></li>
<li>A web server capable of serving static content (Apache, IIS or any old web server)</li>
<li>A powerful computer. Transcoding video in realtime eats CPU. My Intel Core i7 Q720 (4 x 1.6 GHz) barely manages three streams at a time.</li>
</ol>
<p>Firstly I use a small script to make VLC fetch the ASF stream and convert it to a new H264 transport-stream. This stream is <a href="http://en.wikipedia.org/wiki/Pipe_%28Unix%29">piped</a> into the http segmenter. The segmenter is responsible for chopping the stream into nice small 10 seconds segments and save them to separate .ts (transport-stream) files. A list of these files are stores in a continuously updated m3u8 playlist file. The playlist contains a list of the 5 latest files each containing about 10-seconds of video. The iPad continuously reloads this file and fetches new .ts chunks and needed. These segments are played back-to-back without gaps thus creating an illusion of viewing a stream.</p>
<p><a href="http://blog.codewrench.net/wp-content/uploads/2011/02/HTTP-Live-Streaming1.png"><img class="size-full wp-image-573 alignnone" title="HTTP Live Streaming" src="http://blog.codewrench.net/wp-content/uploads/2011/02/HTTP-Live-Streaming1.png" alt="HTTP Live Streaming" width="862" height="369" /></a></p>
<p>The first thing you need is to setup the VLC | segmenter pipe. I&#8217;ve created a small script that does this.</p>
<address><a href="http://blog.codewrench.net/wp-content/uploads/2011/02/TranscodeScript.png"><img class="size-full wp-image-580 " title="Transcode script" src="http://blog.codewrench.net/wp-content/uploads/2011/02/TranscodeScript.png" alt="" width="925" height="190" /></a><em>Click to see full size</em></address>
<p>Then setup a web server to serve the .ts and .m3u8 file. Make sure to setup the mime-types as specified in the specification from Apple.</p>
<p>If you have an iPad you can open safari and navigate to <a href="http://ipad.codewrench.net/">http://ipad.codewrench.net/</a> to see a demo. This serves a low-quality stream of NRK1. I don&#8217;t own an iPhone 4 so I dont know if it works there as well.</p>
<p>I don&#8217;t have the server power nor the bandwidth to serve this to everyone, nor do I probably have the right to. So if you want to watch live TV use this description to setup your own system.</p>
<p>I&#8217;ve added everything I use to a bundle archive so you can easily start yourself:<br />
<a rel="nofollow" href="http://blog.codewrench.net/downloads/streaming.rar">download bundle</a> (28 MB RAR file). It&#8217;s pre-setup if you unpack to C:\Streaming\</p>
<p>Just unpack and start &#8220;00 start_stream_nrk1.cmd&#8221;. Wait a bit and navigate to http://your-computers-ip-or-name/ on the ipad.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codewrench.net/2011/02/17/streaming-live-video-to-ipadiphone-4/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Apple iPad</title>
		<link>http://blog.codewrench.net/2010/01/28/apple-ipad/</link>
		<comments>http://blog.codewrench.net/2010/01/28/apple-ipad/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 20:05:26 +0000</pubDate>
		<dc:creator>Pål</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[Wheel]]></category>

		<guid isPermaLink="false">http://blog.codewrench.net/?p=488</guid>
		<description><![CDATA[Unless you have been away in space you probably have heard about the biggest bit of technology news this week. On Wednesday Apple released their tablet PC called&#8230;..iPad&#8230;., wow that was innovative naming. It&#8217;s basically like some Apple designer stumbled &#8230; <a href="http://blog.codewrench.net/2010/01/28/apple-ipad/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_489" class="wp-caption alignleft" style="width: 238px"><a href="http://blog.codewrench.net/wp-content/uploads/2010/01/iPad.png"><br />
<img class="size-medium wp-image-489 " title="iPad" src="http://blog.codewrench.net/wp-content/uploads/2010/01/iPad-228x300.png" alt="" width="228" height="300" /></a><p class="wp-caption-text">The new iPad</p></div>
<p>Unless you have been away in space you probably have heard about the biggest bit of technology news this week. On Wednesday Apple released their tablet PC called&#8230;..iPad&#8230;., wow that was innovative naming. It&#8217;s basically like some Apple designer stumbled on the zoom button on their Xerox copier when copying some iPod Touch/iPhone photos.</p>
<p>Anyway with this latest Apple toy you can use read books, surf the web, read your email and more (sounds familiar?). As with the iPhone this new 1GHz device cannot multitask. That feature is probably reserved for the the iPad Maxi which will come after the iPad Plus that has a camera. It&#8217;s important not to give a customer all the features at once. How else are you going to lure your blind followers to pay for upgrades?</p>
<p>Also don&#8217;t forget the other big news from Apple. The new Macbook Wheel</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/t9ayYo3-33Y&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/t9ayYo3-33Y&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codewrench.net/2010/01/28/apple-ipad/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

