2015-07-21 57 views
1

你好我已经成功地将ffmpeg安装到了我的电脑中,我可以通过检查ffmpeg-version来检查它是否合乎逻辑。这是ffmpeg安装和php配置中的这个错误

这意味着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(); 
     ?> 

,请告诉我,我做错了

+1

在phpinfo中检查扩展名() – Daimos

+0

我该如何检查? –

+0

echo phpinfo();但我看到有很多这样的问题,人们试图重新安装ffmpeg及其作品 – Daimos

回答

1

样子的ffmpeg -php模块未安装