<?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <title>Latest snippets tagged ffmpeg</title>
  <link rel="alternate" href="http://snippets.prendreuncafe.com/snippets/tagged/ffmpeg/order_by/date"></link>
  <id>http://snippets.prendreuncafe.com/snippets/tagged/ffmpeg/order_by/date</id>
  <updated>2006-12-21T15:44:56Z</updated>
  <author>
    <name>Symfony</name>
    <author_email>noreply@symfony-project.com</author_email>
  </author>
<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>