[英]FFMPEG find if MOV videos is h.264
我們如何在 PHP 中找出 MOV 或 MP4 視頻是否使用 h.264 編碼。 我安裝了 mencoder 和 FFMPEG。
<?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;
}
?>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.