https://github.com/PHP-FFMpeg/PHP-FFMpegPHP FFMPEG不工作
我得到这个从GitHub,和我包括代码(至少我认为我做了)。
require_once '/FFMpeg/FFProbe.php'; require_once '/FFMpeg/FFMpeg.php';
和代码返回与此奇怪的错误,我似乎无法找到解决他们的GitHub库页。
Fatal error: Class 'Doctrine\Common\Cache\ArrayCache' not found in /FFMpeg/FFProbe.php on line 204
为什么这个错误发生时还是我笨的原因吗?
编辑#1: 当我使用此代码,他们对他们的GitHub 提供 $ffmpeg = FFMpeg\FFMpeg::create(); $video = $ffmpeg->open('video.mpg'); $video ->filters() ->resize(new FFMpeg\Coordinate\Dimension(320, 240)) ->synchronize(); $video ->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(10)) ->save('frame.jpg'); $video ->save(new FFMpeg\Format\Video\X264(), 'export-x264.mp4') ->save(new FFMpeg\Format\Video\WMV(), 'export-wmv.wmv') ->save(new FFMpeg\Format\Video\WebM(), 'export-webm.webm');
检查'ArrayCache'类下载作曲家出现在位置“学说\ COMMON \缓存\ –
没有命名的位置,并在他们的GitHub上,你看不到它有作为。我还编辑了更多信息的页面。 –
您是否使用作曲者来安装依赖关系? –