PHPVideoToolkit执行错误

Nic*_*k.h 5 php video ffmpeg

当我尝试使用PHPVideoToolkit将视频转换为flv时,我得到以下错误(getErrors()方法的输出):

Array
(
    [0] => PHPVideoToolkit Error: Execute error. Output for file "" was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().
    [1] => PHPVideoToolkit Error: Input file "/home/nik/video1.mp4" does not exist
)

PHPVideoToolkit::getFFmpegInfo() 包含flv格式.

我从命令行测试了ffmpeg并且它可以工作.我将输入和输出目录和文件的权限设置为777但仍然得到相同的错误.

怎么了?

Mar*_*lav 0

好吧,其中一部分表明您尝试输入的文件不存在。其次,输出文件名似乎是一个空字符串。