I have trouble with ffmpeg. If I want to create a thumb from a video I get the following error-message:
file_exists(): open_basedir restriction in effect. File(/tmp/frame59c41921d102f6.99590608.jpg) is not within the allowed path(s): (/home/admin/web/faplink.net/public_html:/home/admin/tmp)
Code:
$video_thumb_path = "thumbs/" . md5($request->file("file")->getClientOriginalName() . time()) . ".png";
$mov = new \ffmpeg_movie(storage_path("app/public/") . $post->media);
$frame = $mov->getFrame(10);
if ($frame) {
$gd_image = $frame->toGDImage();
if ($gd_image) {
imagepng($gd_image, $video_thumb_path);
imagedestroy($gd_image);
$post->thumb = $video_thumb_path;
}
}
break;
I Use CentOS7