ffmpeg只在命令行上工作,而不是php

时间:2017-08-23 05:56:14

标签: php ffmpeg

我正在使用FFmpeg https://github.com/olaferlandsen/ffmpeg-php-class。但是当我运行代码时,它无法正常工作。如果有人知道,请帮我解决这个问题。以下是代码

$FFmpeg = new FFmpeg( "/etc/bin/ffmpeg" );
$FFmpeg->input( '/opt/lampp/htdocs/ffmpeg/1.wav' )->output( '/opt/lampp/htdocs/ffmpeg/ss.mp3' );
$FFmpeg->ready();

1 个答案:

答案 0 :(得分:0)

不使用cunstructor: -

    <Route path='/about' component={About} />
    <Route path='/' component={Home} />
    <Route component={Error} />