<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.st-f.net/index.php?feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>*stef . blog*</title>
  <link>http://blog.st-f.net/index.php?</link>
  <description>stef blog | Même la pensée d'une fourmi peut toucher le ciel (proverbe japonais) | News du monde et du web, robotique, humour, loisirs, culture, actionscript.</description>
  <language>fr</language>
  <pubDate>Mon, 08 Feb 2010 21:59:54 +0000</pubDate>
  <copyright>stef blog</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>My journey through ffmpeg and php on mamp: a n00b perspective on server-side video encoding</title>
    <link>http://blog.st-f.net/index.php?post/2010/01/18/My-journey-through-ffmpeg-%3A-a-n00b-perspective-on-server-side-video-encoding</link>
    <guid isPermaLink="false">urn:md5:f6cf7372feadc07c635ba8b85833e9e8</guid>
    <pubDate>Mon, 18 Jan 2010 09:20:00 +0100</pubDate>
    <dc:creator>stef blog</dc:creator>
        <category>Actionscript &amp; Flash</category>
        <category>ffmpeg</category><category>flash</category><category>flex</category><category>h264</category><category>libx264</category><category>php</category>    
    <description>    &lt;p&gt;Yesterday I spent almost seven hours on the server-side of one of my (numerous) personal projects. It's not that I really hate server-side coding, but I'm a front-end guy, so it can be a pain to do that part. So if you're on your way to prototype the next youtube and you're not an expert on server-side stuff, this post is for you.
After setting up the main class for uploading in php, the first thing you want to do is to call shell_exec($cmd). This is an amazing function in php, allowing you to call any shell command. $cmd will be in that case the ffmpeg command line.
To do so, you need a binary. On mac os x, the simpliest thing is to install ffmpegx (the gui of ffmpeg), open the package and copy the ffmpeg binary into your &lt;q&gt;usr/local/bin&lt;/q&gt; folder so it's accessible from everywhere.
At this point, it's really easy. What can be more tricky is the h264 conversion to make it compatible with flash player 9 and more. What I discovered there is that the h264 codec for encoding is not efficient. I experienced lots of artifacts and bad quality encodings.
After going through ALL the ffmpeg command line options - and there are a lot - deblocking, deinterlace, pixel shapes, bitrate etc, it seems that the codec itself was the problem. On some videos, most of them coming from a Canon 500D camera (which are already h264 encoded files!), it was simply not possible to convert them in any format with a good quality.
The solution is to call another library called libx264. The main problem is you need to recompile your ffmpeg binary to include that lib. Once you try to do so - using ./configure --enable-libx264 - you get a nice error, saying &quot;libx264 not found&quot;. I tried many forums, as I'm not used to that kind of coding. It's really tricky to find out the solution if you're not familiar with C programming, and the people working on that kinds of projects (I'm talking about libx264, compiling codecs etc.) are not the most sociable and gentle people on earth, from far. You must be a nerd to enter that world. I mean a proper one. I even try to compile myself libx264 and I also got errors while building, and it became more and more obvious that the solution wasn't to try to fix those low-level problems.
So I finally found the solution on that website: &lt;a href=&quot;http://24b6.net/content/ffmpeg-binary&quot;&gt;http://24b6.net/content/ffmpeg-binary&lt;/a&gt; (not to be confused with &lt;a href=&quot;http://www.27bslash6.com&quot;&gt;http://www.27bslash6.com&lt;/a&gt;, which is a very interesting website for a completely different reason^^), which offers you a compiled binary for linux and mac os x. Untar the file, then run the script using the terminal. It replaces the ffmpeg binary with a new one that includes libx264 and other codecs like libfaac for audio, and many others.
Then replace the video codec in the command line to libx264, and don't forget to add aac as the audio codec, so Flash player will properly handle it. All the videos I tried works, in a lot of formats and from different devices. You can use that line, it gives an average good result on everything:
&lt;q&gt;/usr/local/bin/ffmpeg -i yourfile.mov -vcodec libx264 -b 1200 -ar 24000 -ab 32 -acodec aac -ab 96k yourfile.mp4&lt;/q&gt;
&lt;q&gt;/usr/local/bin/&lt;/q&gt; needs to be added in order to work in php using mamp, on most of the webserver it's not needed.
Oh and one last thing: don't forget to change the upload_max_size and post_max_size in your php.ini config file, so you won't be limited by the 32M default values when uploading large files.&lt;/p&gt;</description>
    
    
    
      </item>
    
  <item>
    <title>Designing for social traction</title>
    <link>http://blog.st-f.net/index.php?post/2009/10/15/Designing-for-social-traction</link>
    <guid isPermaLink="false">urn:md5:039111705aaf0248cafbacbfebf6b32f</guid>
    <pubDate>Thu, 15 Oct 2009 13:32:00 +0200</pubDate>
    <dc:creator>stef blog</dc:creator>
        <category>Marketing</category>
            
    <description>    A very nice slideshow on how to use the social networks leverage.&lt;br /&gt;
