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

Recommended Answers

All 3 Replies

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?

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

thanx i have got the problem solved it was hosting issue

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.