0

Hi,
I am having problem with creating thumbnail this is my code

$ffmpeg=$_SERVER['DOCUMENT_ROOT'].'/***/ffmpeg';
$image=$_SERVER['DOCUMENT_ROOT'].'/***/***/***/'."$id.jpg";
$video =$_SERVER['DOCUMENT_ROOT'].'/***/***/'."$uname";
$cmds = "$ffmpeg -i $video -deinterlace -an -ss 1 -t 00:00:01 -r 1 -y -s 100x90 -vcodec mjpeg -f mjpeg $image 2>&1"; 
	exec($cmds);

Whenever i try to make thumbnail it gives me an error 'access is denied.
Can anyone help me thanx in advance

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by saadi06
0

The thumbnails you're creating don't have the correct permissions to be written/read from your web server. Are you using a local server or a web hosting service?

0

i am using a web hosting server which is windows based and it is creating thumbnails locally but it create thumbnail for only one video whenever i enter another video to create thumbnail it is not creating can u help me thanx

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.