setOption(array('tempdir' => _DIR_TMP)); // Scan file - should parse correctly if file is not corrupted $file_info = $getID3->analyze($file); /** * Les pistes vidéos */ if (isset($file_info['video'])) { $id3['hasvideo'] = 'oui'; if (isset($file_info['video']['resolution_x'])) { $meta['largeur'] = $file_info['video']['resolution_x']; } if (isset($file_info['video']['resolution_y'])) { $meta['hauteur'] = $file_info['video']['resolution_y']; } if (isset($file_info['video']['frame_rate'])) { $meta['framerate'] = $file_info['video']['frame_rate']; } } if (isset($file_info['playtime_seconds'])) { $meta['duree'] = round($file_info['playtime_seconds'], 0); } return $meta; }