&lt;img style=&quot;visibility:hidden;width:0px;height:0px;&quot; border=0 width=0 height=0 src=&quot;http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNTU2MDY*MDk3MTQmcHQ9MTI1NTYwNjQxMzA4OSZwPTEwMTkxJmQ9c3NfZW1iZWQmZz*yJm89NjJjMTYwY2U3ZjQzNGU4MGFiNDljY2QyYmQ*YmUyZGYmb2Y9MA==.gif&quot; /&gt;&lt;div style=&quot;width:425px;text-align:left&quot; id=&quot;__ss_1837099&quot;&gt;&lt;object style=&quot;margin:0px&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=delve-designing-for-social-traction-090810123825-phpapp01&amp;stripped_title=designing-for-social-traction&quot; /&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;/&gt;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot;/&gt;&lt;embed src=&quot;http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=delve-designing-for-social-traction-090810123825-phpapp01&amp;stripped_title=designing-for-social-traction&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style=&quot;font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;&quot;&gt;View more &lt;a style=&quot;text-decoration:underline;&quot; href=&quot;http://www.slideshare.net/&quot;&gt;documents&lt;/a&gt; from &lt;a style=&quot;text-decoration:underline;&quot; href=&quot;http://www.slideshare.net/bokardo&quot;&gt;Joshua Porter&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;</description>
    
    
    
      </item>
    
  <item>
    <title>Microsoft is back</title>
    <link>http://blog.st-f.net/index.php?post/2009/09/24/Microsoft-is-back</link>
    <guid isPermaLink="false">urn:md5:ece10a8e6df045e926948e10b80d5523</guid>
    <pubDate>Thu, 24 Sep 2009 00:21:00 +0200</pubDate>
    <dc:creator>stef blog</dc:creator>
        <category>Marketing</category>
        <category>Microsoft</category><category>viral marketing</category>    
    <description>    &lt;p&gt;I know for those who knows me it's a pretty weird title, sorry for that, but I have found a few things recently that made me think that something is coming. Watch it &lt;a href=&quot;http://blogs.telegraph.co.uk/technology/iandouglas/100003630/microsoft-gets-the-windows-7-party-started/&quot;&gt;on The Telegraph website&lt;/a&gt;. It's a 6 minutes video, but don't cry, just watch the first minute or whatever time you can support that.&lt;br /&gt;
