1

发现我试图将图像序列转换为视频。为此,我可以了解 ffmpeg 类。

我发现的唯一包装类是 phpvideotoolkit 但我无法使用它。

我在 Windows 2008 服务器上的 xampp 上安装了 phpvideotoolkit。但它正在引发错误

This example shows you how to extract a specific frame from a movie.


Notice: Undefined property: PHPVideoToolkit::$_tmb_directory in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 869

Notice: Undefined offset: 0 in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 877
PHPVideoToolkit Error: Execute error. Output for file "C:\xampp\htdocs\phpvideo\examples\working\to-be-processed\MOV00007.3gp" was not found. No images were generated.

Notice: Undefined property: PHPVideoToolkit::$_tmb_directory in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 869

Notice: Undefined offset: 0 in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 877
PHPVideoToolkit Error: Execute error. Output for file "C:\xampp\htdocs\phpvideo\examples\working\to-be-processed\Video000.3gp" was not found. No images were generated.

Notice: Undefined property: PHPVideoToolkit::$_tmb_directory in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 869

Notice: Undefined offset: 0 in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 877
PHPVideoToolkit Error: Execute error. Output for file "C:\xampp\htdocs\phpvideo\examples\working\to-be-processed\cat.mpeg" was not found. No images were generated.

例子

PHPVideoToolkit Error: Execute error. Output for file "C:\xampp\htdocs\phpvideo\examples\working\tmp\1336156630-4fa421d69357d\tmp_%d.jpg" 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().

我试图让它从过去几个小时开始工作,但没有运气

此外,对于此代码:

$srcFile = "test-mpeg.mpg";
$ffmpegObj = new ffmpeg_movie($srcFile);

我遇到错误,它无法归档文件。我相信它与权限有关,但我无法弄清楚

fpoen , fwrite , file_put_contents 都工作正常,没有任何权限问题。

任何人都可以请指导我的写作方向。我需要做什么才能使这个 phpvideotoolkit 工作

4

0 回答 0