<?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <title>Latest snippets tagged audio</title>
  <link rel="alternate" href="http://snippets.prendreuncafe.com/snippets/tagged/audio/order_by/date"></link>
  <id>http://snippets.prendreuncafe.com/snippets/tagged/audio/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>
</feed>