954,242 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Thumbnail issue

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

saadi06
Junior Poster in Training
73 posts since Oct 2010
Reputation Points: 12
Solved Threads: 1
 

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?

nonshatter
Posting Whiz
377 posts since Nov 2009
Reputation Points: 39
Solved Threads: 63
 

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

saadi06
Junior Poster in Training
73 posts since Oct 2010
Reputation Points: 12
Solved Threads: 1
 

thanx i have got the problem solved it was hosting issue

saadi06
Junior Poster in Training
73 posts since Oct 2010
Reputation Points: 12
Solved Threads: 1
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: