<?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>SemanticMetadata.net &#187; Flash</title>
	<atom:link href="http://www.semanticmetadata.net/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.semanticmetadata.net</link>
	<description></description>
	<lastBuildDate>Wed, 11 Jan 2012 16:35:54 +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>Converting video for flash video players to H.264/AAC</title>
		<link>http://www.semanticmetadata.net/2009/07/10/converting-video-for-flash-video-players-to-h-264aac/</link>
		<comments>http://www.semanticmetadata.net/2009/07/10/converting-video-for-flash-video-players-to-h-264aac/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 13:58:14 +0000</pubDate>
		<dc:creator>Mathias Lux</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Multimedia]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[h.264]]></category>
		<category><![CDATA[Transcoding]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.semanticmetadata.net/?p=534</guid>
		<description><![CDATA[Have you ever tried to put a video online? Well actually it is quite easy if you user YouTube. No matter what codec you use you have a good chance to get a decent result. If you want to host the video yourself you basically need a flash video player (assuming that flash is the [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever tried to put a video online? Well actually it is quite easy if you user <a href="http://www.youtube.com/user/dermotte">YouTube</a>. No matter what codec you use you have a good chance to get a decent result. If you want to host the video yourself you basically need a flash video player (assuming that flash is the most widely spread tool on multiple platforms) like the <a href="http://www.longtailvideo.com/players/jw-flv-player/">JW FLVPlayer</a>. Finally you&#8217;ll need to get your video file to a format flash can play using progressive download (which means you can watch it while downloading, just like on YouTube).</p>
<p>Since Adobe Flash Player 9 Update 3Flash can play back MP4 files with H.264 video and AAC audio streams [see <a href="http://en.wikipedia.org/wiki/Adobe_Flash_Player">here</a>], so we can just focus on this one. First step is to get a ffmpeg version compiled with libx264 and libfaac. You might check this on the command line, just execute ffmpeg without parameters:</p>
<blockquote><p>FFmpeg version SVN-r16573, Copyright (c) 2000-2009 Fabrice Bellard, et al.<br />
configuration: <em>[...]</em> <strong>&#8211;enable-libfaac</strong> &#8211;enable-libgsm <strong>&#8211;enable-libx264</strong> <em>[...]</em></p></blockquote>
<p>The bold ones should be there to support the needed codecs. I used FFmpeg Revision 16537 from <a href="http://ffmpeg.arrozcru.org/builds/">this page</a>, which works fine.</p>
<p>If the libraries are there you can proceed to the next step:</p>
<blockquote><p>ffmpeg -i &lt;inputfile&gt; -b 1024k -vcodec libx264 \\<br />
-acodec libfaac -ab 160k &lt;output.mp4&gt;</p></blockquote>
<p>This converts your input file to the needed mp4 file. You can also change the size of the file with the switch &#8220;-s&#8221;, like for instance &#8220;-s 320&#215;240&#8243;. Take a close look on the switches &#8220;-b&#8221; and &#8220;-ab&#8221; which define video and audio bitrate. If the sum of both bitrates is too high for the network the user will not be able to watch the video smoothly.</p>
<p>One might think s/he&#8217;s finished, but no &#8230; unfortunately progressive download doesn&#8217;t work with too many mp4 files. The file index (an atom == &#8220;mp4 metadata unit&#8221;) containing the file index (== the description where the video and the audio stream are located in the file and how they are stored) is at the end of the MP4 file. So the flash player has to download the whole file before starting the playback, ka-ching!</p>
<p>Fortunately there is an ffmpeg tool called <em>qt-faststart</em> (linux users will find it in the tools folder of ffmpeg) moving the index from end to start. For windows user a precompiled binary can be found <a href="http://www.jameshay.net/blog/?p=4">here</a>. Use this to move the metadata:</p>
<blockquote><p>qt-faststart &lt;infile.mp4&gt; &lt;outfile.mp4&gt;</p></blockquote>
<p>Now you are done with the file. Use for instance the <a href="http://www.longtailvideo.com/support/jw-player-setup-wizard">JW FLVPlayer setup wizard</a> to create an HTML snippet. Note that in height you have to add 19 pixels to your video dimensions, as this is the height of the control bar of the player <img src='http://www.semanticmetadata.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.semanticmetadata.net/2009/07/10/converting-video-for-flash-video-players-to-h-264aac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presenting MPEG-4 AVC / H.264 Videos on the Web with Flash 9</title>
		<link>http://www.semanticmetadata.net/2008/02/07/presenting-mpeg-4-avc-h264-videos-on-the-web-with-flash-9/</link>
		<comments>http://www.semanticmetadata.net/2008/02/07/presenting-mpeg-4-avc-h264-videos-on-the-web-with-flash-9/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 10:17:18 +0000</pubDate>
		<dc:creator>Mathias Lux</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Multimedia]]></category>
		<category><![CDATA[Web2.0]]></category>
		<category><![CDATA[YouTube]]></category>
		<category><![CDATA[video flash multimedia h.264 mpeg avc]]></category>

		<guid isPermaLink="false">http://www.semanticmetadata.net/2008/02/07/presenting-mpeg-4-avc-h264-videos-on-the-web-with-flash-9/</guid>
		<description><![CDATA[While Adobe Flash (former Macromedia Flash) managed to take the top position of WWW based tools for watching video it was stuck with these flv video files for a long time. With version 9 now H.264 (or AVC as it is called in context of MPEG-4) encoded videos are supported along with popular container formats [...]]]></description>
			<content:encoded><![CDATA[<p>While <a href="http://www.adobe.com">Adobe Flash</a> (former Macromedia Flash) managed to take the top position of WWW based tools for watching video it was stuck with these <a href="http://en.wikipedia.org/wiki/Flash_Video">flv video files</a> for a long time. With version 9 now <a href="http://en.wikipedia.org/wiki/H.264">H.264</a> (or AVC as it is called in context of MPEG-4) encoded videos are supported along with popular container formats like mp4, <a href="http://en.wikipedia.org/wiki/.mov#QuickTime_file_format">mov</a> or <a href="http://en.wikipedia.org/wiki/3gp">3gp</a>. Or in short words: Flash can now play iPod and PSP videos.</p>
<p>Now for the meat: How to get your AVC files into a web page?</p>
<ul>
<li><a href="http://www.semanticmetadata.net/wp-content/uploads/2008/02/ipod-extension-mediacoder.png" title="ipod-extension-mediacoder.png"><img src="http://www.semanticmetadata.net/wp-content/uploads/2008/02/ipod-extension-mediacoder.thumbnail.png" alt="ipod-extension-mediacoder.png" align="right" border="0" hspace="4" vspace="4" /></a>Encode your video file. Use <a href="http://mediacoder.sourceforge.net/">MediaCoder</a> or any other tool to create an iPod or PSP compatible video. Take care that you select <strong>AVC</strong> for your target codec. It&#8217;s called <em>MPEG-4 AVC</em> in the PSP as well as in the iPod extension of Mediacoder for example (see screenshot).</li>
<li>Download the <a href="http://www.jeroenwijering.com/?item=JW_FLV_Media_Player">FLV Mediaplayer</a> and <a href="http://www.7-zip.org">unzip</a> it somewhere.</li>
<li>Create a website where your video should be played and move the FLV Mediaplayer along with associated files and the video in a subdirectory of the page&#8217;s directory.</li>
<li>Use the <a href="http://www.jeroenwijering.com/?page=wizard">setup wizard</a> to create the code for embedding your player.
<ul>
<li>Select &#8220;Mediaplayer with a single FLV&#8221;</li>
<li>Source: [relative subdirectory]/mediaplayer.flv</li>
<li>Fill in width &amp; height (you chose it in your encoding tool)</li>
<li>Put down the path to the .mp4 file</li>
</ul>
</li>
<li>Copy the resulting code to your web page and test it in a browser</li>
</ul>
<p>That&#8217;s the easiest way to present a video. More sophisticated methods include streaming or configuring the player with JavaScript. You can also add playlists, show a logo and jump to timepoints.</p>
<p><strong>Related Links</strong></p>
<ul>
<li> Here is also a tutorial on <a href="http://www.jeroenwijering.com/?item=Embedding_Flash">how to embed the mediaplayer on your page<br />
</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.semanticmetadata.net/2008/02/07/presenting-mpeg-4-avc-h264-videos-on-the-web-with-flash-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Mosaic Images with LIRe</title>
		<link>http://www.semanticmetadata.net/2007/07/19/creating-mosaic-images-with-lire/</link>
		<comments>http://www.semanticmetadata.net/2007/07/19/creating-mosaic-images-with-lire/#comments</comments>
		<pubDate>Thu, 19 Jul 2007 13:18:12 +0000</pubDate>
		<dc:creator>Mathias Lux</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Lire]]></category>
		<category><![CDATA[LireDemo]]></category>
		<category><![CDATA[Mosaic]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.semanticmetadata.net/2007/07/19/creating-mosaic-images-with-lire/</guid>
		<description><![CDATA[As already noted in the last post, LireDemo &#8211; the Swing based demonstrator of the capabilities of the LIRe library &#8211; includes now a mosaic creation option. So what actually is the mosaic? Let&#8217;s explain it this way: You have one input image, which should be resented through multiple other images (in the index). The [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.semanticmetadata.net/wp-content/uploads/2007/07/mosaic-example.png" title="mosaic-example.png"><img src="http://www.semanticmetadata.net/wp-content/uploads/2007/07/mosaic-example.thumbnail.png" title="mosaic-example.png" alt="mosaic-example.png" align="right" /></a>As already noted in the last post, LireDemo &#8211; the Swing based demonstrator of the capabilities of the LIRe library &#8211; includes now a mosaic creation option. So what actually is the mosaic? Let&#8217;s explain it this way: You have one <em>input image</em>, which should be resented through multiple other images (in the <em>index</em>). The mosaic image tries to look like the <em>input image</em> but replaces segments of the input image with images from the index. The example in above image shows the input image left and the mosaic on the right hand side (click for a larger version). Special thanks got to <em>Lukas Esterle</em> and <em>Manuel Warum</em>, who contributed the mosaic-engine!</p>
<p>So how can one make such an mosaic image: (i) A first step is to select an input image. (ii) Then configure the number of tiles per row and column of the mosaic. (iii) Click &#8220;Start&#8221; to run the mosaic  engine. (iv) After some processing time, which can be rather long depending on the number of tiles and the size of the input image you will see the result. (v) Save using the button on the bottom right corner.</p>
<p>For visual people I&#8217;ve put together a <a href="http://www.semanticmetadata.net/demo/liredemo-mosaic.htm">flash tutorial</a>:</p>
<p><a href="http://www.semanticmetadata.net/demo/liredemo-mosaic.htm" title="demo-screenshot.png"></p>
<p style="text-align: center"><img src="http://www.semanticmetadata.net/wp-content/uploads/2007/07/demo-screenshot.png" alt="demo-screenshot.png" /></p>
<p></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.semanticmetadata.net/2007/07/19/creating-mosaic-images-with-lire/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

