<?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>Mobile Video Streaming Project &#187; Encoding</title>
	<atom:link href="http://mvstreaming.com/category/encoding/feed/" rel="self" type="application/rss+xml" />
	<link>http://mvstreaming.com</link>
	<description>Demystifing mobile video streaming - I hope.</description>
	<lastBuildDate>Mon, 17 Nov 2008 22:49:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>iPhone video streaming sort of..</title>
		<link>http://mvstreaming.com/iphone-video-streaming-sort-of/</link>
		<comments>http://mvstreaming.com/iphone-video-streaming-sort-of/#comments</comments>
		<pubDate>Sun, 01 Jul 2007 20:44:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Encoding]]></category>
		<category><![CDATA[Mobile Video Formats]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mpeg4]]></category>

		<guid isPermaLink="false">http://mvstreaming.com/iphone-video-streaming-sort-of/</guid>
		<description><![CDATA[After doing some tests and reading some blog posts about the iPhone, someone pointed out to me a link which if you go to it on your iPhone http://www.apple.com/trailers/iphone/ you will see the same trailer page as normally on your PC but when you click on a trailer you get a iPhone formatted page (example). [...]]]></description>
			<content:encoded><![CDATA[<p>After doing some tests and reading some blog posts about the iPhone, someone pointed out to me a link which if you go to it on your iPhone http://www.apple.com/trailers/iphone/ you will see the same trailer page as normally on your PC but when you click on a trailer you get a iPhone formatted page (<a href="http://mvstreaming.com/iPhone-trailer.jpg" target="_blank" class="snap_preview" title="iPhone Trailer Page">example</a>).  Now when clicking on the trailer at the top on the iPhone it launches the video player that the iPhone uses and the video start streaming in (if your on wifi).</p>
<p>Of course this is pretty neat especially if your connected to a wifi hotspot but doing any sort of streaming over EDGE (at least from our tests) things are slow, buffering, hangs in the trailer etc.  If you want to stream over EDGE your going to greatly reduce your quality event to the point where your seeing just a macro block slide show with lots of latency/buffering.</p>
<p>I put together a iPhone demo page to test out a video I encoded <a href="http://mvstreamer.com/iphone.html">here</a>.  I recommend loading this on wifi connection, but would be curious to see how it runs on EDGE for some people.</p>
]]></content:encoded>
			<wfw:commentRss>http://mvstreaming.com/iphone-video-streaming-sort-of/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone video streaming a no go currently.</title>
		<link>http://mvstreaming.com/iphone-video-streaming-a-no-go-currently/</link>
		<comments>http://mvstreaming.com/iphone-video-streaming-a-no-go-currently/#comments</comments>
		<pubDate>Sat, 30 Jun 2007 20:16:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Encoding]]></category>
		<category><![CDATA[General Info]]></category>
		<category><![CDATA[H264]]></category>
		<category><![CDATA[mpeg4]]></category>

		<guid isPermaLink="false">http://mvstreaming.com/iphone-video-streaming-a-no-go-currently/</guid>
		<description><![CDATA[After doing many tests with my buddy who has an iPhone I was unable to get any sort of streaming working via the Safari browser.
I have encoded and tested the following:
mpeg4 + aac (hinted non hinted)


	doesn’t work via DSS or direct html link Safari doesn’t understand RTSP and http:// linked videos it wants to load [...]]]></description>
			<content:encoded><![CDATA[<p>After doing many tests with my buddy who has an iPhone I was unable to get any sort of streaming working via the Safari browser.</p>
<p>I have encoded and tested the following:</p>
<p>mpeg4 + aac (hinted non hinted)
<ul>
<li>
	doesn’t work via DSS or direct html link Safari doesn’t understand RTSP and http:// linked videos it wants to load into memory.</li>
</ul>
<p>h264 + aac (hinted non hinted)
<ul>
<li>
	doesn’t work via DSS or direct html link Safari doesn’t understand RTSP and http:// linked videos it wants to load into memory.</li>
</ul>
<p>Asking my buddy to visit m.youtube.com via safari and test a video from the page also doesn’t work for him either.<br />
<em><br />
Error: safari can&#8217;t open the page because the address is invalid</em></p>
<p>So, unless you can develop your own custom application like the youtube one right now looks like we are out of luck.</p>
<p>User Agent String for iPhone is:</p>
<p>Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3</p>
<p>If anyone comes up with a solution I would love to hear it.</p>
]]></content:encoded>
			<wfw:commentRss>http://mvstreaming.com/iphone-video-streaming-a-no-go-currently/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone video encoding specs for streaming?</title>
		<link>http://mvstreaming.com/iphone-video-encoding-specs-for-streaming/</link>
		<comments>http://mvstreaming.com/iphone-video-encoding-specs-for-streaming/#comments</comments>
		<pubDate>Sat, 30 Jun 2007 00:52:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Encoding]]></category>

		<guid isPermaLink="false">http://mvstreaming.com/iphone-video-encoding-specs-for-streaming/</guid>
		<description><![CDATA[Today is the day when people line up to get the next generation in mobile phones.  iPhone hysteria is on the loose and you cant escape hearing about iPhones in the news and on the net.  I wont be getting an iPhone any time soon esp since It would require me to break [...]]]></description>
			<content:encoded><![CDATA[<p>Today is the day when people line up to get the next generation in mobile phones.  iPhone hysteria is on the loose and you cant escape hearing about iPhones in the news and on the net.  I wont be getting an iPhone any time soon esp since It would require me to break my Sprint contract and go with Cingular/AT&#038;T and loose my beloved EDVO data speeds to EDGE.</p>
<p>With all of that said anyone who has an iPhone would you please visit the best video sites and test out a few videos at http://mvstreamer.mobi . </p>
<p>I&#8217;m also looking for any videos encoded for the iPhone so I can add in streaming support for iPhone users.  I don&#8217;t expect this to look nice since the video specs are 320&#215;240 or 640&#215;480 at EDGE data rates which isn&#8217;t great and not to mention the latency issue.  I will be adding bigger video sizes soon but don&#8217;t expect any miracles for those screen sizes, getting a good looking qcif video at the current data rates on EDGE is tough enough with out turning it into a blocky slide show.</p>
<p>iPhone Specs from Apple:</p>
<blockquote><p>Video formats supported: H.264 video, up to 1.5 Mbps, 640 by 480 pixels, 30 frames per second, Low-Complexity version of the H.264 Baseline Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; H.264 video, up to 768 Kbps, 320 by 240 pixels, 30 frames per second, Baseline Profile up to Level 1.3 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats</p></blockquote>
<p>UPDATE: My buddy is in line for his iPhone so Ill be able to do some tests soon, but I would still like to hear from other iPhone users.</p>
]]></content:encoded>
			<wfw:commentRss>http://mvstreaming.com/iphone-video-encoding-specs-for-streaming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FFmpeg changes</title>
		<link>http://mvstreaming.com/ffmpeg-changes/</link>
		<comments>http://mvstreaming.com/ffmpeg-changes/#comments</comments>
		<pubDate>Sat, 16 Jun 2007 20:18:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Encoding]]></category>
		<category><![CDATA[General Info]]></category>

		<guid isPermaLink="false">http://mvstreaming.com/ffmpeg-changes/</guid>
		<description><![CDATA[As of late the SVN builds of ffmpeg have been changing the configuration args to compile ffmpeg and encoding options after the software is compiled.  I wanted to befiely mention the changes I have noticed.
My original compile options for ffmpeg : --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --disable-debug --enable-mp3lame --enable-libogg --enable-vorbis --enable-faad --enable-faadbin --enable-faac --enable-pthreads --enable-xvid --enable-x264 --enable-a52 [...]]]></description>
			<content:encoded><![CDATA[<p>As of late the SVN builds of ffmpeg have been changing the configuration args to compile ffmpeg and encoding options after the software is compiled.  I wanted to befiely mention the changes I have noticed.</p>
<p>My original compile options for ffmpeg : <code>--extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --disable-debug --enable-mp3lame --enable-libogg --enable-vorbis --enable-faad --enable-faadbin --enable-faac --enable-pthreads --enable-xvid --enable-x264 --enable-a52 --enable-a52bin --enable-amr_nb --enable-amr_nb-fixed --enable-amr_wb --enable-memalign-hack --enable-shared --enable-gpl</code></p>
<p>Things that have changed are the addition of adding &#8220;lib&#8221; do most everything.. So &#8211;enable-xvid will be &#8211;enable-libxvid.  Most of these can be found by typing ./configuration &#8211;help</p>
<p>So this is just a fyi if you haven&#8217;t compiled ffmpeg in a while to prob add &#8220;lib&#8221; to most everything <img src='http://mvstreaming.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The next changes have to do when encoding video and most of them deal with changes in the audio switches.</p>
<p>changes:</p>
<p>old: -acodec amr_nb<br />
new: -acodec libamr_nb</p>
<p>old: -ab 12<br />
new: -ab 12.2k or various other options but all require &#8220;k&#8221; behind them.</p>
<p>old: -acodec aac<br />
new: -acodec libfaac</p>
<p>hopefully this helps out and your not pulling your hair out or Googling around to find the changes cause well apprently their is no good change log with this type of information.</p>
]]></content:encoded>
			<wfw:commentRss>http://mvstreaming.com/ffmpeg-changes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wide Screen video encoding for qcif</title>
		<link>http://mvstreaming.com/wide-screen-video-encoding-for-qcif/</link>
		<comments>http://mvstreaming.com/wide-screen-video-encoding-for-qcif/#comments</comments>
		<pubDate>Fri, 02 Mar 2007 14:36:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Encoding]]></category>
		<category><![CDATA[General Info]]></category>

		<guid isPermaLink="false">http://mvstreaming.com/wide-screen-video-encoding-for-qcif/</guid>
		<description><![CDATA[Well, many of you are probably wondering how to convert a non 4:3 type of video into qcif (176&#215;144) and keep the aspect ratio of the video.  This is a bit tricky and isn&#8217;t an exact science due to the nature mpeg.  Most mobile phones can handle qcif resolution but anything smaller or [...]]]></description>
			<content:encoded><![CDATA[<p>Well, many of you are probably wondering how to convert a non 4:3 type of video into qcif (176&#215;144) and keep the aspect ratio of the video.  This is a bit tricky and isn&#8217;t an exact science due to the nature mpeg.  Most mobile phones can handle qcif resolution but anything smaller or bigger could cause issues and since we are trying to support as many handsets as possible here is my proposed solution.</p>
<p>First you figure out what resolution your current video is as.  So im going to use the super man trailer I have been testing with as an example which is at 1280&#215;544, which is in some sort of wide screen video format.<br />
<span id="more-8"></span><br />
Step one is to divide the width of the source with the width of qcif.</p>
<p><code>1280/176 = 7.27 ... </code></p>
<p>Next divide the result from step one by the height of the original video which is 544.</p>
<p>btw I rounded up to 7.3</p>
<p><code>544/7.3 = 74.5...</code></p>
<p>So giving these 2 calculations we now have the new height of the video based upon a qcif resolution.</p>
<p>176 x 75 (I rounded up)</p>
<p>Here is where the issue lies if you encode your video with ffmpeg at that resolution your breaking qcif compliance which most phones require so your going to immediately break playback on most phones.</p>
<p>So what you do is use the padtop and padbottom options in ffmpeg to add black bars to your video but be carefull as you will see in our example they needs to be multiples of 2.</p>
<p><code>(144-75)/2 = 34.5</code></p>
<p>So since 34.5 isn&#8217;t valid pad value for ffmpeg you have to fudge your numbers a bit.</p>
<p><code>(144-76)/2 = 34</code></p>
<p>Which now gives you a valid number thats divisible by two.</p>
<p>So your end result when encoding this video would be</p>
<p><code>ffmpeg -i yourvideo.avi -f 3gp -vcodec h263p -r 7.4925 -s 176x76 -padtop 34 -padbottom 34 -acodec amr_nb -ac 1 -ar 8000 -ab 12 -b 32k output.3gp</code></p>
<p>you will notice a few things right off the bat, you cannot use -vcodec h263 since it wont let u encode anything non qcif resolution -vcodec mpeg4 doesn&#8217;t have this limitation but you need to encode for h263 this is what you use.  Pad top and bottom add the black bars to the video how ever your not done because this video will not -hint with MP4Box and it will actually remove the video stream if you try it.</p>
<p><code> MP4Box -hint -3gp output.3gp<br />
Converting to 3GP file...<br />
[3GPP convert] Video format not supported by 3GP - removing track ID 1<br />
[3GPP convert] Setting major brand to 3GPP V5 file<br />
Hinting file with Path-MTU 1450 Bytes<br />
Hinting track ID 2 - Type "samr:samr" (AMR) - BW 13 kbps<br />
Saving output.3gp: 0.500 secs Interleaving  </code></p>
<p>What you need to do then is re-encode that video that was just created again with the proper qcif format.  I know this sucks and re-encoding a video again looses some quality but currently this is the only solution I found for h263, so far my tests for mpeg4 and h264 don&#8217;t require this additional re-encoding.</p>
<p>You can see the result if your point your phone over to http://mvstreaming.mobi</p>
<p>So given this formula will help you keep the proper aspects of wide screen videos, it may look a lot smaller on the mobile phone screen and you may not care and just encode it all to 176&#215;144 wide screen or not.</p>
<p>On another note, if anyone builds a php, or perl script that can do this calculation I would be interested in looking at it.</p>
]]></content:encoded>
			<wfw:commentRss>http://mvstreaming.com/wide-screen-video-encoding-for-qcif/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting 16:9 content to QCIF ?</title>
		<link>http://mvstreaming.com/converting-169-ratio-content-to-qcif/</link>
		<comments>http://mvstreaming.com/converting-169-ratio-content-to-qcif/#comments</comments>
		<pubDate>Thu, 22 Feb 2007 13:09:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Encoding]]></category>

		<guid isPermaLink="false">http://mvstreaming.com/converting-169-ratio-content-to-qcif/</guid>
		<description><![CDATA[Ok, this has been a thorn in my side and I have been doing a bit of research and tests with out much luck so far.
The issue is taking content that is shot in HD and converting it to the mobile phone screen but keeping the proper aspect of the HD content.  This leads [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, this has been a thorn in my side and I have been doing a bit of research and tests with out much luck so far.</p>
<p>The issue is taking content that is shot in HD and converting it to the mobile phone screen but keeping the proper aspect of the HD content.  This leads to a few issues, first of all QCIF (Quarter Common Intermediate format &#8211; 176&#215;144) which is at 4:3 aspect ratio.</p>
<p>A test clip im using is at the resolution of 1280&#215;544, its not quite 720p resolution which is 1280&#215;720 but thats besides the point, taking that resolution and fitting it into QCIF causes the aspect of the HD clip to fit to the 4:3 ratio.  </p>
<p>The problem is encoding it at a lower res than 176&#215;144 can cause issues with some mobile phones, ie QCIF is a very strict standard resolution that mobile phones have stuck to and some players blow up if its not at the proper res.</p>
<p>What im trying to figure out is how to convert down the clip and use -padtop , -padbottom and -padcolor ffmpeg settings which are supposed to create crop bars for you in black.  I have yet to get a result that I like so far. So Im wondering if anyone has a suggestion to do this with either ffmpeg or mencoder.</p>
]]></content:encoded>
			<wfw:commentRss>http://mvstreaming.com/converting-169-ratio-content-to-qcif/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
