<?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>Simon Whatley &#187; video</title>
	<atom:link href="http://www.simonwhatley.co.uk/tag/video/feed" rel="self" type="application/rss+xml" />
	<link>http://www.simonwhatley.co.uk</link>
	<description>The opposite of every great idea is another great idea</description>
	<lastBuildDate>Wed, 02 Nov 2011 09:28:34 +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>Mark Pilgrim &#8211; A Gentle Introduction to Video Encoding: Constraints</title>
		<link>http://www.simonwhatley.co.uk/mark-pilgrim-a-gentle-introduction-to-video-encoding-constraints</link>
		<comments>http://www.simonwhatley.co.uk/mark-pilgrim-a-gentle-introduction-to-video-encoding-constraints#comments</comments>
		<pubDate>Fri, 14 Oct 2011 09:00:05 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Audio codecs]]></category>
		<category><![CDATA[Codec]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[Flash Video]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mark Pilgrim]]></category>
		<category><![CDATA[Ogg]]></category>
		<category><![CDATA[Real Networks]]></category>
		<category><![CDATA[Theora]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[Video codecs]]></category>
		<category><![CDATA[web video market]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=4811</guid>
		<description><![CDATA[I had lunch with my father the other day, and I explained this series as well as I could to someone who didn't start programming when he was 11. His immediate reaction was, "Why are there so many different formats? Why can't everybody just agree on a single format? It is political, or technical, or both?" The short answer is, it's both. The history of video in any medium — and especially since the explosion of amateur digital video — has been marred by a string of companies who wanted to use container formats and video codecs as tools to lock content producers and content consumers into their little fiefdoms. Own the format, own the future. And when I say "history" — well, it's still going on.]]></description>
			<content:encoded><![CDATA[<p><strong>This article was first published on 8th January 2009, on Mark Pilgrim&#8217;s website. That website no longer exists so this article serves as an historical record. I have preserved all emphasis and links as per the original article.</strong></p>
<p>I had lunch with my father the other day, and I explained this series as well as I could to someone who didn&#8217;t start programming when he was 11. His immediate reaction was, &#8220;Why are there so many different formats? Why can&#8217;t everybody just agree on a single format? It is political, or technical, or both?&#8221; The short answer is, it&#8217;s both. The history of video in any medium — and especially since the explosion of amateur digital video — has been marred by a string of companies who wanted to use container formats and video codecs as tools to lock content producers and content consumers into their little fiefdoms. Own the format, own the future. And when I say &#8220;history&#8221; — well, it&#8217;s still going on. Tried to play a Windows Media Video on Mac OS X lately? The <a href="http://www.telestream.net/flip4mac-wmv/overview.htm" title="Codec and container support" target="_blank" rel="nofollow">codec and container support is out there</a>, but it&#8217;s not baked in. Want to watch <a href="http://www.apple.com/trailers/" title="Movie trailers on Apple.com" target="_blank" rel="nofollow">movie trailers on Apple.com</a>? Please install QuickTime. And so forth and so on. The only thing that was pre-installed on both platforms was Flash, so when a few startups dipped their toes into the Internet video waters, the ones that used Flash Video won despite it being an objectively inferior codec. (Some revision of Flash 9 added support for H.264 video, AAC audio, and the MP4 container, which is what <a href="http://www.youtube.com/browse?s=mphd&#038;c=0&#038;l=&#038;b=0" title="YouTube HD" target="_blank" rel="nofollow">YouTube HD</a> uses.)</p>
<p>So that&#8217;s the politics. But there are also technical barriers. As with all engineering, video encoding is primarily about constraints. I can think of 10 just off the top of my head:</p>
<ol>
<li><strong>CPU capacity for decoding and playing in real time</strong>. This is one of the most important constraints, since <em>video is meant to be watched in real time</em>. That sounds simple, but it&#8217;s incredibly complex. Every video you&#8217;ve ever watched in your entire life had to be decoded and played in real time. Otherwise it stutters and the viewing experience sucks. And we&#8217;re talking about video here; if the viewing experience sucks, there&#8217;s nothing left. Some codecs are just more complex than others, and that translates into higher system requirements to decode videos in real time. As I&#8217;ve mentioned before, some codecs are now decoded by specialized hardware. iPhones have a little chip inside them that understands H.264 Baseline Profile; without that, the iPhone would need a Core 2 Duo processor to play movies, and it would have a battery life of 10 minutes.</li>
<li><strong>Codec compatibility</strong>. Normal people won&#8217;t download codecs or plug-ins just to watch a dog on a skateboard, or even to watch a trailer for a $100 million blockbuster. (Sadly, they <em>will</em> download plug-ins for porn, but those are invariably trojan horses. Or so I&#8217;ve read. Moving on&#8230;) The phone in your pocket can probably play AMR ringtones, maybe MP3 ringtones, but probably not Vorbis ringtones (unless you have an Android phone) — and you probably couldn&#8217;t download new codecs even if you wanted to (which, I must reiterate, nobody wants to). Apple and Real Networks tried for <em>years</em> to corner the web video market, but 99% of schmucks with a browser have Flash, so Flash video won on the web. Meanwhile, Firefox 3.1 will ship with support for the <code>&lt;video&gt;</code> element but will only support Theora and Vorbis in an Ogg container — even if your underlying operating system ships with other codecs.</li>
<li><strong>CPU capacity for encoding</strong>. Encoding takes a long time. Taking my home movie from iMovie to a DVD used to take 8 hours on a Powerbook G4 laptop. These days you can rip a DVD movie with Xvid in 30 minutes, or you can rip it with a more complex codec with all optional features turned on, and maybe it&#8217;ll still take 8 hours. It&#8217;ll look better, but will it look 16 times better? If you&#8217;re only doing it once, maybe you don&#8217;t care. If you&#8217;re running YouTube and people are uploading 13 hours of video every minute, maybe you do. CPU cycles aren&#8217;t free; at that scale, they&#8217;re not even cheap. (That&#8217;s a real statistic, by the way; I got it from the page on the Google intranet entitled &#8220;What can we tell non-Googlers?&#8221; and it&#8217;s accurate as of September 2008.)</li>
<li><strong>Acceptable delay between recording and delivery</strong>. In my own experience, videos I&#8217;ve uploaded on YouTube are available within minutes, which is just mind-boggling when you consider the volume. If you&#8217;re re-encoding a live stream, even a few minutes delay is probably unacceptable. That means you&#8217;ll need a faster encoder, a less complex codec, or lower quality settings.</li>
<li><strong>Audience size</strong>. It&#8217;s not a big secret that lots of video on the Internet looks like crap. Partly that&#8217;s because the video uploader uploaded crappy video, but it&#8217;s also because most Internet videos are only watched by a few people, and it&#8217;s just not a worthwhile tradeoff to spend 8 hours re-encoding it. On the other hand, if you&#8217;re mastering a DVD that&#8217;ll get sold to 10 million people, you&#8217;ll probably use higher quality settings.</li>
<li><strong>Screen dimensions</strong>. DVDs can&#8217;t store high-def 1920 x 1080 video because the standard doesn&#8217;t allow for it, which makes perfect sense because it was designed around the screen resolution of standard-def TVs. Blu-Ray ups the limit, but there&#8217;s still a limit. Screen sizes vary more for PC video, but there will always be practical upper limits depending on your audience.</li>
<li><strong>My bandwidth</strong>. If you&#8217;re streaming or downloading video, some percentage of your audience is probably living in a third-world country like the United States, with limited broadband access, slow speeds, and monthly bandwidth caps. Larger file size = longer wait to play = fewer videos watched overall.</li>
<li><strong>Your bandwidth</strong>. Obviously every bit I download is a bit that you upload, and bandwidth ain&#8217;t free either. &#8220;When I get a little money I buy bandwidth; and if any is left I buy food and clothes.&#8221; Or something like that.</li>
<li><strong>Hard limits on storage size</strong>. As I mentioned before, physical media has upper limits on total size. Commercial DVDs can hold upwards of 9 GB, which seems like a lot but really isn&#8217;t. Blu-Ray maxes out at 50 GB, which seems like a lot but really isn&#8217;t.</li>
<li><strong>Patents / licensing costs</strong>. Did I mention that most popular video codecs are patent-encumbered? This is why <a href="http://commons.wikimedia.org/wiki/Commons:Media_help" title="Wikimedia uses Theora exclusively" target="_blank" rel="nofollow">Wikimedia uses Theora exclusively</a>, and why Firefox can ship a native Theora decoder and but won&#8217;t ever ship H.264.</li>
</ol>
<p>&#8230;and that&#8217;s the short list.</p>
<p>All of which leads me to the Zen of video encoding, which is this:</p>
<p>There is no right or wrong. There is only what works and what doesn&#8217;t.</p>
<p>If you can find even one combination of tools, delivery devices, and target platforms that satisfies your constraints and still accomplishes your goals, congratulations. You&#8217;re ahead of 99% of the people who&#8217;ve tried.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonwhatley.co.uk/mark-pilgrim-a-gentle-introduction-to-video-encoding-constraints/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mark Pilgrim &#8211; A Gentle Introduction to Video Encoding: Captioning</title>
		<link>http://www.simonwhatley.co.uk/mark-pilgrim-a-gentle-introduction-to-video-encoding-captioning</link>
		<comments>http://www.simonwhatley.co.uk/mark-pilgrim-a-gentle-introduction-to-video-encoding-captioning#comments</comments>
		<pubDate>Thu, 13 Oct 2011 09:00:41 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[accessible online video]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[assistive technology]]></category>
		<category><![CDATA[AVI]]></category>
		<category><![CDATA[Container formats]]></category>
		<category><![CDATA[DirectShow-based video player]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[HDMI]]></category>
		<category><![CDATA[Joe Clark]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mark Pilgrim]]></category>
		<category><![CDATA[Microsoft Corporation]]></category>
		<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[MPEG]]></category>
		<category><![CDATA[MPEG-4]]></category>
		<category><![CDATA[MPEG-4 Part 17]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[SAMI]]></category>
		<category><![CDATA[SMIL]]></category>
		<category><![CDATA[SubRip]]></category>
		<category><![CDATA[SubStation Alpha]]></category>
		<category><![CDATA[Subtitle]]></category>
		<category><![CDATA[Subtitling]]></category>
		<category><![CDATA[SubViewer]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[video player]]></category>
		<category><![CDATA[VSFilter]]></category>
		<category><![CDATA[YouTube]]></category>
		<category><![CDATA[YouTube Inc]]></category>

		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=4809</guid>
		<description><![CDATA[The first thing you need to know about captions and subtitles is that captions and subtitles are different. The second thing you need to know about captions and subtitles is that you can safely ignore the differences unless you're creating your own from scratch. I'm going to use the terms interchangeably throughout this article, which will probably drive you crazy if you happen to know and care about the difference.]]></description>
			<content:encoded><![CDATA[<p><strong>This article was first published on 7th January 2009, on Mark Pilgrim&#8217;s website. That website no longer exists so this article serves as an historical record. I have preserved all emphasis and links as per the original article.</strong></p>
<p>The first thing you need to know about captions and subtitles is that <a href="http://joeclark.org/access/captioning/bpoc/ST.html" title="Captions and subtitles are different" target="_blank" rel="nofollow">captions and subtitles are different</a>. The second thing you need to know about captions and subtitles is that you can safely ignore the differences unless you&#8217;re creating your own from scratch. I&#8217;m going to use the terms interchangeably throughout this article, which will probably drive you crazy if you happen to know and care about the difference.</p>
<p>Historically, captioning has been driven by the needs of deaf and hearing impaired consumers, and captioning technology has been designed around <a href="http://en.wikipedia.org/wiki/Closed_captioning#Television_and_video" title="The technical quirks of broadcast television" target="_blank" rel="nofollow">the technical quirks of broadcast television</a>. In the United States, so-called &#8220;<a href="http://main.wgbh.org/wgbh/pages/mag/services/captioning/faq/" title="Closed captions" target="_blank" rel="nofollow">closed captions</a>&#8221; are embedded into a part of the NTSC video source (&#8220;Line 21&#8243;) that is normally outside the viewing area on televisions. In Europe, they use a completely different system that is embeddable in the PAL video source. Over time, each new medium (VHS, DVD, and now online digital video) has dealt a blow to the accessibility gains of the previous medium. For example:</p>
<ul>
<li>PAL VHS tapes did not have enough bandwidth to store closed captions at all.</li>
<li>DVDs have the technical capability, but producers often manage to screw it up anyway; e.g. DVDs of low-budget television shows are often released without the closed captions that accompanied the original broadcast.</li>
<li>HDMI cables drop &#8220;Line 21&#8243; closed captions altogether. If you play an NTSC DVD on an HDTV over HDMI, you&#8217;ll never see the closed captions, even if the DVD has them.</li>
</ul>
<p>And <a href="http://joeclark.org/book/sashay/serialization/Chapter13.html" title="Accessible online video is hopeless" target="_blank" rel="nofollow">accessible online video is just fucking hopeless</a>. (And no, it won&#8217;t change <a href="http://www.alistapart.com/articles/thisishowthewebgetsregulated/" title="Unless new regulation forces a change" target="_blank" rel="nofollow">unless new regulation forces it to change</a>. When it comes to captioning, Joe Clark has been right longer than many of you have been alive.)</p>
<p>So even in broadcast television, captioning technology was fractured by different broadcast technologies in different countries. Digital video had the capability of unifying the technologies and learning from their mistakes. Of course, exactly the opposite happened. Early caption formats split along company lines; each major video software platform (RealPlayer, QuickTime, Windows Media, Adobe Flash) implemented captioning in their own way, with levels of adoption ranging from nil to zilch. At the same time, an entire subculture developed around &#8220;<a href="http://en.wikipedia.org/wiki/Fansub" title="Wikipedia: Fan-subbing" target="_blank" rel="nofollow">fan-subbing</a>,&#8221; i.e. using captioning technology to provide translations of foreign language videos. For example, non-Japanese-speaking consumers wanted to watch Japanese anime films, so amateur translators stepped up to publish their own English captions that could be overlaid onto the original film. In the 1980s, fansubbers would actually take VHS tapes and overlay the English captions onto a new tape, which they would then (illegally) distribute. Nowadays, translators can simply publish their work on the Internet as a standalone file. English-speaking consumers can have their DVDs shipped directly from Japan, and they use software players that can overlay standalone English caption files while playing their Japanese-only DVDs. The legality of distributing these unofficial translations (even separately, in the form of standalone caption files) <a href="http://www.nytimes.com/2005/08/21/arts/21solo.html" target="_blank" rel="nofollow">has been disputed in recent years</a>, but the fansubbing community persists.</p>
<p>Technically, there is a lot of variation in captioning formats. At their core, captions are a combination of text to display, start and end times to display it, information about where to position the text on a screen, fonts, styling, alignment, and so on. Some captions roll up from the bottom of the screen, others simply appear and disappear at the appropriate time. Some caption formats mandate where each caption should be placed and how it should be styled; others merely suggest position and styling; others leave all display attributes entirely up to the player. Almost every conceivable combination of these variables has been tried. Some forms of media try multiple combinations at once. DVDs, for example, can have two entirely distinct forms of captioning — closed captioning (as used in NTSC broadcast television) embedded in the video stream, and one or more subtitle tracks. DVD subtitle tracks are used for many different things, including subtitles (just the words being spoken, in the same language as the audio), captions for the hearing impaired (which include extra notations of background noises and such), translations into other languages, and director&#8217;s commentary. Oh, and they&#8217;re stored on the DVD as images, not text, so the end user has no control over fonts or font size.</p>
<p>Beyond DVDs, most caption formats store the captions as text, which inevitably raises the issue of character encoding. Some caption formats explicitly specify the character encoding, others only allow UTF-8, others don&#8217;t specify any encoding at all. On the player side, most players respect the character encoding if present (but may only support specific encodings); in its absence, some players assume UTF-8, some guess the encoding, and some allow the user to override the encoding. Obviously standalone caption files can be in any format, but if you want to embed your captions as a track within a video container, your choices are limited to the caption formats that the video container supports.</p>
<p>And remember when I said that there were a metric fuck-ton of audio codecs? Forget that. There are an imperial fuck-ton of caption formats (i.e. multiply by 9/5 and add 32). Here is a partial list of caption formats, taken from the list of formats supported by <a href="http://www.urusoft.net/products.php?cat=sw" title="Subtitle Workshop" target="_blank" rel="nofollow">Subtitle Workshop</a>, which I used to caption my short-lived video podcast series:</p>
<p>Adobe Encore DVD, Advanced SubStation Alpha, AQTitle, Captions 32, Captions DAT, Captions DAT Text, Captions Inc., Cheetah, CPC-600, DKS Subtitle Format, DVD Junior, DVD Studio Pro, DVD Subtitle System, DVDSubtitle, FAB Subtitler, IAuthor Script, Inscriber CG, JACOSub 2.7+, Karaoke Lyrics LRC, Karaoke Lyrics VKT, KoalaPlayer, MacSUB, MicroDVD, MPlayer, MPlayer2, MPSub, OVR Script, Panimator, Philips SVCD Designer, Phoenix Japanimation Society, Pinnacle Impression, PowerDivX, PowerPixel, QuickTime Text, RealTime, SAMI Captioning, Sasami Script, SBT, Sofni, Softitler RTF, SonicDVD Creator, Sonic Scenarist, Spruce DVDMaestro, Spruce Subtitle File, Stream SubText Player, Stream SubText Script, SubCreator 1.x, SubRip, SubSonic, SubStation Alpha, SubViewer 1.0, SubViewer 2.0, TMPlayer, Turbo Titler, Ulead DVD Workshop 2.0, ViPlay Subtitle File, ZeroG.</p>
<p>Which of these formats are important? The answer will depend on whom you ask, and more specifically, how you&#8217;re planning to distribute your video. This series is primarily focused on videos delivered as files to be played on PCs or other computing devices, so my choices here will reflect that. These are some of the most well-supported caption formats:</p>
<ul>
<li>SubRip</li>
<li>SubStation Alpha</li>
<li>MPEG-4 Timed Text</li>
<li>SAMI</li>
<li>SMIL</li>
</ul>
<h3>SubRip</h3>
<p><a href="http://en.wikipedia.org/wiki/SubRip" title="Wikipedia: SubRip" target="_blank" rel="nofollow">SubRip</a> is the AVI of caption formats, in the sense that its basic functionality is supported everywhere but various people have tried to extend it in mostly incompatible ways and the result is a huge mess. As a standalone file, SubRip captions are most commonly seen with a <code>.srt</code> extension. SubRip is a text-based format which can include font, size, and position information, as well as a limited set of HTML formatting tags, although most of these features are <a href="http://ale5000.altervista.org/subtitles.htm" target="_blank" rel="nofollow">poorly supported</a>. Its &#8220;official&#8221; specification is <a href="http://forum.doom9.org/showthread.php?p=470941#post470941" title="doom9 post from 2004" target="_blank" rel="nofollow">a doom9 forum post from 2004</a>. Most players assume that .srt files are encoded in Windows-1252 (what Windows programs frequently call &#8220;ANSI&#8221;), although some can detect and switch to UTF-8 encoding automatically.</p>
<p>Because <code>.srt</code> files are so often <a href="http://www.opensubtitles.org/en" title="Open Subtitles" target="_blank" rel="nofollow">published</a> separately from the video files they describe, the most common use case is to put your <code>.srt</code> file in the same directory as your video file and give them the same name (up to the file extensions). But it is also possible to embed SubRip captions directly into AVI files with <a href="http://www.alexander-noe.com/video/amg/" title="AVI-Mux GUI" target="_blank" rel="nofollow">AVI-Mux GUI</a>, into MKV files with <a href="http://www.bunkus.org/videotools/mkvtoolnix/doc/mkvmerge-gui.html" title="mkvmerge tool" target="_blank" rel="nofollow">mkvmerge</a>, and into MP4 files with <a href="http://gpac.sourceforge.net/packager.php" title="MP4Box" target="_blank" rel="nofollow">MP4Box</a>.</p>
<p>You can play SubRip captions in Windows Media Player or other DirectShow-based video players after installing <a href="http://www.videohelp.com/tools/VSFilter_DirectVobSub" title="VSFilter" target="_blank" rel="nofollow">VSFilter</a>; in QuickTime after installing <a href="http://www.perian.org/" title="Perian" target="_blank" rel="nofollow">Perian</a>; on Linux, both <a href="http://www.mplayerhq.hu/DOCS/HTML/en/index.html" title="mplayer" target="_blank" rel="nofollow">mplayer</a> and <a href="http://www.videolan.org/vlc/" title="VLC" target="_blank" rel="nofollow">VLC</a> support it natively.</p>
<h3>SubStation Alpha</h3>
<p><a href="http://en.wikipedia.org/wiki/SubStation_Alpha" title="Wikipedia: SubStation Alpha" target="_blank" rel="nofollow">SubStation Alpha</a> and its successor, Advanced SubStation Alpha, are the preferred caption formats of the fansubbing community. As standalone files, they are commonly seen with <code>.ssa</code> or <code>.ass</code> extensions. They have <a href="http://www.matroska.org/technical/specs/subtitles/ssa.html" target="_blank" rel="nofollow">a spec longer than three paragraphs</a>. They are actually miniature scripting languages. A <code>.ass</code> file contains a series of commands to control position, scrolling, animation, font, size, scaling, letter spacing, borders, text outline, text shadow, alignment, and so on; and a series of time-coded events for displaying text given the current styling parameters. It has support for multiple character encodings.</p>
<p>The playing requirements for SubStation Alpha captions are almost identical to SubRip. The same plugins are required for Windows and Mac OS X. On Linux, mplayer prides itself on having the most complete SSA/ASS implementation.</p>
<h3>MPEG-4 Timed Text</h3>
<p>a.k.a. &#8220;MPEG-4 Part 17,&#8221; a.k.a. <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=39478" title="ISO 14496-17" target="_blank" rel="nofollow">ISO 14496-17</a>, <a href="http://en.wikipedia.org/wiki/MPEG-4_Part_17" title="Wikipedia: MPEG-4 Timed Text" target="_blank" rel="nofollow">MPEG-4 Timed Text</a> (hereafter &#8220;MP4TT&#8221;) is the one and only caption format for the MP4 container. It is not a file format; it is only defined in terms of a track within an MP4 container. As such, it can not be embedded in any other video container, and it can not exist as a separate file. (Note: the last sentence was a lie; the MPEG-4 Timed Text format is really the 3GPP Timed Text format, and it can very much be embedded in a 3GPP container. What I meant to say is that the format can not be embedded in any of the other popular video container formats like AVI, MKV, or OGG. I could go on about the subtle differences between MPEG-4 Timed Text in an MP4 container and 3GPP Timed Text in a 3GPP container, but it would just make you cry, and besides, technical accuracy is for pussies.)</p>
<p>MP4TT defines detailed information on text positioning, fonts, styles, scrolling, and text justification. These details are encoded into the track at authoring time, and can not be changed by the end user&#8217;s video player. The most readable description of its features is actually the <a href="http://gpac.sourceforge.net/doc_ttxt.php" title="Documentation for GPAC" target="_blank" rel="nofollow">documentation for GPAC</a>, an open source implementation of much of the MPEG-4 specification (including MP4TT). Since MP4TT doesn&#8217;t define a text-based serialization, GPAC invented one for their own use; since their format is designed to capture all the possible information in an MP4TT track, it turns out to be an easy way to read about all of MP4TT&#8217;s features.</p>
<p><a href="http://gpac.sourceforge.net/packager.php" title="MP4Box" target="_blank" rel="nofollow">MP4Box</a>, part of the GPAC project, can take an <code>.srt</code> file and convert it into a MPEG-4 Timed Text track and embed it in an existing MP4 file. It can also reverse the process — extract a Timed Text track from an MP4 file and output a <code>.srt</code> file.</p>
<p>On Mac OS X, QuickTime supports MP4TT tracks within an MP4 container, but only if you rename the file from <code>.mp4</code> to <code>.3gp</code> or <code>.m4v</code>. I shit you not. (On the plus side, changing the file extension will allow you to sync compatible video to an iPod or iPhone, which will actually display the captions. Still not kidding.) On Windows, any DirectShow-based video player (such as Windows Media Player or <a href="http://sourceforge.net/project/showfiles.php?group_id=205650" title="Media Player Classic" target="_blank" rel="nofollow">Media Player Classic</a>) supports MP4TT tracks once you install <a href="http://haali.cs.msu.ru/mkv/" title="Haali Media Splitter" target="_blank" rel="nofollow">Haali Media Splitter</a>. On Linux, VLC has supported MP4TT tracks for several years.</p>
<h3>SAMI</h3>
<p><a href="http://en.wikipedia.org/wiki/SAMI" title="SAMI" target="_blank" rel="nofollow">SAMI</a> was Microsoft&#8217;s first attempt to create a captioning format for PC video files (as opposed to broadcast television or DVDs). As such, it is natively supported by Microsoft video players, including Windows Media Player, without the need for third-party plugins. It has a <a href="http://msdn.microsoft.com/en-us/library/ms971327.aspx" title="Specification on MSDN" target="_blank" rel="nofollow">specification on MSDN</a>. It is a text-based format that supports a large subset of HTML formatting tags. SAMI captions are almost always embedded in an ASF container, along with Windows Media video and Windows Media audio.</p>
<p>Don&#8217;t use SAMI for new projects; it has been superceded by <a href="http://en.wikipedia.org/wiki/Synchronized_Multimedia_Integration_Language" title="Wikipedia: Synchronised Multimedia Integration Language (SMIL)" target="_blank" rel="nofollow">SMIL</a>. For historical purposes, you may enjoy reading about <a href="http://www.webaim.org/techniques/captions/windows/" title="Creating SAMI captions" target="_blank" rel="nofollow">creating SAMI captions and embedding them in an ASF container</a>, as long as you promise to never, ever try it at home.</p>
<h3>SMIL</h3>
<p><a href="http://en.wikipedia.org/wiki/Synchronized_Multimedia_Integration_Language" title="Wikipedia: Synchronised Multimedia Integration Language (SMIL)" target="_blank" rel="nofollow">SMIL</a> (Synchronized Multimedia Integration Language) is not actually a captioning format. It is &#8220;an XML-based language that allows authors to write interactive multimedia presentations.&#8221; It also happens to have a <a href="http://www.w3.org/TR/SMIL3/smil-timing.html" title="Timing and synchronisation module" target="_blank" rel="nofollow">timing and synchronization module</a> that can, in theory, be used to display text on a series of moving pictures. That is to say, if you think of SMIL as a way to provide captions for a video, you&#8217;re doing it wrong. You need to invert your thinking — your video and your captions are each merely components of a SMIL presentation. SMIL captions are not embedded into a video container; the video and its captions are referenced from a SMIL document.</p>
<p>SMIL is <a href="http://www.w3.org/AudioVideo/" title="W3C Standard" target="_blank" rel="nofollow">a W3C standard</a>; the most recent revision, <a href="http://www.w3.org/TR/SMIL3/" title="SMIL 3.0" target="_blank" rel="nofollow">SMIL 3.0</a>, was just published in December 2008. If you printed out the SMIL 3.0 specification on US-Letter-sized paper, it would weigh in at 395 pages. So don&#8217;t do that.</p>
<p>QuickTime supports a <a href="http://developer.apple.com/documentation/QuickTime/IQ_InteractiveMovies/quicktimeandsmil/chapter_10_section_1.html" title="Subset of SMIL 1.0" target="_blank" rel="nofollow">subset of SMIL 1.0</a>. WebAIM provides a nice <a href="http://www.webaim.org/techniques/captions/quicktime/" title="Tutorial on using SMIL to add captions to a QuickTime movie" target="_blank" rel="nofollow">tutorial on using SMIL to add captions to a QuickTime movie</a>.</p>
<p><strong>Further reading</strong></p>
<ul>
<li><a href="http://joeclark.org/book/sashay/serialization/Chapter13.html" title="Multimedia Accessibility" target="_blank" rel="nofollow">Multimedia Accessibility</a> (Joe Clark)</li>
<li><a href="http://www.webaim.org/techniques/captions/" title="Web Captioning Overview" target="_blank" rel="nofollow">Web Captioning Overview</a> (WebAIM)</li>
<li><a href="http://www.afterdawn.com/guides/archive/subtitle_formats_explained.cfm" title="Subtitle formats explained" target="_blank" rel="nofollow">Subtitle formats explained</a> (AfterDawn)</li>
<li><a href="http://www.opensubtitles.org/en/downloads" title="How to play subtitles" target="_blank" rel="nofollow">How to play subtitles</a> (OpenSubtitles)</li>
<li><a href="http://en.wikipedia.org/wiki/Subtitle_%28captioning%29" title="Wikipedia: Subtitle captioning" target="_blank" rel="nofollow">Subtitle (captioning)</a></li>
<li><a href="http://en.wikipedia.org/wiki/Closed_captioning" title="Wikipedia: Closed captioning" target="_blank" rel="nofollow">Closed captioning</a></li>
<li><a href="http://forum.doom9.org/showthread.php?t=62723" title="MP4 FAQ" target="_blank" rel="nofollow">MP4 FAQ</a> (doom9)</li>
<li><a href="http://help.youtube.com/support/youtube/bin/answer.py?answer=100077&#038;cbid=-evuehvvzg96r&#038;src=cb&#038;lev=answer" title="Adding and editing YouTube captions" target="_blank" rel="nofollow">Adding/editing captions on YouTube videos</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.simonwhatley.co.uk/mark-pilgrim-a-gentle-introduction-to-video-encoding-captioning/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mark Pilgrim &#8211; A Gentle Introduction to Video Encoding: Lossy Audio Codecs</title>
		<link>http://www.simonwhatley.co.uk/mark-pilgrim-a-gentle-introduction-to-video-encoding-lossy-audio-codecs</link>
		<comments>http://www.simonwhatley.co.uk/mark-pilgrim-a-gentle-introduction-to-video-encoding-lossy-audio-codecs#comments</comments>
		<pubDate>Wed, 12 Oct 2011 09:00:18 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[AMR]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Audio codecs]]></category>
		<category><![CDATA[Audio file format]]></category>
		<category><![CDATA[AVI]]></category>
		<category><![CDATA[codecs]]></category>
		<category><![CDATA[Digital Theater System]]></category>
		<category><![CDATA[Dolby Digital]]></category>
		<category><![CDATA[Dolby Laboratories]]></category>
		<category><![CDATA[DTS]]></category>
		<category><![CDATA[DTS Inc .]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[lossless]]></category>
		<category><![CDATA[lossy]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mark Pilgrim]]></category>
		<category><![CDATA[MP3]]></category>
		<category><![CDATA[MPEG-1]]></category>
		<category><![CDATA[Musepack]]></category>
		<category><![CDATA[natively decoding core DTS]]></category>
		<category><![CDATA[Ogg]]></category>
		<category><![CDATA[PBX]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[Vorbis]]></category>
		<category><![CDATA[Windows Media Audio]]></category>
		<category><![CDATA[WMA]]></category>

		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=4807</guid>
		<description><![CDATA[Unless you're going to stick to films made before 1927 or so, you're going to want an audio track. A future article will talk about how to pick the audio codec that's right for you, but for now I just want to introduce the concept and describe the playing field. (This information is likely to go out of date quickly; future readers, be aware that this was written in December 2008.)]]></description>
			<content:encoded><![CDATA[<p><strong>This article was first published on 30th December 2008, on Mark Pilgrim&#8217;s website. That website no longer exists so this article serves as an historical record. I have preserved all emphasis and links as per the original article.</strong></p>
<p>Unless you&#8217;re going to stick to films made before <a href="http://www.filmsite.org/jazz.html" title="Films made before 1927 or so" target="_blank" rel="nofollow">1927 or so</a>, you&#8217;re going to want an audio track. A future article will talk about how to pick the audio codec that&#8217;s right for you, but for now I just want to introduce the concept and describe the playing field. (This information is likely to go out of date quickly; future readers, be aware that this was written in December 2008.)</p>
<p>Like video codecs, <em>audio codecs</em> are algorithms by which an audio stream is encoded. Like video codecs, there are <em>lossy</em> and <em>lossless</em> audio codecs. Today&#8217;s article will only deal with lossy audio codecs. Actually, it&#8217;s even narrower than that, because there are different categories of lossy audio codecs. Audio is used in many places where video is not (telephony, for example), and there is an entire category of <a href="http://www.voip-info.org/wiki-Codecs" title="Audio codecs optimised for encoding speech" target="_blank" rel="nofollow">audio codecs optimized for encoding speech</a>. You wouldn&#8217;t rip a music CD with these codecs, because the result would sound like a 4-year-old singing into a speakerphone. But you <em>would</em> use them in an <a href="http://www.asterisk.org/" title="Asterisk PBX" target="_blank" rel="nofollow">Asterisk</a> PBX, because bandwidth is precious, and these codecs can compress human speech into a fraction of the size of general-purpose codecs.</p>
<p>And that&#8217;s all I have to say about speech-optimized audio codecs. Onward&#8230;</p>
<p>As I mentioned in part 2: lossy video codecs, when you &#8220;watch a video,&#8221; your player software is doing several things at once:</p>
<ol>
<li>Interpreting the container format</li>
<li>Decoding the video stream</li>
<li>Decoding the audio stream and sending the sound to your speakers</li>
<li>Possibly decoding the subtitle stream as well. (Tomorrow&#8217;s article will be all about subtitle formats! I can hardly wait!)</li>
</ol>
<p>The <em>audio codec</em> specifies how to do #3 — decoding the audio stream and turning it into digital waveforms that your speakers then turn into sound. As with video codecs, there are all sorts of tricks to minimize the amount of information stored in the audio stream. And since we&#8217;re talking about <em>lossy</em> audio codecs, information is being lost during the recording → encoding → decoding → listening lifecycle. Different audio codecs throw away different things, but they all have the same purpose: to trick your ears into not noticing the parts that are missing.</p>
<p>One concept that audio has that video does not is <em>channels</em>. We&#8217;re sending sound to your speakers, right? Well, how many speakers do you have? If you&#8217;re sitting at your computer, you may only have two: one on the left and one on the right. My desktop has three: left, right, and one more on the floor. So-called &#8220;<a href="http://en.wikipedia.org/wiki/Surround_sound" title="Wikipedia: Surround sound" target="_blank" rel="nofollow">surround sound</a>&#8221; systems can have six or more speakers, strategically placed around the room. Each speaker is fed a particular <em>channel</em> of the original recording. The theory is that you can sit in the middle of the six speakers, literally surrounded by six separate channels of sound, and your brain synthesizes them and feels like you&#8217;re in the middle of the action. Does it work? A multi-billion-dollar industry seems to think so.</p>
<p>Most general-purpose audio codecs can handle two channels of sound. During recording, the sound is split into left and right channels; during encoding, both channels are stored in the same audio stream; during decoding, both channels are decoded and each is sent to the appropriate speaker. Some audio codecs can handle more than two channels, and they keep track of which channel is which and so your player can send the right sound to the right speaker.</p>
<p>There are <em>lots</em> of audio codecs. Did I say there were lots of video codecs? Forget that. There are <a href="http://wiki.multimedia.cx/index.php?title=Category:Audio_Codecs" title="Audio codecs" target="_blank" rel="nofollow">a metric fuck-ton of audio codecs</a>. These are the ones you need to know about:</p>
<ul>
<li>MPEG-1 Audio Layer 3</li>
<li>Advanced Audio Coding</li>
<li>Windows Media Audio</li>
<li>Vorbis</li>
<li>Dolby Digital</li>
<li>Digital Theater System</li>
</ul>
<h3>MPEG-1 Audio Layer 3</h3>
<p><a href="http://en.wikipedia.org/wiki/MPEG-1_Audio_Layer_3" title="Wikipedia: MPEG-1 Audio Layer 3" target="_blank" rel="nofollow">MPEG-1 Audio Layer 3</a>&#8230;colloquially known as &#8220;MP3.&#8221; If you haven&#8217;t heard of MP3s, I don&#8217;t know what to do with you. <a href="http://www.walmart.com/catalog/catalog.gsp?cat=96469" title="Walmart portable music players" target="_blank" rel="nofollow">Walmart sells portable music players</a> and calls them &#8220;MP3 players.&#8221; <em>Walmart</em>. Anyway&#8230;</p>
<p>MP3s can contain <strong>up to 2 channels</strong> of sound. They can be encoded at different <em>bitrates</em>: 64 kbps, 128 kbps, 192 kbps, and a variety of others from 32 to 320. Higher bitrates mean larger file sizes and better quality audio, although the ratio of audio quality to bitrate is not linear. (128 kbs sounds more than twice as good as 64 kbs, but 256 kbs doesn&#8217;t sound twice as good as 128 kbs.) Furthermore, the MP3 format allows for <em>variable bitrate encoding</em>, which means that some parts of the encoded stream are compressed more than others. For example, silence between notes can be encoded at a very low bitrate, then the bitrate can spike up a moment later when multiple instruments start playing a complex chord. MP3s can also be encoded with a constant bitrate, which, unsurprisingly, is called <em>constant bitrate encoding</em>.</p>
<p>The MP3 standard doesn&#8217;t define exactly how to encode MP3s (although it does define exactly how to decode them); different encoders use different psychoacoustic models that produce wildly different results, but are all decodable by the same players. The open source <a href="http://lame.sourceforge.net/" title="LAME Project" target="_blank" rel="nofollow">LAME project</a> is the best free encoder, and arguably the best encoder period for all but the lowest bitrates.</p>
<p>The MP3 format was standardized in 1991 and <strong>is patent-encumbered</strong>, which explains why Linux  can&#8217;t play MP3 files out of the box. Pretty much every portable music player supports standalone MP3 files, and MP3 audio streams can be embedded in any video container. Adobe Flash can play both standalone MP3 files and MP3 audio streams within an MP4 video container.</p>
<h3>Advanced Audio Coding</h3>
<p><a href="http://en.wikipedia.org/wiki/Advanced_Audio_Coding" title="Advanced Audio Coding (AAC)" target="_blank" rel="nofollow">Advanced Audio Coding</a>&#8230;affectionately known as &#8220;AAC.&#8221; Standardized in 1997, it lurched into prominence when Apple chose it as their default format for the iTunes Store. Originally, all AAC files &#8220;bought&#8221; from the iTunes Store were encrypted with Apple&#8217;s proprietary DRM scheme, called <a href="http://en.wikipedia.org/wiki/FairPlay" title="Wikipedia: FairPlay" target="_blank" rel="nofollow">FairPlay</a>. Many songs in the iTunes Store are now available as unprotected AAC files, which Apple calls &#8220;iTunes Plus&#8221; because it sounds so much better than calling everything else &#8220;iTunes Minus.&#8221; <strong>The AAC format is patent-encumbered</strong>; <a href="http://www.vialicensing.com/Licensing/AAC_fees.cfm" title="Licensing fees" target="_blank" rel="nofollow">licensing rates are available online</a>.</p>
<p>AAC was designed to provide better sound quality than MP3 at the same <em>bitrate</em>, and it can encode audio at any bitrate. (MP3 is limited to a fixed number of bitrates, with an upper bound of 320 kbs.) AAC can encode <strong>up to 48 channels of sound</strong>, although in practice no one does that. The AAC format also differs from MP3 in defining multiple <em>profiles</em>, in much the same way as H.264, and for the same reasons. The &#8220;low-complexity&#8221; profile is designed to be playable in real-time on devices with limited CPU power, while higher profiles offer better sound quality at the same bitrate at the expense of slower encoding and decoding.</p>
<p>All current Apple products, including iPods, AppleTV, and QuickTime support certain profiles of AAC in standalone audio files and in audio streams in an MP4 video container. Adobe Flash supports all profiles of AAC in MP4, as do the open source mplayer and VLC video players. For encoding, the FAAC library is the open source option; support for it is a compile-time option in mencoder and ffmpeg. (I&#8217;ll dive into all the different encoding tools in a future article.)</p>
<h3>Windows Media Audio</h3>
<p><a href="http://en.wikipedia.org/wiki/Windows_Media_Audio" title="Wikipedia: Windows Media Audio (WMA)" target="_blank" rel="nofollow">Windows Media Audio</a>&#8230;a.k.a. &#8220;WMA.&#8221; As you might guess from the name, Windows Media Audio was developed by Microsoft. The acronym &#8220;WMA&#8221; has historically referred to many different things: a lossless audio codec (&#8220;WMA Lossless&#8221;), a speech-optimized codec (&#8220;WMA Voice&#8221;), and several different lossy audio codecs (&#8220;WMA 1,&#8221; &#8220;WMA 2,&#8221; &#8220;WMA 7,&#8221; &#8220;WMA 8,&#8221; &#8220;WMA 9,&#8221; and &#8220;WMA Pro&#8221;). It is also (incorrectly) used to refer to the Advanced Systems Format, because WMA-encoded audio streams are usually embedded in an ASF container. Roughly speaking, the lossy audio codecs (WMA 1-9) compete with MP3 and low-complexity AAC; WMA Lossless competes with Apple Lossless and FLAC; WMA Pro competes with high-complexity AAC, Vorbis, AC-3, and DTS.</p>
<p>All the different codecs under the &#8220;WMA&#8221; brand are playable with Windows Media Player, which comes pre-installed on desktops and laptops running Microsoft Windows XP and Vista. Portable devices like the Zune and the ironically named &#8220;PlaysForSure&#8221; devices can play WMA 1-9; stores that allow you to &#8220;purchase&#8221; WMA files generally encrypt them with a Microsoft-proprietary DRM scheme. The open source ffmpeg project can play WMA 1-9, and <a href="http://www.flip4mac.com/" title="Flip4Mac" target="_blank" rel="nofollow">Flip4Mac</a> offers a commercial <a href="http://www.telestream.net/flip4mac-wmv/overview.htm" title="QuickTime component to encode and decode WMA audio on Mac OS X" target="_blank" rel="nofollow">QuickTime component to encode and decode WMA audio on Mac OS X</a>.</p>
<p>WMA 1-9 support up to <strong>2 channels of sound</strong>; WMA Pro supports up to <strong>8 channels of sound</strong>. <strong>All WMA formats are patent-encumbered</strong>; <a href="http://www.microsoft.com/windows/windowsmedia/licensing/licensing.aspx" title="Licensing information from Microsoft" target="_blank" rel="nofollow">licensing information is available from Microsoft</a>.</p>
<h3>Vorbis</h3>
<p><a href="http://en.wikipedia.org/wiki/Vorbis" title="Wikipedia: Vorbis" target="_blank" rel="nofollow">Vorbis</a>&#8230;known to many as &#8220;Ogg Vorbis,&#8221; although for some reason that pisses off both Ogg and Vorbis advocates. (Technically, &#8220;Ogg&#8221; is a container format, and Vorbis audio streams can be embedded in other containers.) <strong>Vorbis is not encumbered by any known patents</strong> and is therefore supported out-of-the-box by all major Linux distributions and by portable devices running the open source <a href="http://www.rockbox.org/" title="Rockbox firmware" target="_blank" rel="nofollow">Rockbox</a> firmware. Mozilla Firefox 3.1 will support Vorbis audio files in an Ogg container, or Ogg videos with a Vorbis audio track. <a href="http://code.google.com/android/" title="Google Android" target="_blank" rel="nofollow">Android</a> mobile phones can also play standalone Vorbis audio files. Vorbis audio streams are usually embedded in an Ogg container, but they can also be <a href="http://samples.mplayerhq.hu/MPEG-4/vorbis-in-mp4/" title="Vorbis embedded in an MP4" target="_blank" rel="nofollow">embedded in an MP4</a> or <a href="http://en.wikipedia.org/wiki/Matroska" title="Wikipedia: Matroska" target="_blank" rel="nofollow">MKV</a> container (or, with some hacking, <a href="http://www.alexander-noe.com/video/amg/" target="_blank" rel="nofollow">in AVI</a>).</p>
<p>There are open source Vorbis encoders and decoders, including <a href="http://oggconvert.tristanb.net/" title="OggConvert" target="_blank" rel="nofollow">OggConvert</a> (encoder), <a href="http://www.ffmpeg.org/" title="ffmpeg" target="_blank" rel="nofollow">ffmpeg</a> (decoder), <a href="http://www.geocities.jp/aoyoume/aotuv/" title="aoTuV" target="_blank" rel="nofollow">aoTuV</a> (encoder), and <a href="http://downloads.xiph.org/releases/vorbis/" title="libvorbis" target="_blank" rel="nofollow">libvorbis</a> (decoder). There are also <a href="http://www.xiph.org/quicktime/" title="QuickTime components for Mac OS X" target="_blank" rel="nofollow">QuickTime components for Mac OS X</a> and <a href="http://www.xiph.org/dshow/" title="DirectShow filters for Windows" target="_blank" rel="nofollow">DirectShow filters for Windows</a>.</p>
<p><strong>Vorbis supports an arbitrary number of sound channels</strong>.</p>
<h3>Dolby Digital</h3>
<p><a href="http://en.wikipedia.org/wiki/Dolby_Digital#Dolby_Digital" title="Wikipedia: Dolby Digital" target="_blank" rel="nofollow">Dolby Digital</a>&#8230;a.k.a. &#8220;AC-3.&#8221; AC-3 was developed by <a href="http://www.dolby.com/index.html" title="Dolby Laboratories" target="_blank" rel="nofollow">Dolby Laboratories</a>. AC-3 is most well-known for being a mandatory format in the DVD standard; all DVD players must be able to decode AC-3 audio streams. It is also mandatory for Blu-Ray players, and many digital TV broadcasts send AC-3 audio streams as well. AC-3 supports <strong>up to 6 channels of sound</strong> and bitrates of <strong>up to 640 kbps</strong>, although its most popular application — audio on DVDs — is officially limited to 448 kbps. (Blu-Ray discs may use the maximum 640 kbps.)</p>
<p>There are open source encoders and decoders for AC-3, including <a href="http://liba52.sourceforge.net/" title="liba52" target="_blank" rel="nofollow">liba52</a> (decoding), <a href="http://ac3filter.net/" title="AC3Filter" target="_blank" rel="nofollow">AC3Filter</a> (decoding), and <a href="http://aften.sourceforge.net/" title="Aften" target="_blank" rel="nofollow">Aften</a> (encoding). ffmpeg has a compile-time option to include liba52, which will allow all ffmpeg-based players and plugin chains (like GStreamer) to play AC-3 audio streams. However, <strong>the AC-3 format is patent-encumbered</strong>; licensing is brokered by <a href="http://www.dolby.com/professional/getting-dolby-technologies/" title="Dolby Laboratories" target="_blank" rel="nofollow">Dolby Laboratories</a>.</p>
<p>AC-3 is rarely seen in standalone audio files; it is designed to be embedded in a video container. Other than DVDs and Blu-Ray discs (which use a video container format I haven&#8217;t talked about yet), you can embed AC-3 audio streams in MKV, AVI, and — just standardized earlier this year — <a href="http://webapp.etsi.org/WorkProgram/Report_WorkItem.asp?WKI_ID=28541" target="_blank" rel="nofollow">in MP4 files</a> (<a href="http://forum.doom9.org/showthread.php?p=1168961#post1168961" target="_blank" rel="nofollow">discussion</a>). Apple&#8217;s AppleTV set-top box is the only hardware device I know of that supports AC-3 in MP4; you can encode AppleTV-compatible AC3-in-MP4 videos with <a href="http://handbrake.fr/" title="HandBrake" target="_blank" rel="nofollow">HandBrake</a>, or manually insert AC-3 audio into existing MP4 files with this <a href="http://mp4creator.sourceforge.net/" title="Windows-only fork of mp4creator" target="_blank" rel="nofollow">Windows-only fork of mp4creator</a>.</p>
<h3>Digital Theater System</h3>
<p><a href="http://en.wikipedia.org/wiki/DTS_%28sound_system%29" title="Wikipedia: Digital Theater System (DTS)" target="_blank" rel="nofollow">Digital Theater System</a>&#8230;a.k.a. &#8220;DTS.&#8221; As you might guess from the name, DTS is designed for real-life movie theaters. Like WMA, &#8220;DTS&#8221; is a brand name for a family of different audio formats. The &#8220;core&#8221; DTS format supports <strong>up to six channels</strong>; later extensions like DTS-HD support <strong>up to eight channels</strong>. There is also <a href="http://en.wikipedia.org/wiki/DTS-HD_Master_Audio" title="Wikipedia: DTS-HD Master Audio" target="_blank" rel="nofollow">DTS-HD Master Audio</a>, a lossless variant by the same company. Core DTS is designed for high bitrates (<strong>up to 1536 kbps</strong>, which is virtually indistinguishable from being there in the first place). DTS-HD Master Audio bitrates can go even higher, although at some point even audiophiles will wonder why they should bother.</p>
<p>Core DTS was not originally part of the DVD specification, so early DVD players did not support it. Most recent DVD players support natively decoding core DTS audio or passing the audio stream through to an external speaker system which decodes it, but relatively few DVDs include a DTS stream due to size constraints. Core DTS <em>is</em> a mandatory part of the Blu-Ray specification, and many Blu-Ray discs include a DTS audio track — sometimes the exact same stream that was originally played in the movie theater. (DTS-HD Master Audio is an optional part of the Blu-Ray specification, but few Blu-Ray discs include it due to — you guessed it — size constraints.)</p>
<p><strong>DTS is patent-encumbered</strong>; licensing is brokered by <a href="http://www.dts.com/" title="DTS, Inc" target="_blank" rel="nofollow">DTS, Inc</a>.</p>
<p><strong>And so forth and so on&#8230;</strong><br />
As with everything else in this series, this article barely scratches the surface. (Really!) If you like, you can read about other audio codecs: <a href="http://en.wikipedia.org/wiki/Adaptive_Transform_Acoustic_Coding" title="Wikipedia: Adaptive Transform Acoustic Coding (ATRAC)" target="_blank" rel="nofollow">ATRAC</a>, <a href="http://en.wikipedia.org/wiki/Musepack" title="Wikipedia: Musepack" target="_blank" rel="nofollow">Musepack</a>, <a href="http://en.wikipedia.org/wiki/MP2_%28format%29" title="Wikipedia: MP2" target="_blank" rel="nofollow">MP2</a>, <a href="http://en.wikipedia.org/wiki/RealAudio" title="Wikipedia: RealAudio" target="_blank" rel="nofollow">RealAudio</a>, <a href="http://en.wikipedia.org/wiki/Adaptive_Multi-Rate" title="Wikipedia: Adaptive Multi-Rate (AMR)" target="_blank" rel="nofollow">AMR</a>, <a href="http://en.wikipedia.org/wiki/ADPCM" title="Wikipedia: ADPCM" target="_blank" rel="nofollow">ADPCM</a>, and so forth and so on. Wikipedia has a <a href="http://en.wikipedia.org/wiki/Comparison_of_audio_codecs" title="Wikipedia: Comparison of audio codecs" target="_blank" rel="nofollow">comparison of common audio codecs</a>, <a href="http://wiki.hydrogenaudio.org/index.php?title=Category:Codecs" title="HydrogenAudio technical details on audio codecs" target="_blank" rel="nofollow">HydrogenAudio has lots of technical details</a>, and <a href="http://wiki.multimedia.cx/index.php?title=Category:Audio_Codecs" title="Multimedia Wiki: Audio codecs" target="_blank" rel="nofollow">wiki.multimedia.cx is always your friend</a> too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonwhatley.co.uk/mark-pilgrim-a-gentle-introduction-to-video-encoding-lossy-audio-codecs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mark Pilgrim &#8211; A Gentle Introduction to Video Encoding: Lossy Video Codecs</title>
		<link>http://www.simonwhatley.co.uk/mark-pilgrim-a-gentle-introduction-to-video-encoding-lossy-video-codecs</link>
		<comments>http://www.simonwhatley.co.uk/mark-pilgrim-a-gentle-introduction-to-video-encoding-lossy-video-codecs#comments</comments>
		<pubDate>Tue, 11 Oct 2011 09:00:51 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[AVI]]></category>
		<category><![CDATA[bbc]]></category>
		<category><![CDATA[Codec]]></category>
		<category><![CDATA[Container formats]]></category>
		<category><![CDATA[Dirac]]></category>
		<category><![CDATA[DivX]]></category>
		<category><![CDATA[DivX-certified]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[H.264]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iTunes Store]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mark Pilgrim]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Microsoft Corporation]]></category>
		<category><![CDATA[mobile devices]]></category>
		<category><![CDATA[MPEG]]></category>
		<category><![CDATA[MPEG-1]]></category>
		<category><![CDATA[MPEG-2]]></category>
		<category><![CDATA[MPEG-4]]></category>
		<category><![CDATA[Ogg]]></category>
		<category><![CDATA[open source decoder software]]></category>
		<category><![CDATA[Theora]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[Video codecs]]></category>
		<category><![CDATA[WMV]]></category>
		<category><![CDATA[Xiph.org Foundation]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=4805</guid>
		<description><![CDATA[The most important consideration in video encoding is choosing a video codec. A future article will talk about how to pick the one that’s right for you, but for now I just want to introduce the concept and describe the playing field. (This information is likely to go out of date quickly; future readers, be aware that this was written in December 2008.)]]></description>
			<content:encoded><![CDATA[<p><strong>This article was first published on 19th December 2008, on Mark Pilgrim&#8217;s website. That website no longer exists so this article serves as an historical record. I have preserved all emphasis and links as per the original article.</strong></p>
<p>The most important consideration in video encoding is choosing a video codec. A future article will talk about how to pick the one that&#8217;s right for you, but for now I just want to introduce the concept and describe the playing field. (This information is likely to go out of date quickly; future readers, be aware that this was written in December 2008.)</p>
<p>When you talk about &#8220;watching a video,&#8221; you&#8217;re probably talking about a combination of one video stream, one audio stream, and possibly some subtitles or captions. But you probably don&#8217;t have two different files; you just have &#8220;the video.&#8221; Maybe it&#8217;s an AVI file, or an MP4 file. These are just container formats, like a ZIP file that contains multiple kinds of files within it. The container format defines how to store the video and audio streams in a single file (and subtitles too, if any).</p>
<p>When you &#8220;watch a video,&#8221; your video player is doing several things at once:</p>
<ol>
<li>Interpreting the container format to find out which video and audio tracks are available, and how they are stored within the file so that it can find the data it needs to decode next</li>
<li>Decoding the video stream and displaying a series of images on the screen</li>
<li>Decoding the audio stream and sending the sound to your speakers</li>
<li>Possibly decoding the subtitle stream as well, and showing and hiding phrases at the appropriate times while playing the video</li>
</ol>
<p>A <em>video codec</em> is an algorithm by which a video stream is encoded, i.e. it specifies how to do #2 above. Your video player <em>decodes</em> the video stream according to the <em>video codec</em>, then displays a series of images, or &#8220;frames,&#8221; on the screen. Most modern video codecs use all sorts of tricks to minimize the amount of information required to display one frame after the next. For example, instead of storing each individual frame (like a screenshot), they will only store the differences between frames. Most videos don&#8217;t actually change all that much from one frame to the next, so this allows for high compression rates, which results in smaller file sizes. (There are many, many other complicated tricks too, which I&#8217;ll dive into in a future article.)</p>
<p>There are <em>lossy</em> and <em>lossless</em> video codecs; today&#8217;s article will only deal with lossy codecs. A <em>lossy video codec</em> means that information is being irretrievably lost during encoding. Like copying an audio cassette tape, you&#8217;re losing information about the source video, and degrading the quality, every time you encode. Instead of the &#8220;hiss&#8221; of an audio cassette, a re-re-re-encoded video may look blocky, especially during scenes with a lot of motion. (Actually, this can happen even if you encode straight from the original source, if you choose a poor video codec or pass it the wrong set of parameters.) On the bright side, lossy video codecs can offer amazing compression rates, and many offer ways to &#8220;cheat&#8221; and smooth over that blockiness during playback, to make the loss less noticeable to the human eye.</p>
<p>There are <a href="http://samples.mplayerhq.hu/V-codecs/" title="Video codecs" target="_blank" rel="nofollow"><em>tons</em> of video codecs</a>. Today I&#8217;ll discuss five modern lossy video codecs: MPEG-4 ASP, H.264, VC-1, Theora, and Dirac.</p>
<h3>MPEG-4 ASP</h3>
<p>a.k.a. &#8220;MPEG-4 Advanced Simple Profile.&#8221; <a href="http://en.wikipedia.org/wiki/MPEG-4_Part_2" title="MPEG-4 ASP" target="_blank" rel="nofollow">MPEG-4 ASP</a> was developed by <a href="http://en.wikipedia.org/wiki/Moving_Picture_Experts_Group" title="The MPEG Group" target="_blank" rel="nofollow">the MPEG group</a> and standardized in 2001. You may have heard of <a href="http://en.wikipedia.org/wiki/DivX" title="Wikipedia: DivX" target="_blank" rel="nofollow">DivX</a>, <a href="http://en.wikipedia.org/wiki/Xvid" title="Wikipedia: Xvid" target="_blank" rel="nofollow">Xvid</a>, or <a href="http://en.wikipedia.org/wiki/3ivx" title="Wikipedia: 3ivx" target="_blank" rel="nofollow">3ivx</a>; these are all competing implementations of the MPEG-4 ASP standard. <a href="http://www.xvid.org/" title="Xvid" target="_blank" rel="nofollow">Xvid is open source</a>; DivX and 3ivx are closed source. The company behind DivX has had some mainstream success in branding &#8220;DivX&#8221; as synonymous with &#8220;MPEG-4 ASP.&#8221; For example, this <a href="http://www.amazon.com/Philips-DVP642-DivX-Certified-Progressive-Scan-Player/dp/B000204SWE" title="Amazon: DivX certifiied DVD Player" target="_blank" rel="nofollow">&#8220;DivX-certified&#8221; DVD player</a> can actually play <a href="http://www.jarnot.com/twiki/bin/view/Public/DVP642LisaBsAVIGuide" title="MPEG-4 ASP videos" target="_blank" rel="nofollow">most MPEG-4 ASP videos</a> in an AVI container, even if they were created with a competing encoder. (To confuse things even further, the company behind <a href="http://en.wikipedia.org/wiki/DivX#DivX_Media_Format_.28DMF.29" title="DivX has now created their own container format" target="_blank" rel="nofollow">DivX has now created their own container format</a>.)</p>
<p><strong>MPEG-4 ASP is patent-encumbered</strong>; licensing is brokered through the <a href="http://www.mpegla.com/" title="MPEG LA Group" target="_blank" rel="nofollow">MPEG LA group</a>. MPEG-4 ASP video can be embedded in most popular container formats, including AVI, MP4, and MKV.</p>
<h3>H.264</h3>
<p>a.k.a. &#8220;MPEG-4 part 10,&#8221; a.k.a. &#8220;MPEG-4 AVC,&#8221; a.k.a. &#8220;MPEG-4 Advanced Video Coding.&#8221; <a href="http://en.wikipedia.org/wiki/H.264" title="Wikipedia: H.264" target="_blank" rel="nofollow">H.264</a> was also developed by the <a href="http://en.wikipedia.org/wiki/Moving_Picture_Experts_Group" title="Wikipedia: Moving Picture Experts Group (MPEG)" target="_blank" rel="nofollow">MPEG group</a> and standardized in 2003. It aims to provide a single codec for low-bandwidth, low-CPU devices (cell phones); high-bandwidth, high-CPU devices (modern desktop computers); and everything in between. To accomplish this, the H.264 standard is split into &#8220;<a href="http://en.wikipedia.org/wiki/H.264#Profiles" title="Wikipedia: H.264 Profiles" target="_blank" rel="nofollow">profiles</a>,&#8221; which each define a set of optional features that trade complexity for file size. Higher profiles use more optional features, offer better visual quality at smaller file sizes, take longer to encode, and require more CPU power to decode in real-time.</p>
<p>To give you a rough idea of the range of profiles, <a href="http://www.apple.com/iphone/specs.html" title="Apple's iPhone supports Baseline profile" target="_blank" rel="nofollow">Apple&#8217;s iPhone supports Baseline profile</a>, the <a href="http://www.apple.com/appletv/specs.html" title="AppleTV supports Baseline and Main profiles" target="_blank" rel="nofollow">AppleTV set-top box supports Baseline and Main profiles</a>, and <a href="http://www.kaourantin.net/2007/08/what-just-happened-to-video-on-web_20.html" title="Adobe Flash supports Baseline, Main and High profiles" target="_blank" rel="nofollow">Adobe Flash on a desktop PC supports Baseline, Main, and High profiles</a>. YouTube (owned by Google, my employer) now uses H.264 to encode <a href="http://blog.wired.com/business/2008/12/youtube-adds-hd.html" title="high-definition videos" target="_blank" rel="nofollow">high-definition videos</a>, playable through Adobe Flash; YouTube also provides H.264-encoded video to mobile devices, including Apple&#8217;s iPhone and phones running Google&#8217;s <a href="http://code.google.com/android/" title="Android mobile operating system" target="_blank" rel="nofollow">Android mobile operating system</a>. Also, H.264 is one of the video codecs mandated by the Blu-Ray specification; Blu-Ray discs that use it generally use the High profile.</p>
<p>Most non-PC devices that play H.264 video (including iPhones and standalone Blu-Ray players) actually do the decoding on a dedicated chip, since their main CPUs are nowhere near powerful enough to decode the video in real-time. Recent high-end desktop graphics cards also support decoding H.264 in hardware. There are a number of <a href="http://compression.ru/video/codec_comparison/mpeg-4_avc_h264_2007_en.html" title="Competing H.264 encoders" target="_blank" rel="nofollow">competing H.264 encoders</a>, including the <a href="http://www.videolan.org/developers/x264.html" title="Open source x264 library" target="_blank" rel="nofollow">open source x264 library</a>. The <strong>H.264 standard is patent-encumbered</strong>; licensing is brokered through the <a href="http://www.mpegla.com/" title="MPEG LA Group" target="_blank" rel="nofollow">MPEG LA group</a>. H.264 video can be embedded in most popular container formats, including MP4 (used primarily by <a href="http://www.apple.com/itunes/whatson/movies.html" title="Apple iTunes Store" target="_blank" rel="nofollow">Apple&#8217;s iTunes Store</a>) and MKV (used primarily by video pirates).</p>
<h3>VC-1</h3>
<p><a href="http://en.wikipedia.org/wiki/VC-1" title="Wikipedia: VC-1" target="_blank" rel="nofollow">VC-1</a> evolved from Microsoft&#8217;s WMV9 codec and was <a href="http://www.betanews.com/article/Microsoft_VC1_Codec_Now_a_Standard/1144097224" title="Codec standardised in 2006" target="_blank" rel="nofollow">standardized in 2006</a>. It is primarily used and promoted by Microsoft for high-definition video, although, like H.264, it has <a href="http://www.microsoft.com/windows/windowsmedia/howto/articles/vc1techoverview.aspx#OverviewofVC1" title="VC-1 profiles" target="_blank" rel="nofollow">a range of profiles</a> to trade complexity for file size. Also like H.264, it is mandated by the Blu-Ray specification, and all Blu-Ray players are required to be able to decode it. <strong>The VC-1 codec is patent-encumbered</strong>, with licensing brokered through the <a href="http://www.mpegla.com/" title="MPEG LA Group" target="_blank" rel="nofollow">MPEG LA group</a>.</p>
<p>Wikipedia has a brief <a href="http://en.wikipedia.org/wiki/Comparison_of_H.264_and_VC-1" title="Wikipedia: Technical compariosn of VC-1 and H.264" target="_blank" rel="nofollow">technical comparison of VC-1 and H.264</a>; <a href="http://www.microsoft.com/windows/windowsmedia/howto/articles/vc1techoverview.aspx#VC1ComparedtoOtherCodecs" title="Microsoft comparison of VC-1 with other codecs" target="_blank" rel="nofollow">Microsoft has their own comparison</a>; Multimedia.cx has a <a href="http://wiki.multimedia.cx/index.php?title=H.264" title="Venn diagram outlining similarities and differences between codecs" target="_blank" rel="nofollow">pretty Venn diagram outlining the similarities</a> and differences. Multimedia.cx also discusses the <a href="http://wiki.multimedia.cx/index.php?title=VC-1" title="Technical features of VC-1" target="_blank" rel="nofollow">technical features of VC-1</a>. I also found this <a href="http://www.avsforum.com/avs-vb/showthread.php?p=9931723#post9931723" title="History of VC-1 and H.264" target="_blank" rel="nofollow">history of VC-1 and H.264</a> to be interesting (as well as <a href="http://archive2.avsforum.com/avs-vb/showthread.php?p=6594314#post6594314" title="Rebuttal" target="_blank" rel="nofollow">this rebuttal</a>).</p>
<p>VC-1 is designed to be container-independent, although it is most often embedded in an ASF container. An open source decoder for VC-1 video was a <a href="http://code.google.com/soc/2006/ffmpeg/appinfo.html?csaid=5AA777DB19E2BB24" title="2006 Google Summer of Code project" target="_blank" rel="nofollow">2006 Google Summer of Code project</a>, and the resulting code was added to the multi-faceted <a href="http://ffmpeg.mplayerhq.hu/" title="ffmpeg library" target="_blank" rel="nofollow">ffmpeg library</a>.</p>
<h3>Theora</h3>
<p><a href="http://en.wikipedia.org/wiki/Theora" title="Wikipedia: Theora" target="_blank" rel="nofollow">Theora</a> evolved from the VP3 codec and has subsequently been developed by the <a href="http://xiph.org/" title="Xiph Foundation" target="_blank" rel="nofollow">Xiph.org Foundation</a>. <strong>Theora is a royalty-free codec and is not encumbered by any known patents</strong> other than the original VP3 patents, which have been irrevocably licensed royalty-free. Although the standard has been &#8220;frozen&#8221; since 2004, the Theora project (which includes an open source reference encoder and decoder) <a href="http://lists.xiph.org/pipermail/theora-dev/2008-November/003736.html" title="Version 1.0 November 2008" target="_blank" rel="nofollow">only hit 1.0 in November 2008</a>.</p>
<p>Theora video can be embedded in any container format, although it is most often seen in an Ogg container. All major Linux distributions support Theora out-of-the-box, and <a href="https://developer.mozilla.org/web-tech/2008/10/14/firefox-31-beta-1-an-overview-of-features-for-web-developers/" title="Mozilla Firefox 3.1 includes native support for Theora video" target="_blank" rel="nofollow">Mozilla Firefox 3.1 will include native support for Theora video in an Ogg container</a>. And by &#8220;native&#8221;, I mean &#8220;available on all platforms without platform-specific plugins.&#8221; You can also play Theora video <a href="http://www.xiph.org/dshow/" title="Theora video on Windows" target="_blank" rel="nofollow">on Windows</a> or <a href="http://xiph.org/quicktime/" title="Theora video on Mac OS X" target="_blank" rel="nofollow">on Mac OS X</a> after installing Xiph.org&#8217;s open source decoder software.</p>
<p>The reference encoder included in Theora 1.0 is widely criticized for being slow and poor quality, but Theora 1.1 will include a new encoder that takes better advantage of Theora&#8217;s features, while staying backward-compatible with current decoders. (Info: <a href="http://web.mit.edu/xiphmont/Public/theora/demo.html" title="Demo 1" target="_blank" rel="nofollow">1</a>, <a href="http://web.mit.edu/xiphmont/Public/theora/demo2.html" title="Demo 2" target="_blank" rel="nofollow">2</a>, <a href="http://web.mit.edu/xiphmont/Public/theora/demo3.html" title="Demo 3" target="_blank" rel="nofollow">3</a>, <a href="http://web.mit.edu/xiphmont/Public/theora/demo4.html" title="Demo 4" target="_blank" rel="nofollow">4</a>, <a href="http://web.mit.edu/xiphmont/Public/theora/demo5.html" title="Demo 5" target="_blank" rel="nofollow">5</a>, <a href="http://svn.xiph.org/branches/theora-thusnelda/" title="source code" target="_blank" rel="nofollow">source code</a>.)</p>
<h3>Dirac</h3>
<p>Dirac was <a href="http://www.bbc.co.uk/rd/projects/dirac/" title="Dirac, developed by the BBC" target="_blank" rel="nofollow">developed by the BBC</a> to provide a royalty-free alternative to H.264 and VC-1 that the BBC could use to stream high-definition television content in Great Britain. Like H.264, Dirac aims to provide a single codec for the full spectrum of very low- and very high-bandwidth streaming. <strong>Dirac is not encumbered by any known patents</strong>, and there are two open source implementations, <a href="http://diracvideo.org/download/dirac-research/" title="Dirac research" target="_blank" rel="nofollow">dirac-research</a> (the BBC&#8217;s reference implementation) and <a href="http://www.diracvideo.org/download/schroedinger/" title="Schroedinger" target="_blank" rel="nofollow">Schroedinger</a> (optimized for speed).</p>
<p>The Dirac standard was only finalized in 2008, so there is very little mainstream use yet, although the <a href="http://www.ibc.org/cgi-bin/ibc_dailynews_cms.cgi?story_no=25368&#038;issue=4" title="Dirac used internally during the 2008 Olympics" target="_blank" rel="nofollow">BBC did use it internally during the 2008 Olympics</a>. Dirac-encoded video tracks can be embedded in several popular container formats, including <a href="http://www.diracvideo.org/wiki/index.php/DiracInISOM" title="MP4 format" target="_blank" rel="nofollow">MP4</a>, <a href="http://www.diracvideo.org/wiki/index.php/DiracInOgg" title="Ogg format" target="_blank" rel="nofollow">Ogg</a>, <a href="http://www.diracvideo.org/wiki/index.php/DiracInMatroska" title="MKV format" target="_blank" rel="nofollow">MKV</a>, and <a href="http://www.diracvideo.org/wiki/index.php/DiracInAVI" title="AVI format" target="_blank" rel="nofollow">AVI</a>. <a href="http://www.videolan.org/vlc/" title="VLC" target="_blank" rel="nofollow">VLC</a> 0.9.2 (<a href="http://www.diracvideo.org/node/19" title="VLC 0.9.2 released in September 2008" target="_blank" rel="nofollow">released in September 2008</a>) can play Dirac-encoded video within an Ogg or MP4 container.</p>
<p><strong>And on and on&#8230;</strong><br />
Of course, this is only scratching the surface of all the available video codecs. Video encoding goes way back, but my focus in this series is on the present and near-future, not the past. If you like, you can read about <a href="http://en.wikipedia.org/wiki/MPEG-2" title="Wikipedia: MPEG-2" target="_blank" rel="nofollow">MPEG-2</a> (used in DVDs), <a href="http://en.wikipedia.org/wiki/MPEG-1" title="Wikipedia: MPEG-1" target="_blank" rel="nofollow">MPEG-1</a> (used in Video CDs), older versions of Microsoft&#8217;s <a href="http://en.wikipedia.org/wiki/Windows_Media_Video#Windows_Media_Video" title="Wikipedia: Windows Media Video (WMV)" target="_blank" rel="nofollow">WMV</a> family, <a href="http://en.wikipedia.org/wiki/Sorenson_codec" title="Wikipedia: Sorenson codec" target="_blank" rel="nofollow">Sorenson</a>, <a href="http://en.wikipedia.org/wiki/Indeo" title="Wikipedia: Indeo" target="_blank" rel="nofollow">Indeo</a>, and <a href="http://en.wikipedia.org/wiki/Cinepak" title="Wikipedia: Cinepak" target="_blank" rel="nofollow">Cinepak</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonwhatley.co.uk/mark-pilgrim-a-gentle-introduction-to-video-encoding-lossy-video-codecs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mark Pilgrim &#8211; A Gentle Introduction to Video Encoding: Container Formats</title>
		<link>http://www.simonwhatley.co.uk/mark-pilgrim-a-gentle-introduction-to-video-encoding-container-formats</link>
		<comments>http://www.simonwhatley.co.uk/mark-pilgrim-a-gentle-introduction-to-video-encoding-container-formats#comments</comments>
		<pubDate>Mon, 10 Oct 2011 09:00:14 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Advanced Systems Format]]></category>
		<category><![CDATA[Audio Video Interleave]]></category>
		<category><![CDATA[AVI]]></category>
		<category><![CDATA[Codec]]></category>
		<category><![CDATA[Comparison of container formats]]></category>
		<category><![CDATA[Container formats]]></category>
		<category><![CDATA[digital video]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[Flash Video]]></category>
		<category><![CDATA[Mark Pilgrim]]></category>
		<category><![CDATA[Matroska]]></category>
		<category><![CDATA[MPEG]]></category>
		<category><![CDATA[MPEG-4 Part 14]]></category>
		<category><![CDATA[Ogg]]></category>
		<category><![CDATA[quicktime]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[Windows Media Player]]></category>
		<category><![CDATA[Windows Media Video]]></category>

		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=4803</guid>
		<description><![CDATA[You may think of video files as “AVI files” or “MP4 files.” In reality, “AVI” and “MP4″ are just container formats. Just like a ZIP file can contain any sort of file within it, video container formats only define how to store things within them, not what kinds of data are stored. (It’s a little more complicated than that, because not all video streams are compatible with all container formats, but never mind that for now.) A video file usually contains multiple tracks — a video track (without audio), one or more audio tracks (without video), one or more subtitle/caption tracks, and so forth. Tracks are usually interrelated; an audio track contains markers within it to help synchronize the audio with the video, and a subtitle track contains time codes marking when each phrase should be displayed. Individual tracks can have metadata, such as the aspect ratio of a video track, or the language of an audio or subtitle track. Containers can also have metadata, such as the title of the video itself, cover art for the video, episode numbers (for television shows), and so on.]]></description>
			<content:encoded><![CDATA[<p><strong>This article was first published on 18th December 2008, on Mark Pilgrim&#8217;s website. That website no longer exists so this article serves as an historical record. I have preserved all emphasis and links as per the original article.</strong></p>
<p>You may think of video files as &#8220;AVI files&#8221; or &#8220;MP4 files.&#8221; In reality, &#8220;AVI&#8221; and &#8220;MP4″ are just container formats. Just like a ZIP file can contain any sort of file within it, video container formats only define <em>how</em> to store things within them, not <em>what</em> kinds of data are stored. (It&#8217;s a little more complicated than that, because not all video streams are compatible with all container formats, but never mind that for now.) A video file usually contains multiple <em>tracks</em> — a video track (without audio), one or more audio tracks (without video), one or more subtitle/caption tracks, and so forth. Tracks are usually interrelated; an audio track contains markers within it to help synchronize the audio with the video, and a subtitle track contains time codes marking when each phrase should be displayed. Individual tracks can have metadata, such as the aspect ratio of a video track, or the language of an audio or subtitle track. Containers can also have metadata, such as the title of the video itself, cover art for the video, episode numbers (for television shows), and so on.</p>
<p>There are <em>lots</em> of video container formats. Some of the most popular include:</p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/MPEG-4_Part_14" title="Wikipedia: MPEG-4" target="_blank" rel="nofollow">MPEG 4</a>, usually with an <code>.mp4</code> extension. The MPEG 4 container is <a href="http://www.chiariglione.org/mpeg/technologies/mp04-ff/index.htm" title="Apple's Quicktime container" target="_blank" rel="nofollow">based on Apple&#8217;s older QuickTime container</a> (<code>.mov</code>). <a href="http://www.apple.com/trailers/" title="Movie Trailers on Apple's website" target="_blank" rel="nofollow">Movie trailers on Apple&#8217;s website</a> still use the older QuickTime container, but movies that you rent from iTunes are delivered in an MPEG 4 container, although Apple likes to use the <code>.m4v</code> file extension instead of <code>.mp4</code>.</li>
<li><a href="http://en.wikipedia.org/wiki/Advanced_Systems_Format" title="Wikipedia: Advanced Systems Format" target="_blank" rel="nofollow">Advanced Systems Format</a>, usually with an <code>.asf</code> or <code>.wmv</code> extension. ASF was <a href="http://msdn.microsoft.com/en-us/library/ms983668.aspx" title="Microsoft - ASF invented by" target="_blank" rel="nofollow">invented by</a> and is primarily used by Microsoft in their Windows Media Player and their handheld Zune media device.</li>
<li><a href="http://en.wikipedia.org/wiki/Flash_Video" title="Wikipedia: Flash Video" target="_blank" rel="nofollow">Flash Video</a>, usually with an <code>.flv</code> extension. Flash Video is, unsurprisingly, used by Adobe Flash. Prior to Flash 9.0.60.184 (a.k.a. Flash Player 9 Update 3), this was the only container format that Flash supported. More recent versions of Flash also support the MPEG 4 container.</li>
<li><a href="http://en.wikipedia.org/wiki/Matroska" title="Wikipedia: Matroska" target="_blank" rel="nofollow">Matroska</a>, usually with an <code>.mkv</code> extension. Matroska is an open standard, unencumbered by any known patents, and there are open source reference implementations for doing everything you might want to do with MKV files. It is primarily used by Free Software-loving hippies and, oddly enough, pirates who rip high-definition movies and television shows and release them in The Scene.</li>
<li><a href="http://en.wikipedia.org/wiki/Ogg" title="Wikipedia: Ogg" target="_blank" rel="nofollow">Ogg</a>, usually with an <code>.ogv</code> extension. Like Matroska, Ogg is an open standard, open-source-friendly, and unencumbered by any known patents. Like Matroska, it is used primarily by Free Software-loving hippies, but that may begin to change once Mozilla ships their Firefox 3.1 browser. Firefox 3.1 will support — natively, without platform-specific plugins — the Ogg container format, the Ogg video codec (Theora), and the Ogg audio codec (Vorbis). On the desktop, Ogg is supported out-of-the-box by all major Linux distributions, and you can use it on Mac and Windows by installing the <a href="http://www.xiph.org/quicktime/" title="Quicktime components" target="_blank" rel="nofollow">QuickTime components</a> or <a href="http://www.xiph.org/dshow/" title="DirectShow filters" target="_blank" rel="nofollow">DirectShow filters</a>, respectively.</li>
<li><a href="http://en.wikipedia.org/wiki/AVI" title="Wikipedia: Audio Video Interleave (AVI)" target="_blank" rel="nofollow">Audio Video Interleave</a>, usually with an <code>.avi</code> extension. Also known as &#8220;the crappy, obsolete format that just won&#8217;t die.&#8221; The AVI container format was invented by Microsoft in a simpler time when the fact that computers could play video at all was considered pretty amazing. It does not officially support many of the features of more recent container formats; it does not officially support any sort of video metadata; it does not even officially support most of the modern video and audio codecs in use today. Over time, various companies have tried to extend it in generally incompatible ways to support this or that, and it is still the default container format for popular encoders such as <a href="http://www.mplayerhq.hu/DOCS/HTML/en/encoding-guide.html" title="MEncoder" target="_blank" rel="nofollow">MEncoder</a>.</li>
</ul>
<p>This is the briefest of overviews; there are literally dozens of other container formats in use today. DV, NUT, 3GP… the list goes on and on. And there are many others littering the landscape of failed or obsolete technologies, from companies that tried to corner the nascent digital video market by defining their own formats. </p>
<p><a href="http://en.wikipedia.org/wiki/Comparison_of_container_formats" title="Wikipedia: Comparison of container formats" target="_blank" rel="nofollow">Wikipedia has a good roundup of video container formats.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonwhatley.co.uk/mark-pilgrim-a-gentle-introduction-to-video-encoding-container-formats/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get your Website&#8217;s Video Content onto the Search Engines</title>
		<link>http://www.simonwhatley.co.uk/get-your-websites-video-content-onto-the-search-engines</link>
		<comments>http://www.simonwhatley.co.uk/get-your-websites-video-content-onto-the-search-engines#comments</comments>
		<pubDate>Fri, 19 Nov 2010 12:24:51 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[Bing]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Search engine optimization]]></category>
		<category><![CDATA[Search engine results page]]></category>
		<category><![CDATA[search engines]]></category>
		<category><![CDATA[Site map]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[video search engines]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=3769</guid>
		<description><![CDATA[Given the option, most people prefer to watch a video than read good old fashioned text. Therefore, it’s no surprise that video sites such as YouTube, Vimeo and DailyMotion are increasing in populatrity, with YouTube inparticular being recently ranked the third most popular website in the world by Alexa. Anticipating the need to find video content online, the major search engines (Google, Yahoo and Bing) have created their own video search engines. These spider the web for unique video content and publish it in their video sections.]]></description>
			<content:encoded><![CDATA[<p>Given the option, most people prefer to watch a video than read good old fashioned text. Therefore, it&#8217;s no surprise that video sites such as YouTube, Vimeo and DailyMotion are increasing in populatrity, with YouTube inparticular being recently ranked the third most popular website in the world by Alexa.</p>
<p>Anticipating the need to find video content online, the major search engines (Google, Yahoo and Bing) have created their own video search engines. These spider the web for unique video content and publish it in their video sections.</p>
<p>An interesting and cool result of this is that, instead of posting normal text listings, the search engines publish thumbnail screenshots of the videos on the search engine results pages (<abbr title="search engine results page">SERP</abbr>). The thumbnail enables users to see what kind of video they can expect to see, before actually viewing it.</p>
<p><a href="http://www.simonwhatley.co.uk/blog/wp-content/uploads/2010/11/google-video-search.png"><img src="http://www.simonwhatley.co.uk/blog/wp-content/uploads/2010/11/google-video-search-300x194.png" alt="" title="Google Video Search" width="300" height="194" class="aligncenter size-medium wp-image-3772" /></a></p>
<p>Universal search &#8212; a system that blends image, video, news, blog, local and traditional search to form a more complete experience and result set &#8212; is now integral to all three major search engines. Listings that have video thumbnails have been proven to receive a much higher click-through rate than traditional text listings.</p>
<p><a href="http://www.simonwhatley.co.uk/blog/wp-content/uploads/2010/11/google-universal-search.png"><img src="http://www.simonwhatley.co.uk/blog/wp-content/uploads/2010/11/google-universal-search-300x122.png" alt="" title="Google Universal Search" width="300" height="122" class="aligncenter size-medium wp-image-3774" /></a></p>
<p><strong>So, how can you get your pages listed with video thumbnails?</strong></p>
<ol>
<li>Embed your video onto your web page using any number of methods. For example, you could use Flash video, Windows media video, Quicktime, Ogg Theora amongst others. As a point to note, you shouldn&#8217;t use a third-party video site &#8212; such as YouTube, Vimeo and DailyMotion &#8212; for this; the video must be unique to your website.</li>
<li>Create a thumbnail of the video for indexing.</li>
<li>Create four meta tags on the web page that displays the video:

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&lt;meta name=&quot;medium&quot; content=&quot;video&quot; /&gt;
&lt;meta name=&quot;video_type&quot; content=&quot;application/x-shockwave-flash&quot; /&gt;</pre></div></div>

<p>Replace <code>application/x-shockwave-flash</code> with whichever video format you&#8217;re using.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&lt;meta name=&quot;video_height&quot; content=&quot;280&quot; /&gt;
&lt;meta name=&quot;video_width&quot; content=&quot;460&quot; /&gt;</pre></div></div>

<p>Replace the height and width dimensions with those specific to your video.</li>
<li>Create a video sitemap and submit it to the search engines. <a href="http://www.google.com/support/webmasters/bin/answer.py?hl=en&#038;answer=80472" title="Google Video Submission Process" target="_blank" rel="nofollow">Google</a> and <a href="http://video.search.yahoo.com/mrss/submit" title="Yahoo Video Submission Process" target="_blank" rel="nofollow">Yahoo</a> have a clear video submission process, whereas Bing does not, so you should submit to <a href="http://www.bing.com/toolbox/posts/archive/2009/10/09/submit-a-sitemap-to-bing.aspx" title="Bing Sitemap Submission Process"  target="_blank" rel="nofollow">Bing</a> in the normal way.</li>
</ol>
<p>If your page is already in position one for a keyword, that listing will gain a thumbnail once you have optimised it for video. You&#8217;ll also get increased time on site and possibly page views, afterwhich you can develop a better conversion-rate strategy.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6475233631580417";
/* 468x60 Basic */
google_ad_slot = "7117418273";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonwhatley.co.uk/get-your-websites-video-content-onto-the-search-engines/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Online Video Editors</title>
		<link>http://www.simonwhatley.co.uk/online-video-editors</link>
		<comments>http://www.simonwhatley.co.uk/online-video-editors#comments</comments>
		<pubDate>Mon, 12 May 2008 08:17:31 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[automatic software updates]]></category>
		<category><![CDATA[Content]]></category>
		<category><![CDATA[cuts]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[editors]]></category>
		<category><![CDATA[Eyespot]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[free media sets]]></category>
		<category><![CDATA[fully featured editor]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[JumpCut]]></category>
		<category><![CDATA[Motionbox]]></category>
		<category><![CDATA[National Basketball Association]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[online applications]]></category>
		<category><![CDATA[online communities]]></category>
		<category><![CDATA[online editor]]></category>
		<category><![CDATA[online video services]]></category>
		<category><![CDATA[Oscar]]></category>
		<category><![CDATA[Photobucket]]></category>
		<category><![CDATA[The Web]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[white label editor]]></category>
		<category><![CDATA[Yahoo]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=532</guid>
		<description><![CDATA[You're a YouTube addict with a serious amount of uncut video footage that you want to upload. If you want to transform that footage into an Oscar winning video clip that will be viewed millions of times, you'll need to do a little editing. But buying editing tools isn't a cheap pasttime.]]></description>
			<content:encoded><![CDATA[<p>You&#8217;re a <a href="http://www.youtube.com" title="YouTube" target="_blank" rel="nofollow">YouTube</a> addict with a serious amount of uncut video footage that you want to upload. If you want to transform that footage into an Oscar winning video clip that will be viewed millions of times, you&#8217;ll need to do a little editing. But buying editing tools isn&#8217;t a cheap pasttime. However, all is not lost. Ever since the social video market boomed back in 2006, a number of online video services have matured and sought to differentiate themselves by adding editors.</p>
<p>If you&#8217;re already working with video on the web, an online editor is fast, easy and free. In theory, these services could bring video editing to people who would otherwise never engage in it. People already engaging in video editing can benefit from automatic software updates and the sharing made possible by online communities.</p>
<p>Here&#8217;s a brief look at some of the services out there in the ether.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6475233631580417";
/* 468x60 Basic */
google_ad_slot = "7117418273";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<h3>JumpCut</h3>
<p><img src='http://www.simonwhatley.co.uk/blog/wp-content/uploads/2008/05/jumpcut_logo.gif' alt='Jumpcut online video editor' style="float:left; margin-right:5px" />Jumpcut, acquired by Yahoo in 2006, lets you upload video, photos, and audio, or import from Flickr or Facebook, and edit using a Flash interface. Jumpcut is the most developed of the editors, allowing you to add a long list of effects, transitions, and captions to the videos. It also incorporates fine grained control of trimming and audio levels (uploaded background audio and voice). The complexity of the interface makes it great for detailed edits and mashups, but borders on being too heavy an application for the internet.</p>
<p>Checkout the <a href="http://www.jumpcut.com" title="Jumpcut" target="_blank" rel="nofollow">Jumpcut website</a>.</p>
<h3>Eyespot</h3>
<p><img src='http://www.simonwhatley.co.uk/blog/wp-content/uploads/2008/05/eyespot_logo.gif' alt='Eyespot online video editor' style="float:left; margin-right:5px" />Eyespot is a fully featured editor like Jumpcut. It has a drag-and-drop interface that lets you upload video, photos, and audio and then add transitions, effects, titles, and music. The editor isn&#8217;t as attractive and easy to use as Jumpcut&#8217;s, but Eyespot offers a good deal of free media sets from partners like The Colbert Report, Public Enemy, and Dreamworks Pictures. Eyespot&#8217;s white label editor is becoming available on more and more sites, with the <a href="http://myvideo.nba.com/" title="National Basketball Association" target="_blank" rel="nofollow">NBA</a> being a prime example.</p>
<p>Checkout the <a href="http://www.eyespot.com" title="Eyespot" target="_blank" rel="nofollow">Eyespot website</a>.</p>
<h3>Cuts</h3>
<p><img src='http://www.simonwhatley.co.uk/blog/wp-content/uploads/2008/05/cuts_logo.jpg' alt='Cuts online video editor' style="float:left; margin-right:5px" />Taking a slightly different tack, Cuts is a great example of a <a href="http://en.wikipedia.org/wiki/Web_2" title="Web 2.0" target="_blank" rel="nofollow">Web 2.0</a> &#8220;mash-up&#8221;, where two online applications are merged. In this case a video is taken from <a href="http://www.youtube.com" title="YouTube" target="_blank" rel="nofollow">YouTube</a>, <a href="http://www.myspace.com" title="MySpace" target="_blank" rel="nofollow">MySpace</a> or <a href="http://video.google.com"title="Google Video" target="_blank" rel="nofollow">Google</a> and you cut, loop, add preloaded sound effects, and insert captions to enhance the original. Editing is straightforward, consisting of changes to the sound, caption, and navigation levels for the video. Every edit can be re-cut, embedded, and emailed. In the future, Cuts will be expanding into simple editing for digital movies and TV shows.</p>
<p>Checkout the <a href="http://www.cuts.com" title="Cuts" target="_blank" rel="nofollow">Cuts website</a>.</p>
<h3>Motionbox</h3>
<p><img src='http://www.simonwhatley.co.uk/blog/wp-content/uploads/2008/05/motionbox_logo.gif' alt='Motionbox online video editor' style="float:left; margin-right:5px" />Motionbox is best known for deep tagging videos, but they also have an editor that is ideal for trimming your Motionbox content and joining the videos together.</p>
<p>Checkout the <a href="http://www.motionbox.com" title="Motionbox" target="_blank" rel="nofollow">Motionbox website</a>.</p>
<h3>Photobucket</h3>
<p><img src='http://www.simonwhatley.co.uk/blog/wp-content/uploads/2008/05/photobucket_logo.gif' alt='Photobucket online video editor' style="float:left; margin-right:5px" />Photobucket leverages the most recent Adobe Flash tools. Unlike other services, users can &#8220;mash up&#8221; video clips with audio files and photos, and add effects and transitions.</p>
<p>Checkout the <a href="http://www.photobucket.com" title="Photobucket" target="_blank" rel="nofollow">Photobucket website</a>.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6475233631580417";
/* 468x60 Basic */
google_ad_slot = "7117418273";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonwhatley.co.uk/online-video-editors/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web 2.0 and Beyond with Silverlight and XAML</title>
		<link>http://www.simonwhatley.co.uk/web-20-and-beyond-with-silverlight-and-xaml</link>
		<comments>http://www.simonwhatley.co.uk/web-20-and-beyond-with-silverlight-and-xaml#comments</comments>
		<pubDate>Mon, 10 Dec 2007 10:08:29 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[3.0 technologies]]></category>
		<category><![CDATA[ActiveX control]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[brilliant tool]]></category>
		<category><![CDATA[browser-based]]></category>
		<category><![CDATA[designer]]></category>
		<category><![CDATA[e.g]]></category>
		<category><![CDATA[extensible application markup language]]></category>
		<category><![CDATA[favourite editor]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash platform]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[interactivity]]></category>
		<category><![CDATA[Internet Applications]]></category>
		<category><![CDATA[Internet arena]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Magic Extensible Markup Language]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[mobile web browser]]></category>
		<category><![CDATA[moonlight]]></category>
		<category><![CDATA[MXML]]></category>
		<category><![CDATA[operating systems]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[rich internet applciations]]></category>
		<category><![CDATA[Rich Internet Applications]]></category>
		<category><![CDATA[Rich Internet arena]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[stream media]]></category>
		<category><![CDATA[thermo]]></category>
		<category><![CDATA[user interfaces]]></category>
		<category><![CDATA[vector graphics]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[web application development mix]]></category>
		<category><![CDATA[web developers]]></category>
		<category><![CDATA[web world]]></category>
		<category><![CDATA[windows presentation foundation]]></category>
		<category><![CDATA[Windows Workflow Foundation]]></category>
		<category><![CDATA[XAML]]></category>
		<category><![CDATA[XAML technology]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=301</guid>
		<description><![CDATA[Microsoft is finally making real efforts to woo the designer community who have traditionally worshipped the Adobe and Mac product ranges. One new product that addresses this previously overlooked community is Silverlight, which uses the XAML technology and is touted as Microsoft’s Flash killer. For anyone who is keen to listen, Microsoft proposes that Silverlight will achieve similar results to Flash, but it does so in an entirely different way and has different aims. So, the big question is, will Microsoft be able to break the dominance of Adobe’s Flash platform, that is available on the PC, Mac and mobile devices alike? I’m sure the jury is out on that one, but it can be said it is an uphill task.]]></description>
			<content:encoded><![CDATA[<p>Microsoft is finally making real efforts to woo the designer community who have traditionally worshipped the Adobe and Mac product ranges. One new product that addresses this previously overlooked community is <a href="http://www.microsoft.com/silverlight/" title="Microsoft Silverlight" rel="nofollow">Silverlight</a>, which uses the <acronym title="Extensible Application Markup Language">XAML</acronym> technology and is touted as Microsoft&#8217;s Flash killer. For anyone who is keen to listen, Microsoft proposes that Silverlight will achieve similar results to Flash, but it does so in an entirely different way and has different aims. So, the big question is, will Microsoft be able to break the dominance of Adobe&#8217;s Flash platform, that is available on the PC, Mac and mobile devices alike? I&#8217;m sure the jury is out on that one, but it can be said it is an uphill task.</p>
<p>So what is Silverlight and <acronym title="Extensible Application Markup Language">XAML</acronym> proposition? How does it vary from Flash?</p>
<blockquote><p>Microsoft Silverlight is a proprietary runtime for browser-based Rich Internet Applications, providing a subset of the animation, vector graphics, and video playback capabilities of Windows Presentation Foundation. The runtime is available for Microsoft Windows and Mac OS X, with Linux support under development via the third-party Moonlight runtime.</p></blockquote>
<p>Not much difference to Flash so far&#8230;</p>
<blockquote><p>Extensible Application Markup Language (<acronym title="Extensible Application Markup Language">XAML</acronym>) is a declarative XML-based language used to initialize structured values and objects. <acronym title="Extensible Application Markup Language">XAML</acronym> is used extensively in the .NET Framework 3.0 technologies, particularly in Windows Presentation Foundation (<acronym title="Windows Presentation Foundation">WPF</acronym>), where it is used as a user interface markup language to define UI elements, data binding, eventing, and other features, and in Windows Workflow Foundation (<acronym title="Windows Workflow Foundation">WWF</acronym>), in which workflows themselves can be defined using <acronym title="Extensible Application Markup Language">XAML</acronym>.</p></blockquote>
<p>Not much difference to Adobes&#8217;s <acronym title="Magic Extensible Markup Language">MXML</acronym>&#8230;</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6475233631580417";
/* 468x60 Basic */
google_ad_slot = "7117418273";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p><strong>Browser support&#8230;</strong></p>
<p>A frequently asked question is which browsers and operating systems will it run on? If XAML is limited in this area, its usefulness in the web world will also be significantly limited. Previous encarnations of XAML, were limited and justifiably criticised as it would only work with an ActiveX control. However, this has now been resolved with support for Firefox, Opera, Safari and Netscape, Windows and OSX alike. Support is provided by a downloadable plugin, much like Flash!</p>
<p><strong>Like Flash&#8230;</strong></p>
<p>Silverlight enables web developers to create visually rich user interfaces and animations, play video clips and stream media within the web page, again, much like Flash! But it is different! The comparison doesn&#8217;t end there. Animations are organised using timelines and frames within the tool&#8230;how else would you organise an animation without timelines?!</p>
<p><strong>Like Flex&#8230;but not!</strong></p>
<p>Where things differ from Flash are the tools used to develop the Silverlight applications. Silverlight is supposed to be a way of designing and building rich user interfaces. However, standard </acronym><acronym title="Hypertext markup Language">HTML</acronym> elements are missing. The way you design a particular interface is to build a standard <acronym title="Hypertext markup Language">HTML</acronym> form in your favourite editor, e.g. Dreamweaver <acronym title="Creative Suit 3">CS3</acronym>, and then open this page in Silverlight to add the visual enhancements that your design requires. This sounds complicated to say the least. In comparison, Flash has a brilliant tool and framework called <a href="http://www.adobe.com/products/flex/" title="Adobe Flex" target="_blank" rel="nofollow">Flex</a> that does this far more gracefully and with the development of <a href="http://labs.adobe.com/wiki/index.php/Thermo" title="Adobe Thermo" target="_blank" rel="nofollow">Thermo</a>, designers can really feel comfortable in the web application development mix.</p>
<p>Silverlight applications will also run on mobile devices, but the plan is for the applications to only run within a mobile web browser. This is unlike Adobe who are feaverishly developing the <acronym title="Adobe Integrated Runtime">AIR</acronym> runtime to allow Flash applications to run independently of the browser environment and offline.</p>
<p>So, Web 2.0 and beyond with Silverlight and XAML may be somewhat jumping the gun. You may say that there is nothing new or innovative with the Silverlight offering. It does, however, serve to emphasise how important the Rich Internet arena is becoming or indeed has become.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6475233631580417";
/* 468x60 Basic */
google_ad_slot = "7117418273";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonwhatley.co.uk/web-20-and-beyond-with-silverlight-and-xaml/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>The Javascript Programming Language</title>
		<link>http://www.simonwhatley.co.uk/the-javascript-programming-language</link>
		<comments>http://www.simonwhatley.co.uk/the-javascript-programming-language#comments</comments>
		<pubDate>Thu, 06 Sep 2007 13:36:33 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Douglas Crockford]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[videos]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=339</guid>
		<description><![CDATA[Douglas Crockford, in a four part series on Yahoo! Video, gives a great overview of the Javascript programming language and clears ups some misconceptions along the way.]]></description>
			<content:encoded><![CDATA[<p>Douglas Crockford, in a four part series on Yahoo! Video, gives a great overview of the Javascript programming language and clears ups some misconceptions along the way.</p>
<p>Part 1:<br />
<embed src='http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf' flashvars='id=1710507&#038;emailUrl=http%3A%2F%2Fvideo.yahoo.com%2Futil%2Fmail%3Fei%3DUTF-8%26vid%3D111593&#038;imUrl=http%253A%252F%252Fvideo.yahoo.com%252Fvideo%252Fplay%253Fei%253DUTF-8%2526vid%253D111593&#038;imTitle=Douglas%2BCrockford%253A%2B%2526quot%253BThe%2BJavaScript%2BProgramming%2BLanguage%2526quot%253B%252F1%2Bof%2B4&#038;searchUrl=http://video.yahoo.com/search/video?p=&#038;profileUrl=http://video.yahoo.com/video/profile?yid=&#038;creatorValue=ZXJpY21pcmFnbGlh&#038;vid=111593' type='application/x-shockwave-flash' width='425' height='350'></embed></p>
<p>Part 2:<br />
<embed src='http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf' flashvars='id=1710553&#038;emailUrl=http%3A%2F%2Fvideo.yahoo.com%2Futil%2Fmail%3Fei%3DUTF-8%26vid%3D111594&#038;imUrl=http%253A%252F%252Fvideo.yahoo.com%252Fvideo%252Fplay%253Fei%253DUTF-8%2526vid%253D111594&#038;imTitle=Douglas%2BCrockford%253A%2B%2526quot%253BThe%2BJavaScript%2BProgramming%2BLanguage%2526quot%253B%252F2%2Bof%2B4&#038;searchUrl=http://video.yahoo.com/search/video?p=&#038;profileUrl=http://video.yahoo.com/video/profile?yid=&#038;creatorValue=ZXJpY21pcmFnbGlh&#038;vid=111594' type='application/x-shockwave-flash' width='425' height='350'></embed></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6475233631580417";
/* 468x60 Basic */
google_ad_slot = "7117418273";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Part 3:<br />
<embed src='http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf' flashvars='id=1710607&#038;emailUrl=http%3A%2F%2Fvideo.yahoo.com%2Futil%2Fmail%3Fei%3DUTF-8%26vid%3D111595&#038;imUrl=http%253A%252F%252Fvideo.yahoo.com%252Fvideo%252Fplay%253Fei%253DUTF-8%2526vid%253D111595&#038;imTitle=Douglas%2BCrockford%253A%2B%2526quot%253BThe%2BJavaScript%2BProgramming%2BLanguage%2526quot%253B%252F3%2Bof%2B4&#038;searchUrl=http://video.yahoo.com/search/video?p=&#038;profileUrl=http://video.yahoo.com/video/profile?yid=&#038;creatorValue=ZXJpY21pcmFnbGlh&#038;vid=111595' type='application/x-shockwave-flash' width='425' height='350'></embed></p>
<p>Part 4:<br />
<embed src='http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf' flashvars='id=1710658&#038;emailUrl=http%3A%2F%2Fvideo.yahoo.com%2Futil%2Fmail%3Fei%3DUTF-8%26vid%3D111596&#038;imUrl=http%253A%252F%252Fvideo.yahoo.com%252Fvideo%252Fplay%253Fei%253DUTF-8%2526vid%253D111596&#038;imTitle=Douglas%2BCrockford%253A%2B%2526quot%253BThe%2BJavaScript%2BProgramming%2BLanguage%2526quot%253B%252F4%2Bof%2B4&#038;searchUrl=http://video.yahoo.com/search/video?p=&#038;profileUrl=http://video.yahoo.com/video/profile?yid=&#038;creatorValue=ZXJpY21pcmFnbGlh&#038;vid=111596' type='application/x-shockwave-flash' width='425' height='350'></embed></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6475233631580417";
/* 468x60 Basic */
google_ad_slot = "7117418273";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Slides for the presentation can be downloaded from:</p>
<p><a href="http://yuiblog.com/assets/crockford/javascript.zip" title="The Javascript Programming Language" rel="nofollow">http://yuiblog.com/assets/crockford/javascript.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonwhatley.co.uk/the-javascript-programming-language/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Humanity Lobotomy &#8211; Save the Internet</title>
		<link>http://www.simonwhatley.co.uk/humanity-lobotomy-save-the-internet</link>
		<comments>http://www.simonwhatley.co.uk/humanity-lobotomy-save-the-internet#comments</comments>
		<pubDate>Sat, 17 Mar 2007 13:16:18 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Strategy]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Culture]]></category>
		<category><![CDATA[humanity]]></category>
		<category><![CDATA[labotomy]]></category>
		<category><![CDATA[Politics & Money]]></category>
		<category><![CDATA[save the internet]]></category>
		<category><![CDATA[The Web]]></category>
		<category><![CDATA[Tim Berners-Lee]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[world wide web]]></category>

		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=161</guid>
		<description><![CDATA[60,000 years ago people began to speak. 5,000 years ago people began to write. 600 years ago people began to publish. 47 years ago people began networking computers together. 15 years ago Tim Berners-Lee created the World Wide Web. Its all pure, clear, free, unregulated information. No middleman, you produce, you distribute it. However, net neutrality and the internet as we know it is under threat from the big corporates. It happened with the press, it happened with radio and now its happening with the internet. "You know who won't be able to pay, it is the little guys and you'll be crushing the future of inovation..." This video is a look at the history of the communication and where it's going next.]]></description>
			<content:encoded><![CDATA[<p>60,000 years ago people began to speak.</p>
<p>5,000 years ago people began to write.</p>
<p>600 years ago people began to publish.</p>
<p>47 years ago people began networking computers together.</p>
<p>15 years ago Tim Berners-Lee created the World Wide Web.</p>
<p>Its all pure, clear, free, unregulated information. No middleman, you produce it, you distribute it. However, net neutrality and the internet as we know it is under threat from the big corporates. It happened with the press, it happened with radio and now its happening with the internet.</p>
<p>&#8220;You know who won&#8217;t be able to pay, it is the little guys and you&#8217;ll be crushing the future of inovation&#8230;&#8221; This video is  a look at the history of the communication and where it&#8217;s going next.</p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/JP_3WnJ42kw"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/JP_3WnJ42kw" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
<p align="center"><script type="text/javascript"><!--
google_ad_client = "pub-6475233631580417";
/* 468x60 Basic */
google_ad_slot = "7117418273";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonwhatley.co.uk/humanity-lobotomy-save-the-internet/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