&lt;br /&gt;
There's something interesting in that video. Go to exactly 0:55 and listen for 10 seconds. You can clearly hear a voice over saying &quot;call customer service if you have any questions&quot;. I can't imagine that's not made on purpose. It's too strange. Maybe not as strange as the comedians, overplaying all the time, or the fact that you can see a geek, a granny, a housewife and a black dude acting like crazy party animals (duh), but still.&lt;br /&gt;
&lt;br /&gt;
The author of that article didn't liked it but its quite possible that it's exactly what Microsoft wants. Because they are used to be on the bottom of the list when it's about to be the coolest kid in town. So why not saying &quot;yeah we used to suck, laugh at us while you can, but we are coming&quot;. Maybe I'm totally wrong there, but if that's the plan, it's very clever.&lt;br /&gt;
&lt;br /&gt;
I was even more convinced of that theory when I watched &lt;a href=&quot;http://www.youtube.com/watch?v=zHNp-5yNKaE&quot;&gt;the second video&lt;/a&gt;. It's so weird. It seems like Steve Balmer himself did it on crack. And that's exactly what geeks like. And the stats proves it : more than 700'000 views. 2nd most viewed video on sciences / technology. Only men between 24 and 55, which means obviously geeks. And if there was a need for another proof, &lt;a href=&quot;http://news.cnet.com/8301-17852_3-10350191-71.html?tag=TOCmoreStories.0&quot;&gt;look at how happy they are at CNET&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
And even more than that: I just spend 20 minutes to write about Microsoft, and quite positively, and you also spent around the same time reading that if you watched the videos!&lt;br /&gt;&lt;/p&gt;</description>
    
    
    
      </item>
    
  <item>
    <title>Rio / Paris - Sanaa / Moroni</title>
    <link>http://blog.st-f.net/index.php?post/2009/07/02/Rio-/-Paris-Sanaa-/-Moroni</link>
    <guid isPermaLink="false">urn:md5:1024e105ea799bf292f90c12fd89826a</guid>
    <pubDate>Thu, 02 Jul 2009 02:41:00 +0200</pubDate>
    <dc:creator>stef blog</dc:creator>
        <category>Politique</category>
            
    <description>    &lt;p&gt;Marrant comme deux evenements proches peuvent être percus completement differemment. Le crash du vol Rio / Paris avait entraine de nombreux articles,  et avait occupé tous les medias pendant des jours. On a vu des minutes de silence pendant les matchs de foot, les politiques s'etaient deplaces pour en parler. Aujourd'hui le vol Sanaa / Moroni qui s'est ecrasé en mer le 30 juin ne fait pas la une des journaux. On parle encore plus du Rio / Paris, meme maintenant.&lt;br /&gt;
&lt;br /&gt;
Verra-t-on des minutes de silence? Un deuil national? Il y avait 66 francais a bord de cet avion, soit a peu pres le nombre de francais dans le vol Rio / Paris (72). &lt;br /&gt;
&lt;br /&gt;
Evidemment, si on compare les chiffres, le crash du Rio / Paris a fait plus de victimes. C'est un des pires crash de l'histoire. Mais n'empeche. C'est peut-etre de la mauvaise fois de ma part mais je pense que le public de Roland Garros par exemple se sent plus proche des passagers d'un vol transatlantique que d'un vol interne a l'Afrique. J'espere que je me trompe et que ca viendra plus tard. Mais j'en doute. Tout ca est tres cynique et aussi tres révelateur. Voilà, ça c'était pour pisser dans un violon, ca faisait longtemps.&lt;/p&gt;</description>
    
    
    
      </item>
    
  <item>
    <title>Sound spectrum + Papervision 2.0 + TweenMax = SOURCE CODE !</title>
    <link>http://blog.st-f.net/index.php?post/2009/02/24/Sound-spectrum-Papervision-20-TweenMax-SOURCE-CODE</link>
    <guid isPermaLink="false">urn:md5:eb0423ef8aca505a8c456790652131e1</guid>
    <pubDate>Tue, 24 Feb 2009 01:41:00 +0100</pubDate>
    <dc:creator>stef blog</dc:creator>
        <category>Actionscript &amp; Flash</category>
            
    <description>    &lt;p&gt;&lt;a href=&quot;http://lab.st-f.net/AS3/soundSpectrum/soundSpectrum.html&quot;&gt;&lt;img src=&quot;http://blog.st-f.net/~stef/blog/public/images/soundspectrum.gif&quot; alt=&quot;soundspectrum&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
