$videofile = “fichier.flv”; ob_start(); passthru(“ffmpeg -i “{$videofile}” 2>&1″); $duration = ob_get_contents(); ob_end_clean(); $search=‘/Duration: (.*?),/’; $duration=preg_match($search, $duration, $matches, PREG_OFFSET_CAPTURE, 3); echo $matches; Pour récupérer la...
Read More