【问题标题】:FFMPEG find if MOV videos is h.264FFMPEG 查找 MOV 视频是否为 h.264
【发布时间】:2011-09-09 17:24:16
【问题描述】:

我们如何在 PHP 中找出 MOV 或 MP4 视频是否使用 h.264 编码。我安装了 mencoder 和 FFMPEG。

【问题讨论】:

    标签: php ffmpeg codec encoder mencoder


    【解决方案1】:
    <?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;
    }
    ?>
    

    【讨论】:

      猜你喜欢
      • 2011-10-30
      • 2010-12-22
      • 2016-12-02
      • 1970-01-01
      • 1970-01-01
      • 2012-11-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多