Remember &lt;a href=&quot;http://lab.st-f.net/AS3/soundSpectrum/soundSpectrum.html&quot;&gt;that little experiment &lt;/a&gt; I made last time? So now you can use it - here's &lt;a href=&quot;http://lab.st-f.net/AS3/soundSpectrum/soundSpectrumClass.as&quot;&gt;the main class&lt;/a&gt; and the &lt;a href=&quot;http://lab.st-f.net/AS3/soundSpectrum/soundSpectrum.fla&quot;&gt;FLA&lt;/a&gt;. More info on the technique &lt;a href=&quot;http://blog.st-f.net/index.php?post/1970/01/01/Sound-spectrum-Papervision-20-TweenMax-visualizer-experiment&quot;&gt;here&lt;/a&gt;
&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description>
    
    
    
      </item>
    
  <item>
    <title>Eric Zemmour, ou comment se planter tout simplement</title>
    <link>http://blog.st-f.net/index.php?post/2009/02/13/Eric-Zemmour-ou-comment-se-planter-tout-simplement</link>
    <guid isPermaLink="false">urn:md5:1b5bf6145f9e5b8d01ff12eef96b4fd0</guid>
    <pubDate>Fri, 13 Feb 2009 15:16:00 +0100</pubDate>
    <dc:creator>stef blog</dc:creator>
        <category>Politique</category>
            
    <description>    &lt;div align=&quot;center&quot;&gt;&lt;object width=&quot;480&quot; height=&quot;405&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.dailymotion.com/swf/kFLXVx5xBAVUQTWt4a&amp;related=1&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.dailymotion.com/swf/kFLXVx5xBAVUQTWt4a&amp;related=1&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;480&quot; height=&quot;405&quot; allowFullScreen=&quot;true&quot; allowScriptAccess=&quot;always&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;/div&gt;</description>
    
    
    
      </item>
    
  <item>
    <title>Internet = minitel 2.0</title>
    <link>http://blog.st-f.net/index.php?post/2009/02/11/Internet-minitel-20</link>
    <guid isPermaLink="false">urn:md5:782bb1efb09773098e0d3f8669ec2cf5</guid>
    <pubDate>Wed, 11 Feb 2009 11:22:00 +0100</pubDate>
    <dc:creator>stef blog</dc:creator>
        <category>2.0</category>
            
    <description>    &lt;object width=&quot;400&quot; height=&quot;327&quot;&gt;&lt;param name=&quot;allowfullscreen&quot; value=&quot;true&quot; /&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot; /&gt;&lt;param name=&quot;movie&quot; value=&quot;http://vimeo.com/moogaloop.swf?clip_id=3110600&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1&quot; /&gt;&lt;embed src=&quot;http://vimeo.com/moogaloop.swf?clip_id=3110600&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1&quot; type=&quot;application/x-shockwave-flash&quot; allowfullscreen=&quot;true&quot; allowscriptaccess=&quot;always&quot; width=&quot;400&quot; height=&quot;327&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;a href=&quot;http://vimeo.com/3110600&quot;&gt;Minitel 2.0 par Benjamin Bayart&lt;/a&gt; from &lt;a href=&quot;http://vimeo.com/gaspard&quot;&gt;gaspard&lt;/a&gt; on &lt;a href=&quot;http://vimeo.com&quot;&gt;Vimeo&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Excellente présentation de Benjamin Bayart au rencontres mondiales du logiciel libre d’Amiens, en juillet 2007. Via &lt;a href=&quot;http://www.korben.info/le-web-20-est-il-un-retour-vers-le-minitel.html&quot; hreflang=&quot;fr&quot;&gt;Korben&lt;/a&gt;.  Plus d'infos &lt;a href=&quot;http://ecrans.fr/Tout-le-monde-a-interet-a,5762.html&quot; hreflang=&quot;fr&quot;&gt;ici&lt;/a&gt;.&lt;br /&gt;</description>
    
    
    
      </item>
    
</channel>
</rss>