<?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <title>Latest snippets tagged video</title>
  <link rel="alternate" href="http://snippets.prendreuncafe.com/snippets/tagged/video/order_by/date"></link>
  <id>http://snippets.prendreuncafe.com/snippets/tagged/video/order_by/date</id>
  <updated>2008-03-26T12:07:05Z</updated>
  <author>
    <name>Symfony</name>
    <author_email>noreply@symfony-project.com</author_email>
  </author>
<entry>
  <title>Enbarquer un objet QuickTime en XHTML</title>
  <link href="http://snippets.prendreuncafe.com/snippet/82"></link>
  <updated>2008-03-26T12:07:05Z</updated>
  <id>82</id>
  <summary type="html">Parfois, on a besoin d'inclure une vidéo QuickTime (.MOV) dans une page XHTML :

[code xml]
&lt;!--[if IE]&gt;
&lt;object id=&quot;ieqt&quot; classid=&quot;clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B&quot; width=&quot;640&quot; height=&quot;415&quot;&gt;
  &lt;param name=&quot;src&quot; value=&quot;toto.mov&quot;&gt;
  &lt;param name=&quot;autoplay&quot; value=&quot;false&quot;/&gt;
  &lt;param name=&quot;controller&quot; value=&quot;true&quot;/&gt;
  &lt;param name=&quot;loop&quot; value=&quot;false&quot;/&gt;
  &lt;p&gt;&lt;a href=&quot;toto.mov&quot;&gt;Télécharger la vidéo&lt;/a&gt;.&lt;/p&gt;
&lt;/object&gt;
&lt;![endif]--&gt;

&lt;!--[if !IE]&gt;&lt;--&gt;
&lt;object id=&quot;nonieqt&quot; data=&quot;toto.mov&quot; type=&quot;video/quicktime&quot; width=&quot;640&quot; height=&quot;415&quot;&gt;
  &lt;param name=&quot;autoplay&quot; value=&quot;false&quot;/&gt;
  &lt;param name=&quot;controller&quot; value=&quot;true&quot;/&gt;
  &lt;param name=&quot;loop&quot; value=&quot;false&quot;/&gt;
  &lt;p&gt;&lt;a href=&quot;toto.mov&quot;&gt;Télécharger la vidéo&lt;/a&gt;.&lt;/p&gt;
&lt;/object&gt;
&lt;!--&gt;&lt;![endif]--&gt;
[/code]</summary>
</entry>
<entry>
  <title>Récupérer la taille d'une vidéo en PHP avec ffmpeg</title>
  <link href="http://snippets.prendreuncafe.com/snippet/27"></link>
  <updated>2006-12-21T15:44:56Z</updated>
  <id>27</id>
  <summary type="html">On a besoin de http://ffmpeg-php.sourceforge.net/, puis :

[code]
extension_loaded('ffmpeg') or die('ffmpeg extension not loaded');

$ffmpegInstance = new ffmpeg_movie('/path/to/movie.avi');
$ffmpegInstance-&gt;getDuration(); // Gets the duration in secs.
$ffmpegInstance-&gt;getVideoCodec(); // What type of compression/codec used
[/code]</summary>
</entry>
<entry>
  <title>Faire un screencast sous Ubuntu Edgy</title>
  <link href="http://snippets.prendreuncafe.com/snippet/9"></link>
  <updated>2006-11-04T11:44:23Z</updated>
  <id>9</id>
  <summary type="html">Pas facile vu que ffmpeg nécessite un patch. Heureusement, y'a un .deb de la version patchée :

[code]
$ wget -c http://erunar.co.uk/debs/ubuntu_dapper/ffmpeg-0.4.9-p20051216_i386.deb
$ dpkg -i ffmpeg-0.4.9-p20051216_i386.deb
[/code]

Pour lancer une capture :

[code]
$ ffmpeg -vcodec mpeg4 -b 1000 -r 10 -g 300 -vd x11:0,0 -s 1400x1050 ~/Desktop/test.avi
[/code]

Il faut adapter 1400x1050 à la résolution de l'écran, oeuf corse.</summary>
</entry>
</feed>