Php 从视频创建缩略图不起作用
我有php代码。这在我的本地服务器上运行良好。但在AWS中托管的目标远程服务器中,相同的代码不起作用Php 从视频创建缩略图不起作用,php,Php,我有php代码。这在我的本地服务器上运行良好。但在AWS中托管的目标远程服务器中,相同的代码不起作用 <?php $ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg"; $imagefile = "1.png"; $size = "920*440"; $getfromsecond = 44; $cmd = "$ffmpeg -i aaa.mp4 -an -ss $getfromsecond -s $size $imagefile"; $p =system($cmd
<?php
$ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg";
$imagefile = "1.png";
$size = "920*440";
$getfromsecond = 44;
$cmd = "$ffmpeg -i aaa.mp4 -an -ss $getfromsecond -s $size $imagefile";
$p =system($cmd);
?>
我的aaa.mp4与脚本中的文件夹相同 您正试图访问不在AWS服务器上的C:\驱动器。 您需要指定远程目标