ffmpeg 安装和 php 配置哪里出错了

where is this wrong in ffmpeg installation and php configuration

大家好,我已经成功地将 ffmpeg 安装到我的计算机上,我可以通过检查 ffmpeg-version 来检查它 returns 一些合乎逻辑的东西。

这意味着 ffmpeg 在我的 pac 上 运行 成功但是当我 运行 这段代码 php 我在 ffmpeg 加载

中遇到错误
<?php
 extension_loaded('ffmpeg') or die('Error in loading ffmpeg'); 
 // Determine the full path for our video
  $vid = realpath('./test/Sample.mp4');

 // Create the ffmpeg instance and then display the information about the video clip.
 $ffmpegInstance = new ffmpeg_movie($vid);
 echo "getDuration: " . $ffmpegInstance->getDuration() . "<br />".
  "getFrameCount: " . $ffmpegInstance->getFrameCount() . "<br />".
   "getFrameRate: " . $ffmpegInstance->getFrameRate() . "<br />".
   "getFilename: " . $ffmpegInstance->getFilename() . "<br />".
    "getComment: " . $ffmpegInstance->getComment() . "<br />".
   "getTitle: " . $ffmpegInstance->getTitle() . "<br />".
   "getAuthor: " . $ffmpegInstance->getAuthor() . "<br />".
        "getCopyright: " . $ffmpegInstance->getCopyright() . "<br />".
     "getArtist: " . $ffmpegInstance->getArtist() . "<br />".
     "getGenre: " . $ffmpegInstance->getGenre() . "<br />".
     "getTrackNumber: " . $ffmpegInstance->getTrackNumber() . "<br />".
    "getYear: " . $ffmpegInstance->getYear() . "<br />".
  "getFrameHeight: " . $ffmpegInstance->getFrameHeight() . "<br />". 
     "getAudioChannels: " . $ffmpegInstance->getAudioChannels() . "<br />".
   "hasAudio: " . $ffmpegInstance->hasAudio();
      ?>

请告诉我哪里做错了

看起来 ffmpeg-php 模块没有安装