<?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>Long Story Short &#187; html5</title>
	<atom:link href="http://blog.trlong.com/tag/html5/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.trlong.com</link>
	<description>a place for talkin&#039; story</description>
	<lastBuildDate>Tue, 24 Jan 2012 16:15:04 +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>Bat Converter Alpha</title>
		<link>http://blog.trlong.com/2010/10/bat-converter-alpha/</link>
		<comments>http://blog.trlong.com/2010/10/bat-converter-alpha/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 19:01:28 +0000</pubDate>
		<dc:creator>Tom Long</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[Bat Converter]]></category>
		<category><![CDATA[BatConverter]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[Tivo]]></category>
		<category><![CDATA[transcoding]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[video conversion]]></category>

		<guid isPermaLink="false">http://blog.trlong.com/?p=1788</guid>
		<description><![CDATA[Did you think I fell off the face of the earth?  No, I&#8217;ve just been busy moving Bat Converter up to its Alpha release. Bat Converter is a Windows-only tool I developed to automate a process in which I regularly &#8230; <a href="http://blog.trlong.com/2010/10/bat-converter-alpha/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div style="margin: 3px; padding: 3px; text-align: center; font-size: 9pt; float: left; width: 230px;"><a href="http://www.youtube.com/watch?v=GoHfx7CeV20" target="_blank"><img title="Bat Converter" src="http://blog.trlong.com/wp-content/video_uploads/How to Configure and Use Bat Converter.jpg" alt="Bat Converter" width="217" /></a></div>
<p>Did you think I fell off the face of the earth?  No, I&#8217;ve just been busy moving Bat Converter up to its Alpha release.</p>
<p>Bat Converter is a Windows-only tool I developed to automate a process in which I regularly engage &#8211; converting video formats.  The three options are to set it up to (1) convert TV Recordings to mpeg, (2) convert any other video to a format compatible with the iPad or new iPhone as well has many Android devices (like my Droid Incredile), and (3) to convert to an iPad version, an iPhone 3GS version, an OGV version, and a flash video.   That&#8217;s right, Option 3 generates four output files for every one that you feed it.  Conversions occur in a minimized console.  When they are complete the destination folder will open with all your newly converted videos.  Other than the .wtv to .dvr-ms conversion, there is no progress window.  Converting videos is a long process.  I like to run my program and go to bed.  In the morning, there is my window open with all those files ready to do my bidding.</p>
<p>Specifically, I record TV using the Media Center in Windows 7, but I want to be able to watch it on my wife&#8217;s iPad, one of the few XP notebooks, or the Tivo HD.  That means the Windows TV (wtv) container has to be changed.  (Bat Converter uses the Windows 7 WTVConverter utility to generate the episode in the dvr-ms format.)  The original and this copy are left in the original folder.  The dvr-ms episode retains all of the original metadata and quality.  The dvr-ms episode is then converted to mpeg at the same quality level but without the metadata.  (Somebody please tell me how to retain the metadata.)  The conversion from dvr-ms to mpeg is done using an older version of FFmpeg.  The newer releases seem to have this ability broken.  By putting this mpeg version in the My Tivo Recordings folder, I can watch it on my Tivo in the other room (or change the name to the right format and watch it on XBMC).</p>
<p>By default, I place the mpeg version in the &#8216;Videos2Convert&#8217; folder.   Along with most other formats (and more to come in future releases), any videos in this folder can be converted using option 2 or 3.  This is accomplished using the newer version of FFmpeg.  This software uses code of <a href="http://ffmpeg.org/">FFmpeg</a> licensed  under the <a href="http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html">LGPLv2.1</a>. This  software uses libraries from the FFmpeg project under the LGPLv2.1.  Since I have included the libx264 libraries, be advised that they cannot be used for any commercial purpose and are subject to the restrictions of their copyrights.</p>
<p>We like to have some shows on the iPad in case we get rained in at camp.  Using Option 2 and changing the output folder to the &#8216;Automatically Add to iTunes&#8217; directory, makes those videos available the next time I sync the iPad with iTunes (find them under &#8216;Movies&#8217;).  I also use option 2 to convert videos family members have recorded in the myriad of current formats used by today&#8217;s cameras. Less often, I&#8217;ll use it to convert videos I downloaded from the internet.</p>
<p>The third option is handy for those of us who want to post videos for HTML5 compatible browsers.  It generates the three top formats.  By using those three formats with the &lt;video&gt; tag, the video can be used with the latest version of all the major browsers.  A bonus flash video is also generated just in case you want to degenerate to flash for users confined to older non-HTML5-compliant browsers.</p>
<p>Bat Converter can be placed anywhere on your computer.  You could even make three copies and configure one for each option.  Every time you run setup it reverts to the original default path configuration, though, so make sure the paths still point to the right place before you click one of the &#8216;Save&#8221; options.</p>
<p>A further note.   The graphical user interface (GUI) for configuration is on the MS Internet Explorer/Windows Scripting Host platform so if you don&#8217;t have those you&#8217;ll have to change the &#8216;batconverter-configuration.dat&#8217; folder manually and skip running &#8216;setup.bat.&#8217;  I tested Bat Converter on four computers and the GUI did not function fully on one of them.  I have one more project I want to finish using batch files, VBScript, and HTA.  Then, I&#8217;ll start working on learning a language that is less platform specific.  I love Linux, but I had to start somewhere and since I use Windows as my DVR . . .</p>
<p>This is an alpha release.  Your comments and feedback can help to make further versions better.  If anyone at FFmpeg or MPEG LA has a problem with how I&#8217;m distributing, I am happy to change or pull my product.  If you would like to thank me for building this for you, please feel free to make a donation to <a href="https://www.habitat.org/cd/giving/one/donate.aspx?link=320&amp;st=MTAvMTEvMjAxMCA3OjMzOjMxIEFN&amp;x=1" target="_blank">Habitat for Humanity</a> ($3 suggested).</p>
<p>And now, without further ado, I give you the download link:</p>
<p>BatConverter.zip</p>
<p>UPDATE:  Per the comment below,There was a glitch in the initial release by which the &#8216;Save and Run&#8217; button during setup only saved.  That button has been removed.  Please save the setup and then just run BatConverter.cmd until you need to change the setup.  Then just run &#8216;Setup.bat&#8217; again to make and save your changes.</p>
<p><a href="http://my.trlong.com/downloads/BatConverter-alpha0.1.zip" rel="nofollow" target="_blank">BatConverter-alpha01.zip</a></p>
<div id="batconverter" style="margin: 3px; padding: 3px; text-align: center; float: left; width: 490px;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="490" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><embed type="application/x-shockwave-flash" width="490" height="300"></embed></object></div>
<p><script type="text/javascript">// <![CDATA[
var sd = new SWFObject('https://media.dreamhost.com/mediaplayer.swf','mpl','490','300','8');
sd.addParam('allowscriptaccess','always');
sd.addParam('allowfullscreen','true');
sd.addVariable('width','490');
sd.addVariable('height','300');
sd.addVariable('image','http://blog.trlong.com/wp-content/video_uploads/How to Configure and Use Bat Converter.jpg');
sd.addVariable('file','http://blog.trlong.com/wp-content/video_uploads/How to Configure and Use Bat Converter.flv');
sd.write('batconverter');
// ]]&gt;</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trlong.com/2010/10/bat-converter-alpha/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Make Your Own Web TV Show</title>
		<link>http://blog.trlong.com/2010/03/make-your-own-web-tv-show/</link>
		<comments>http://blog.trlong.com/2010/03/make-your-own-web-tv-show/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 02:29:34 +0000</pubDate>
		<dc:creator>Tom Long</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[blip.tv]]></category>
		<category><![CDATA[how to vlog]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[iTunes]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[vlog]]></category>
		<category><![CDATA[vlog tutorial]]></category>
		<category><![CDATA[vlogging]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://blog.trlong.com/?p=1352</guid>
		<description><![CDATA[Making a video web log is fairly simple in WordPress. 1 &#8211; Produce a Video The preferred format is an mp4 container with the AVC/H.264 video codec (mpg with the mpeg2 codec is second choice) and MP3 or AAC (needed &#8230; <a href="http://blog.trlong.com/2010/03/make-your-own-web-tv-show/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Making a video web log is fairly simple in WordPress.<br />
<strong> </strong></p>
<p><strong>1 &#8211; Produce a  Video</strong><br />
The preferred format is an mp4 container with the AVC/H.264  video codec (mpg with the mpeg2 codec is second choice) and MP3 or AAC  (needed for surround sound) audio codec.  This minimizes losses in the  video conversions that will be done by either your video host or  yourself.  The preferred resolution is 1920&#215;1080 (1080p) or 1280&#215;720,  but not greater than the resolution of the raw footage used to produce  the video.  Apple TV can display H.264 video, up to 5mbps, 1280&#215;720, 24  fps, Progressive Main Profile. Apple TV supports AAC-LC audio up to 320  Kbps. The gating factors for video are bit rate and frame rate.</p>
<p>We&#8217;ll  go into frame rates below, but minimize changes from the frame rate of  your source video.  There is no point (in fact there are losses) in  increasing the fps from 15 to 30 if the original footage was at 15 fps.   While the bitrate for audio can go as high as 48 kHz, YouTube prefers  44.1 kHz.</p>
<p><a id="ff9w" title="go here to learn more about iTunes and podcasts" href="http://www.apple.com/itunes/podcasts/specs.html">iTunes only  accepts</a> .m4a, .mp3, .mov, .mp4, .m4v, and .pdf so the fewer steps to  mp4 the better.  The iPod/iPhone/iTouch support 640&#215;480 while the Apple  TV supports 1280&#215;720.<br />
<span id="more-1352"></span><br />
<strong>2A &#8211; With An External Video Host</strong><br />
This  means that you show your YouTube, Vimeo, blip.tv, or metacafe video  embedded on your website.  It is easy and low risk.  Although typically  there will be some host branding, the players tend to be quite  attractive.  It also opens your show up to a broader audience that may  be searching for videos specifically on those sites.</p>
<p>Upload  the video from step one to the video host (YouTube, Vimeo, Blip.TV)</p>
<p>Now,  we&#8217;re going to juggle two browser windows.  I find this easier  (alt-tab) than switching between tabs.  In a new window create a new  blog post.</p>
<p>In the old window, customize and copy the embed code from  the video host.  Be sure the width of the video will fit comfortably in  the space available in your blog.</p>
<p>Alt-tab back to the new window  and paste the embed code into the blog post.</p>
<p><object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/HOCiZO9lOOg&#038;hl=en_US&#038;fs=1&#038;color1=0xe1600f&#038;color2=0xfebd01"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/HOCiZO9lOOg&#038;hl=en_US&#038;fs=1&#038;color1=0xe1600f&#038;color2=0xfebd01" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>
<div align="center"><font size=”2" color="#000100" face=”verdana” style="background-color:#FEBD01">| DOWNLOAD (or play) => | <a title="iPhone, iPad, iPod compatible" href="http://blog.trlong.com/wp-content/video_uploads/Embed-YouTube-Video-on-Your-WordPress-Blog.mp4">Apple iTunes MP4</a> | <a title="Ogg video" href="http://blog.trlong.com/wp-content/video_uploads/Embed-YouTube-Video-on-Your-WordPress-Blog.ogv">Open Format Video  |</a></font></div>
<p><br clear="all"><br />
If you can access your  mp4 or m4v source file on the host site copy the link to that file.   We&#8217;ll refer to this as the source video URL.  YouTube has a button to  download your mp4 but does not provide a URL.  (It can be had using a  tool like Video DownloadHelper but that is beyond the scope of this  post.)  blip.tv does provide a link to the mp4 file.</p>
<p>If you can&#8217;t  access your source file url on the host site upload the file to your  blog&#8217;s media library.  At the WordPress dashboard go to Media &#8211; Add  Media to upload the file.</p>
<p>Below your embed code create a  hyperlink to download the source video file using its url.  Save the  draft.  This generates an enclosure for the source code in the  hyperlink.  The enclosure has the URL of the file that the RSS feed  passes on to iTunes and other feed readers.  Your audience also has the  option to download the file for later use or viewing on an alternative  platform.</p>
<p><strong>2B &#8211; Self Hosting</strong><br />
Self hosting means that you  will control where your files are stored and how they are presented.   After you have produced your video, upload it to your server.  (Wait  till after, because it is really hard to upload a video that doesn&#8217;t  exist, right?)  Upload the file to your blog&#8217;s media library.  At the  WordPress dashboard go to Media &#8211; Add Media to upload the file.</p>
<p>Next  go to Media in the dashboard to open the media library.  Select your  new video and click &#8216;edit&#8217;.  Copy the link to that file.</p>
<p>When editing  one&#8217;s post, one can simply scroll down to the custom fields, select  enclosure as the custom field name, and paste the URL as the custom  field value.  Click the &#8216;Update&#8217; button.  In this way there is no direct  link in the post but iTunes will still provide the source video to  subscribers.</p>
<p><strong>3 &#8211;  Publish</strong></p>
<p>When you post your blog, your RSS2 feed will now include  the media in the enclosure.  The blog title will be the podcast title in  iTunes.  The video title will be the title of the specific episode.   iTunes captures a screen from the first frame of the video and uses that  as a thumbnail.  The blog description will be the podcast description.   The blog post text will be the episode description.</p>
<p>iTunes  appears to handle only the first enclosure if there is more than one  enclosure per post (to provide both an iPod and HD version, for  example).  My intention is to put the iPod version as the first  enclosure so that iTunes subscribers can sync the show to their iPods.   blip.tv appears to maintain my 1280&#215;720 resolution (a limitation of my  source video) so subscribers who go to the web site can see it in HD.</p>
<p><strong>I  don&#8217;t know</strong> if I can add the podcast image and other metadata  after  I register with iTunes or will need to use a plug-in in advance.  Their  guidelines only state that one can manually set the language, category,  and whether or not the content is explicit.  If not, the image can be  added using the Podcast Channels plug-in in WordPress.  The podPress  plug-in doesn&#8217;t seem to offer additional functionality to Podcast Channels.</p>
<p>To  see how your feed looks in iTunes, go to the Advanced menu and select  Add Podcast Feed and paste in your feed URL.  If all is well, your  podcast should appear in your library.  If not you may want to visit <a id="kyno" title="exhaustive detail on configuring your RSS feed for iTunes" href="http://www.apple.com/itunes/podcasts/specs.html">Apple&#8217;s  itunes specs</a>.</p>
<p><object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/-67MFGAyaKs&#038;hl=en_US&#038;fs=1&#038;color1=0xe1600f&#038;color2=0xfebd01"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/-67MFGAyaKs&#038;hl=en_US&#038;fs=1&#038;color1=0xe1600f&#038;color2=0xfebd01" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>
<div align="center"><font size=”2" color="#000100" face=”verdana” style="background-color:#FEBD01">| DOWNLOAD (or play) => | <a title="iPhone, iPad, iPod compatible" href="http://blog.trlong.com/wp-content/video_uploads/iTunes-Vodcast-Feed-Check.mp4">Apple iTunes MP4</a> | <a title="Ogg video" href="http://blog.trlong.com/wp-content/video_uploads/iTunes-Vodcast-Feed-Check.ogv">Open Format Video  |</a></font></div>
<p><br clear="all"><br />
<strong>4 &#8211; Tweak It<br />
</strong>There is little  uniformity in the way that your audience receives your video.  Some will  watch on a Zune others on an iTouch.  Some will watch it in their  browsers others will subscribe through iTunes.  Some will be on a Mac  using Safari and others on a PC using Internet Explorer.  Some users  have flash enabled and others don&#8217;t.  Plus the very language we use,  HTML, to create our blog or website is changing.</p>
<p>Let&#8217;s assume  that our mission is to reach the broadest audience we can as beautifully  as we can.  That means that we will need at least four versions of  every video.</p>
<ul>
<li>Our HD source video (see <strong>Step 1</strong>).   This is optimal for YouTube and other HD hosts.  It will also allow HD  viewing for Macs, Apple TV, and viewers using the Chrome browser without  flash.  Those on PCs without flash can download this for HD viewing.  I  use the Apple TV upper limit described above.  Apple TV may only be a  small part of the audience, but very few viewers of a vodcast will use a  screen larger than 32&#8243; so who will see the difference?  Besides that,  it is as good as my camera video anyway.</li>
</ul>
<ul>
<li>For the  iPod-iPad-iPhone-iTouch audience, as well as SD for Macs, Apple TV, and  viewers using the Chrome browser without flash:  The mp4 container with  an AVC/H.264 video codec and mp3 or AAC audio codec with a bitrate up to  1500 kbps, a resolution of 640&#215;480, and max frame rate of 30 frames per  second.  This is the one that goes in our post&#8217;s first enclosure.</li>
</ul>
<ul>
<li>For  the flash-capable browser set, we&#8217;ll need the flv container.  One may  even want an HD and an SD flash video option.  SD is better for  bandwidth and HD is prettier when bandwidth is not an issue for your  viewer.  Maybe I would go with HD if I could only choose one because  most folks have high speed connections.  On the other hand people aren&#8217;t  very patient about waiting for their video to load.  I think I&#8217;ll stick  with 720&#215;480.</li>
</ul>
<ul>
<li>For the non-flash users who have  Firefox and Opera browsers, we need the ogv container with the Theora  video codec and Vorbis audio codec.  I wish all browsers supported Ogg  because it is open source and open format with none of the H.264  licensing issues.  I also wish for world peace.</li>
</ul>
<p>It probably  goes without saying but generate each of those files directly from the  HD source video, not from one of the other formats, to minimize quality  losses.</p>
<p>This raises the issue of how to <em>present</em> these  choices.  The four videos above fall into two categories, flash and  HTML5 (non-flash).  When someone goes to view your vlog, you want them  to see your video, not have to hunt for it.  This can be done by <a id="yq4f" title="this post has the code needed ot make this happen" href="../2010/03/is-your-blog-ipad-ready/">starting with  the HTML5 video</a>, which I believe is clearly the wave of the future,  and degrading to a flash player.  Or it could be done by starting with  the flash player, in wide use today, and degrading to the HTML5 video.   Since today is today, I have opted to default to flash and degrade to  HTML5.  Also, HTML5 does not inherently include the ability to bring the  video to full screen, something I like about flash.</p>
<p>If you are  not hosting your own video, you will place your SD mp4 in the first  enclosure as discussed above.  It must, therefore, be the first of any  hyperlinks.  Remember iTunes only grabs the first enclosure so it should  be the one folks can sync with their handhelds.  But also provide links  to the other formats to offer maximum flexibility.  The biggest  audience goes straight to the flash player.  Everyone else is only one  click away from viewing the video.</p>
<p>Now, here is the special  advantage of hosting your own video.  Normally, within your java script  there is a link to get a flash player that only appears if the viewer  does not have access to flash.  Simply replace that sentence and its  hyperlink with links to the other videos.  Now, instead of an error  message to the non-flashers, links magically appear allowing them to  watch the video in one click.  Check out <a id="caq_" title="includes code to make this happen" href="../2010/03/flash-first-2/">my post</a> on this for the  details.  That post also shows how to put a poster of the video behind  the links so that your post page still has visual appeal.  It means that  the default flashers just click on the play button and the others just  click on their appropriate link.  Easy for everybody.</p>
<p>Well, this is the easy part.  Being creative?  That&#8217;s the challenge.  Feel free to share links to your vlogs in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trlong.com/2010/03/make-your-own-web-tv-show/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://blog.trlong.com/wp-content/video_uploads/Embed YouTube Video on Your WordPress Blog.mp4" length="" type="" />
<enclosure url="http://blog.trlong.com/wp-content/video_uploads/Embed-YouTube-Video-on-Your-WordPress-Blog.mp4" length="3603532" type="video/mp4" />
<enclosure url="http://blog.trlong.com/wp-content/video_uploads/Embed-YouTube-Video-on-Your-WordPress-Blog.ogv" length="5718727" type="video/ogg" />
<enclosure url="http://blog.trlong.com/wp-content/video_uploads/iTunes-Vodcast-Feed-Check.mp4" length="6672017" type="video/mp4" />
<enclosure url="http://blog.trlong.com/wp-content/video_uploads/iTunes-Vodcast-Feed-Check.ogv" length="12154092" type="video/ogg" />
		</item>
		<item>
		<title>Is Your Blog iPad Ready?</title>
		<link>http://blog.trlong.com/2010/03/is-your-blog-ipad-ready/</link>
		<comments>http://blog.trlong.com/2010/03/is-your-blog-ipad-ready/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 16:32:53 +0000</pubDate>
		<dc:creator>Tom Long</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.trlong.com/?p=1273</guid>
		<description><![CDATA[Distributing a video product can be very simple. I just shoot a video with my iPhone. Touch the share button. Touch the &#8216;Send to YouTube&#8217; button and I&#8217;m done. But if one wishes to produce a regular video program or &#8230; <a href="http://blog.trlong.com/2010/03/is-your-blog-ipad-ready/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><video controls width="490" height="402" poster="http://blog.trlong.com/wp-content/uploads/2010/03/demo-video-poster.jpg" preload><br />
<source src="http://blog.trlong.com/wp-content/uploads/2010/03/demo-video.ogv" type="video/ogg"></source><br />
<source src="http://blog.trlong.com/wp-content/uploads/2010/03/demo-video.mp4" type="video/mp4"></source><br />
   <object width="490" height="402" type="application/x-shockwave-flash"<br />
		data="https://media.dreamhost.com/mediaplayer.swf?image=http://blog.trlong.com/wp-content/uploads/2010/03/demo-video-poster.jpg&amp;file=http://blog.trlong.com/wp-content/uploads/2010/03/demo-video.flv"><param name="movie" value="https://media.dreamhost.com/mediaplayer.swf?image=http://blog.trlong.com/wp-content/uploads/2010/03/demo-video-poster.jpg&amp;file=http://blog.trlong.com/wp-content/uploads/2010/03/demo-video.flv" /><!-- fallback image --><br />
		<img src="http://blog.trlong.com/wp-content/uploads/2010/03/demo-video-poster.jpg" width="490" height="402" alt="demo-video-poster"<br />
		     title="No video playback capabilities, please download the video below" /><br />
   </object><br />
</video></p>
<p>Distributing a video product can be very simple. I just shoot a video with my iPhone. Touch the share button. Touch the &#8216;Send to YouTube&#8217; button and I&#8217;m done.</p>
<p>But if one wishes to produce a regular video program or include video elements in one&#8217;s web page or blog then distribute it to the general public things start to get a little more tricky. My wife has a Droid Eris which runs on Android. You may have an old version of Internet Explorer. (Please tell me you don&#8217;t.) Some of you have Macs which choke on about 75% of the web&#8217;s videos because they are in Flash. On top of everything else, like the iPhone, the new iPad won&#8217;t be able to handle Flash at all.  We could choose to curse the darkness (you fill in who you would blame), but it is dark so we need to light a candle if our web media is going to continue to be relevant into the future.</p>
<p>In addition to the variety of operating systems  or hardware one might have, there are many different browsers one might use. Oh, and there is a change in the HTML standard with regard to video coming down the pike as well. In anticipation, HTML5 has already been implemented in some form or another in most contemporary browsers.</p>
<p><span id="more-1273"></span>An extra challenge in making video forward compatible is that the HTML5 &lt;video&gt; tag standard codecs have not been determined.  <a title="read how they compare" href="http://arstechnica.com/open-source/news/2010/02/ogg-theora-vs-h264-head-to-head-comparisons.ars">Two top contenders are OGG and H.264.</a> OGG has no patents but it is performance deficient. H.264/MPEG-4 AVC has patents but is easily licensed (for a price) and is backed by Apple. I plan to kill the iPod-iPhone best-bet-on-forward-compatibility birds with the <em>H.264 video, up to 1.5 Mbps, 640 x 480, 30 frames per sec., Low-Complexity version of the Baseline Profile with AAC-LC audio up to 160 kbps, 48 Khz</em>, stereo audio in the &#8216;mp4&#8242; container (<a href="http://www.apple.com/itunes/podcasts/specs.html?#formattingvideo" target="_blank">per Apple</a>). Both Handbrake and FormatFactory can do this . <a title="click for full article on Opera 10.5" href="http://lifehacker.com/5483544/opera-105-final-for-windows-brings-the-speed?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+lifehacker%2Ffull+%28Lifehacker%29">Lifehacker</a> reports: &#8220;In terms of HTML5 and video, Opera has gone the way of Firefox, supporting native, Flash-free streams of the Ogg Theora format, but not H.264. Apple&#8217;s Safari supports only H.264, and Google Chrome supports both.&#8221; Mozilla has posted  <a title="click to see the Firefox html4 code tutorial" href="https://developer.mozilla.org/En/Using_audio_and_video_in_Firefox">explicit directions </a> for how to make media available for all browsers. Unfortunately, somebody needs to write the java script to generate the player. <a title="Sublime video" href="http://jilion.com/sublime/video">Sublime video</a> is working on this and has a prototype up at their website. They promise to provide it free for noncommercial use.</p>
<p>The question remains what can one do today? The good news is that if your OS-Browser combo (henceforth to be referred to as your client) can&#8217;t play the provided HTML5 video it ignores it. So, I will be providing code for HTML5 video in all cases.</p>
<p>Modifiers for the video tag include controls, preload, and autoplay. The default is not to autoplay so you can leave that out if you just want the video to start loading without playing. Preload=&#8221;none&#8221; is the default and does not need to be included . Here are a couple of examples from   <a title="Video  for  Everybody" href="http://camendesign.com/code/video_for_everybody">Video for Everybody</a>. The controls inherent to HTML5 (not modified with java script) are basic and don&#8217;t allow for moving to full screen. Fortunately, some browsers (thank you Firefox) make this available in the right-click menu.  The video will only be as big as will fit in the space provided by the width and height modifiers.</p>
<blockquote><p>&lt;video width=&#8221;320&#8243; height=&#8221;240&#8243; controls preload autoplay&gt;<br />
&lt;video width=&#8221;320&#8243; height=&#8221;240&#8243; controls preload=&#8221;none&#8221;&gt;</p></blockquote>
<p>But remember that the source video format depends on the client. The iPhone is even limited as to what the maximum resolution it can play will be. The approach that seems to be evolving on the web is to use the multiple source option for HTML5 video. The browser simply plays the first source that is compatible and ignores the others. Modifiers for the source include specifying the video and audio codecs and/or the container type. An example of using just the container type is given by <a title="Video for  Everybody" href="http://camendesign.com/code/video_for_everybody">Video for Everybody</a> (VfE). Here the first is for Firefox, Chrome, and Opera and the second allows the iPhone, iPad, Mac crowd to play and the last lets the non-&#8217;mov&#8217; browser play video in the &#8216;mp4&#8242; container.  I did not test this.</p>
<blockquote><p>&lt;source src=&#8221;video.ogv&#8221; type=&#8221;video/ogg&#8221;&gt;&lt;/source&gt;<br />
&lt;source src=&#8221;video.mov&#8221; type=&#8221;video/mp4&#8243;&gt;&lt;/source&gt;<br />
&lt;source src=&#8221;video-desktop.mp4&#8243; type=&#8221;video/mp4&#8243;&gt;&lt;/source&gt;</p></blockquote>
<p><a title="Video on the Web" href="http://diveintohtml5.org/video.html">Video on the Web</a> posts most of the parameters related to &lt;source&gt;. Here is their example of two video files with the optional container type and codecs specified. This speeds how quickly the client can reject an unplayable format which speeds load time:</p>
<blockquote><p>&lt;video width=&#8221;320&#8243; height=&#8221;240&#8243; controls&gt;<br />
&lt;source src=&#8221;NewOrleans2006.ogv&#8221; type=&#8217;video/ogg; codecs=&#8221;theora, vorbis&#8221;&#8216;&gt;<br />
&lt;source src=&#8221;NewOrleans2006.mp4&#8243; type=&#8217;video/mp4; codecs=&#8221;avc1.42E01E, mp4a.40.2&#8243;&#8216;&gt;&lt;/video&gt;</p></blockquote>
<p>But wouldn&#8217;t it be nice to offer Flash with its ability to go full screen with just a user click to those clients capable of doing so? (Please don&#8217;t rant about the security issues with Flash unless you are one of the few pure ones who live outside of the influence of YouTube, okay?) There appears to have been a lot of attention given to providing Flash as a last resort. This process is described as &#8220;degrading&#8221; to Flash. The filter works something like this.  If the client has a browser (Firefox, Chrome, and Opera) that can handle OGG, it plays the first source and skips everything else within the video tags.   If it is a Mac, iPhone, or iPad, it skips the first source and lands on a second source in a &#8216;mov&#8217; container. If the client is an iPhone or iPod it could play an alternate second source generated using QuickTime Pro. I&#8217;m lazy so I&#8217;m just going to have on H.264 source small enough that both Mac and iPhone (and presumably iPad) users can share. If one is watching on the web 640 px is plenty wide enough. If I didn&#8217;t have doubts about licensing issues I might reverse the OGG versus H.264 order. Finally, an object can be included within the video tags to provide ELSE actions if the client can&#8217;t play HTML5 video. In this scenario, the object is flash video. After studying the above sources, I adapted their code for my blog to illustrate their degradation algorithm using my own web host&#8217;s flash player. It starts OGG, then filters down to an iPhone file in a &#8216;mov&#8217; container, then degrades to flash. Since I&#8217;m not doing the QuickTime Pro deal, I use the &#8216;mp4&#8242; container instead of &#8216;mov&#8217;. Currently, this code has been demonstrated to degrade to flash on Internet Explorer 7. When using Opera 10.5, Chrome or Firefox, it plays the ogg file as HTML5 video. It switches to the &#8216;mov&#8217; HTML5 only on the iPhone. My display is broken on my iBook so I didn&#8217;t test with that. My wife&#8217;s Eris also handles this well.  The relevance of the lead in video is that it is written just like this.  (It appears that Firefox 3.5 does not display the poster image, but Firefox 3.6 does.  Otherwise the player seems the same.)</p>
<blockquote><p>&lt;video controls width=&#8221;560&#8243; height=&#8221;402&#8243; poster=&#8221;__Your_Full_Poster_Path__.jpg preload&gt;<br />
&lt;source src=&#8221;__Your_Full_Video_Path__.ogv&#8221; type=&#8221;video/ogg&#8221;&gt;&lt;/source&gt;<br />
&lt;source src=&#8221;__Your_Full_Video_Path__.mov&#8221; type=&#8221;video/mp4&#8243;&gt;&lt;/source&gt;<br />
&lt;object width=&#8221;560&#8243; height=&#8221;402&#8243; type=&#8221;application/x-shockwave-flash&#8221;<br />
data=&#8221;__Your_Flash_Players_Full_Path__.swf?image=__Your_Full_Poster_Path__.jpg&amp;amp;file=__Your_Full_Video_Path__.flv&#8221;&gt;   &lt;param name=&#8221;movie&#8221; value=&#8221;__Your_Flash_Players_Full_Path__.swf?image=__Your_Full_Poster_Path__.jpg&amp;amp;file=<span style="font-family: courier new;">__Your_Full_Video_Path__&#8221; /&gt;<br />
&lt;!&#8211; fallback image &#8211;&gt;<br />
&lt;img src=&#8221;__Your_Full_Poster_Path__.jpg&#8221; width=&#8221;560&#8243; height=&#8221;402&#8243; alt=&#8221;__Your_Video_Title__&#8221;   title=&#8221;No video playback capabilities&#8221; /&gt;<br />
&lt;/object&gt;<br />
&lt;/video&gt; </span></p></blockquote>
<p>One little caveat for you WordPress posters.  If you switch in the online editor from HTML to Visual view the editor will happily foul up all this wonderful code.  Stay in HTML view till you publish and you&#8217;ll be just fine.  We&#8217;ve only scratched the surface of this topic so here are some links to the places I went to to get to this point.  Hope you find this all helpful.</p>
<p><strong>Useful Resources: </strong><br />
<a title="a ground up explanation of the topic - start here" href="http://diveintohtml5.org/video.html">Video on the Web</a><br />
<a title="click for a thorough and detailed treatment of the subject - intermediate level" href="http://camendesign.com/code/video_for_everybody">Video for Everybody</a><br />
<a title="click for an example of an HTML5 player optimized with java - sweet" href="http://jilion.com/sublime/video">Sublime Video</a><br />
<a title="more advanced coders click to see the Mozilla code tutorial" href="https://developer.mozilla.org/En/Using_audio_and_video_in_Firefox">Mozilla on HTML5</a><br />
<a title="click for full article on Opera 10.5" href="http://lifehacker.com/5483544/opera-105-final-for-windows-brings-the-speed?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+lifehacker%2Ffull+%28Lifehacker%29">Lifehacker on Opera 10.5</a><br />
<a title="click to see a head to head comparison of OGG-Theora and H264" href="http://arstechnica.com/open-source/news/2010/02/ogg-theora-vs-h264-head-to-head-comparisons.ars">arstechnica</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trlong.com/2010/03/is-your-blog-ipad-ready/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://blog.trlong.com/wp-content/uploads/2010/03/demo-video.mp4" length="" type="" />
<enclosure url="http://blog.trlong.com/wp-content/uploads/2010/03/demo-video.ogv" length="1495928" type="video/ogg" />
<enclosure url="http://blog.trlong.com/wp-content/uploads/2010/03/demo-video.flv" length="1197740" type="video/x-flv" />
		</item>
	</channel>
</rss>

