<?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/"
	>

<channel>
	<title>kbps &#187; tutorial</title>
	<atom:link href="http://www.kilobitspersecond.com/category/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kilobitspersecond.com</link>
	<description>A blog about Destroyer, foobar2000, and Last.fm.</description>
	<pubDate>Mon, 05 Jan 2009 19:18:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Embed YouTube Videos without&#160;YouTube</title>
		<link>http://www.kilobitspersecond.com/2007/03/04/embed-youtube-videos-without-youtube/</link>
		<comments>http://www.kilobitspersecond.com/2007/03/04/embed-youtube-videos-without-youtube/#comments</comments>
		<pubDate>Sun, 04 Mar 2007 17:51:03 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
		
		<category><![CDATA[music]]></category>

		<category><![CDATA[tech]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[videos]]></category>

		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.kilobitspersecond.com/2007/03/04/embed-youtube-videos-without-youtube/</guid>
		<description><![CDATA[I hate just posting a YouTube video here, in part because it&#8217;s lazy and boring, but also because YouTube videos are liable to disappear at any moment, and even if they don&#8217;t, YouTube has to die someday, right?, whereas kbps will last forever, and then hundreds of years from now its YouTube posts will be [...]]]></description>
			<content:encoded><![CDATA[<p>I hate <em>just</em> posting a YouTube video here, in part because it&#8217;s lazy and boring, but also because YouTube videos are liable to disappear at any moment, and even if they don&#8217;t, YouTube <em>has</em> to die <em>some</em>day, right?, whereas kbps will <em><strong>last forever</strong></em>, and then hundreds of years from now its YouTube posts will be inexplicably empty.</p>
<p>Part of what helped launch YouTube to the popularity it enjoys now is the ease of its player.  Everybody has Flash, so while most video sites were making you do 30 minutes of work installing plugins to play a 12-second clip, YouTube just worked.  The object that&#8217;s embedded on a YouTube page is an .swf (Shockwave Flash) file, a video player in which an .flv (Flash video) file is &#8220;wrapped.&#8221;  So, in order to host a video yourself, you need these two components.</p>
<p>The .flv file &#8212; the video itself &#8212; can actually be downloaded directly from YouTube quickly and easily with the <a href="http://1024k.de/bookmarklets/video-bookmarklets.html">All-In-One Video Bookmarklet</a>.  Just put it in your links toolbar, then on any YouTube page, click it and follow the download link.  Alternately, you can use the <a href="https://addons.mozilla.org/en-US/firefox/addon/2390">VideoDownloader</a> Firefox extension.</p>
<p>You can&#8217;t similarly steal YouTube&#8217;s .swf video player, so instead, use the open-source <a href="http://www.jeroenwijering.com/?item=Flash_Video_Player">Flash Video Player</a> by Jeroen Wijering.  It&#8217;s a .zip file with several readmes and sources, but all you really need from it is the flvplayer.swf file.</p>
<p>Upload flvplayer.swf and the .flv video file to your server, and use embed code similar to YouTube&#8217;s:</p>
<div class="code">&lt;embed src=&#8221;http://www.yourhost.com/flvplayer.swf&#8221; width=&#8221;425&#8243; height=&#8221;350&#8243; bgcolor=&#8221;#FFFFFF&#8221; type=&#8221;application/x-shockwave-flash&#8221; pluginspage=&#8221;http://www.macromedia.com/go/getflashplayer&#8221; flashvars=&#8221;file=http://www.yourhost.com/videos/skatebordinggirls.flv&#8221; /&gt;</div>
<p>Full documentation on the available options comes in a readme.html file.  But essentially that&#8217;s all it takes.  And of course, you&#8217;re not limited to YouTube, as there are plenty of software tools to convert most video formats to .flv, for example <a href="http://mediacoder.sourceforge.net/download.htm">MediaCoder</a>.</p>
<p>Here&#8217;s the result:</p>
<p><embed src="http://www.kilobitspersecond.com/flvplayer.swf" width="425" height="349" bgcolor="#080808" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=http://www.kilobitspersecond.com/videos/skatebordinggirls.flv&#038;usefullscreen=false&#038;image=/images/skatebordinggirls.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kilobitspersecond.com/2007/03/04/embed-youtube-videos-without-youtube/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
