0
Comment pouvons-nous savoir en PHP si une vidéo MOV ou MP4 est codé avec h.264. J'ai à la fois mencoder et FFMPEG installé.FFMPEG trouver si les vidéos MOV est h.264
Comment pouvons-nous savoir en PHP si une vidéo MOV ou MP4 est codé avec h.264. J'ai à la fois mencoder et FFMPEG installé.FFMPEG trouver si les vidéos MOV est h.264
<?php
exec("ffmpeg -i {$strFilePath}", $return, $status);
if($status == 0) {
// I do ot have ffmpeg installed on this machine so I can't write your check
// But a simple str_pos() will tell you if the h264 codec string is there.
$isH264 = str_pos($return, /*the codec string here*/) !== false;
}
?>