I am having problem with creating thumbnail this is my code

$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"; 

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

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