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模塊未安裝