<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Encoding Video for Android</title>
	<atom:link href="http://www.broken-links.com/2010/07/30/encoding-video-for-android/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.broken-links.com/2010/07/30/encoding-video-for-android/</link>
	<description>Thoughts on web development and technologies by Peter Gasston</description>
	<lastBuildDate>Mon, 06 Feb 2012 13:50:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Hooloovoo</title>
		<link>http://www.broken-links.com/2010/07/30/encoding-video-for-android/#comment-49952</link>
		<dc:creator>Hooloovoo</dc:creator>
		<pubDate>Thu, 17 Nov 2011 01:22:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=900#comment-49952</guid>
		<description>http://diveintohtml5.info/video.html is an invaluable reference for encoding files for HTML5. It suggests Miro video encoder for Windows and OSX.

For Gnu/Linux, I use &lt;a href=&quot;http://www.transcoder.org/&quot; rel=&quot;nofollow&quot;&gt;Arista Transcoder&lt;/a&gt;, which is excellent software with both Android and HTML5 presets.</description>
		<content:encoded><![CDATA[<p><a href="http://diveintohtml5.info/video.html" rel="nofollow">http://diveintohtml5.info/video.html</a> is an invaluable reference for encoding files for HTML5. It suggests Miro video encoder for Windows and OSX.</p>
<p>For Gnu/Linux, I use <a href="http://www.transcoder.org/" rel="nofollow">Arista Transcoder</a>, which is excellent software with both Android and HTML5 presets.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sue</title>
		<link>http://www.broken-links.com/2010/07/30/encoding-video-for-android/#comment-47105</link>
		<dc:creator>Sue</dc:creator>
		<pubDate>Tue, 06 Sep 2011 18:51:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=900#comment-47105</guid>
		<description>@Dave,

Install Handbrake (http://handbrake.fr/downloads.php). 

Encode videos with the following formats:
Preset: Normal
Form: MP4 file
Video codec: h.264, 
Important!!: check Web optimized
(The Web optimized will move the moov atom to the front of the video.)

I tested this on the Samsung Galaxy and on Google phone Android 2.1 and 2.2. However, you still have to provide for the users of Android a link to the video since it will not load in the HTML5 video player.

If you have to batch encode videos you can load them into the handbrake interface queue. If you know how to run command line you can use Handbrakes command line  HandBrakeCLI (need to be downloaded at http://handbrake.fr/downloads2.php).


Here is the code that I use in the OSX terminal. The -O is the flag for the Web optimized option:
&lt;code&gt;for file in `ls /Users/path-to-video-folder/mov/`; do $(//Applications/HandBrakeCLI -v -i /Users/path-to-video-folder/mov/${file} -o Users/path-to-video-folder/mp4/&quot;${file%.mov}.mp4&quot; -Z Normal -O); done
&lt;/code&gt;

You might have to change or tweak this according to your folder structure and original file types.</description>
		<content:encoded><![CDATA[<p>@Dave,</p>
<p>Install Handbrake (<a href="http://handbrake.fr/downloads.php" rel="nofollow">http://handbrake.fr/downloads.php</a>). </p>
<p>Encode videos with the following formats:<br />
Preset: Normal<br />
Form: MP4 file<br />
Video codec: h.264,<br />
Important!!: check Web optimized<br />
(The Web optimized will move the moov atom to the front of the video.)</p>
<p>I tested this on the Samsung Galaxy and on Google phone Android 2.1 and 2.2. However, you still have to provide for the users of Android a link to the video since it will not load in the HTML5 video player.</p>
<p>If you have to batch encode videos you can load them into the handbrake interface queue. If you know how to run command line you can use Handbrakes command line  HandBrakeCLI (need to be downloaded at <a href="http://handbrake.fr/downloads2.php" rel="nofollow">http://handbrake.fr/downloads2.php</a>).</p>
<p>Here is the code that I use in the OSX terminal. The –O is the flag for the Web optimized option:<br />
<code>for file in ‘ls /Users/path-to-video-folder/mov/‘; do $(//Applications/HandBrakeCLI –v –i /Users/path-to-video-folder/mov/${file} –o Users/path-to-video-folder/mp4/”${file%.mov}.mp4” –Z Normal –O); done<br />
</code></p>
<p>You might have to change or tweak this according to your folder structure and original file types.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.broken-links.com/2010/07/30/encoding-video-for-android/#comment-47103</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 06 Sep 2011 18:09:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=900#comment-47103</guid>
		<description>Hi Peter,

Thanks for your response. I don&#039;t don&#039;t know what to make of the advice. Well over my head I fear but I have put all my problems into this link and posted it to and Android forum hoping someone can help: http://ffmpeg.play4gain.com/ will let you know if there is a good outcome.</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>Thanks for your response. I don’t don’t know what to make of the advice. Well over my head I fear but I have put all my problems into this link and posted it to and Android forum hoping someone can help: <a href="http://ffmpeg.play4gain.com/" rel="nofollow">http://ffmpeg.play4gain.com/</a> will let you know if there is a good outcome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.broken-links.com/2010/07/30/encoding-video-for-android/#comment-47073</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Mon, 05 Sep 2011 22:08:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=900#comment-47073</guid>
		<description>@Dave: I think there is a very specific action that you need to take; see here: http://www.broken-links.com/2010/07/08/making-html5-video-work-on-android-phones/#comment-40896 However, I don&#039;t know enough about FFMPEG to say how to do that.</description>
		<content:encoded><![CDATA[<p>@Dave: I think there is a very specific action that you need to take; see here: <a href="http://www.broken-links.com/2010/07/08/making-html5-video-work-on-android-phones/#comment-40896" rel="nofollow">http://www.broken-links.com/2010/07/08/making-html5-video-work-on-android-phones/#comment-40896</a> However, I don’t know enough about FFMPEG to say how to do that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.broken-links.com/2010/07/30/encoding-video-for-android/#comment-47064</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 05 Sep 2011 15:43:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=900#comment-47064</guid>
		<description>Hi,
I have a Commtiva-n700 - Android 2.2. I came across your page and found that 2/3 videos where working so I tried to implement your ideas. The difference is that I am using ffmpeg. I have tried many encoding command lines with no success and am out of ideas. Info from here: https://help.ubuntu.com/community/AndroidVideoEncoding
and here: http://h264.code-shop.com/trac/wiki/Encoding
All mp4 videos work great on my web browser but not on the tablet.
Am I missing something? Do they video&#039;s need to be streamed or something like that? Many thanks in advance - hairless Dave</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have a Commtiva-n700 — Android 2.2. I came across your page and found that 2/3 videos where working so I tried to implement your ideas. The difference is that I am using ffmpeg. I have tried many encoding command lines with no success and am out of ideas. Info from here: <a href="https://help.ubuntu.com/community/AndroidVideoEncoding" rel="nofollow">https://help.ubuntu.com/community/AndroidVideoEncoding</a><br />
and here: <a href="http://h264.code-shop.com/trac/wiki/Encoding" rel="nofollow">http://h264.code-shop.com/trac/wiki/Encoding</a><br />
All mp4 videos work great on my web browser but not on the tablet.<br />
Am I missing something? Do they video’s need to be streamed or something like that? Many thanks in advance — hairless Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Walter bamert</title>
		<link>http://www.broken-links.com/2010/07/30/encoding-video-for-android/#comment-45971</link>
		<dc:creator>Walter bamert</dc:creator>
		<pubDate>Thu, 21 Jul 2011 17:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=900#comment-45971</guid>
		<description>Many thanks for the work done here. i have been reading everything i can get my hands on about this nothing worked until i read thru your stuff and changed my mp4 encoding.

GREAT JOB!</description>
		<content:encoded><![CDATA[<p>Many thanks for the work done here. i have been reading everything i can get my hands on about this nothing worked until i read thru your stuff and changed my mp4 encoding.</p>
<p>GREAT JOB!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WebView NOT opening android default video player? &#124; Coding Answers</title>
		<link>http://www.broken-links.com/2010/07/30/encoding-video-for-android/#comment-44791</link>
		<dc:creator>WebView NOT opening android default video player? &#124; Coding Answers</dc:creator>
		<pubDate>Mon, 06 Jun 2011 04:44:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=900#comment-44791</guid>
		<description>[...] guys, when I view this page on my android device&#8217; default web browser and click the first video, it triggers the default [...]</description>
		<content:encoded><![CDATA[<p>[…] guys, when I view this page on my android device’ default web browser and click the first video, it triggers the default […]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HTML5 Video is useful but requires planning before you put it on a website and might be best for mobile sites only &#124; HTML5, CSS3, jQuery, AJAX and other technologies learned and discussed by kaidez</title>
		<link>http://www.broken-links.com/2010/07/30/encoding-video-for-android/#comment-41436</link>
		<dc:creator>HTML5 Video is useful but requires planning before you put it on a website and might be best for mobile sites only &#124; HTML5, CSS3, jQuery, AJAX and other technologies learned and discussed by kaidez</dc:creator>
		<pubDate>Wed, 19 Jan 2011 11:07:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=900#comment-41436</guid>
		<description>[...] Encoding HTML5 Video for Android Tutorial at Broken Links [...]</description>
		<content:encoded><![CDATA[<p>[…] Encoding HTML5 Video for Android Tutorial at Broken Links […]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexis Deveria</title>
		<link>http://www.broken-links.com/2010/07/30/encoding-video-for-android/#comment-40837</link>
		<dc:creator>Alexis Deveria</dc:creator>
		<pubDate>Fri, 17 Dec 2010 14:17:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=900#comment-40837</guid>
		<description>Okay, thanks again! I look forward to hearing your findings. :)</description>
		<content:encoded><![CDATA[<p>Okay, thanks again! I look forward to hearing your findings. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.broken-links.com/2010/07/30/encoding-video-for-android/#comment-40834</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 17 Dec 2010 09:41:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=900#comment-40834</guid>
		<description>I ran only a very cursory check just to see if the format was recognised, but otherwise using the same code as previously; so the answer to your question is, I don&#039;t know! When I have more time I&#039;ll put together some more structured tests.</description>
		<content:encoded><![CDATA[<p>I ran only a very cursory check just to see if the format was recognised, but otherwise using the same code as previously; so the answer to your question is, I don’t know! When I have more time I’ll put together some more structured tests.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

