PHPVideoToolkit执行错误
当我尝试使用 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 但仍然遇到相同的错误。
怎么了?
When I try to convert a video to flv using PHPVideoToolkit I get the following errors(output of the getErrors()
method):
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()
contains flv format.
I tested ffmpeg from command line and it works. I set permissions for both input and output directory and files to 777 but still getting the same errors.
What's wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,其中一部分表明您尝试输入的文件不存在。其次,输出文件名似乎是一个空字符串。
Well one part of this says that the file you are trying to input doesn't exist. Secondly, it appears the output filename is an empty string.