Permission denied on creating thumbnail from video

Events happening in the community are now at Drupal community events on www.drupal.org.
lan5's picture

Hello everyone,

I'm having an issue using Video module on IIS 6, on a content type , it's intended to create thumbnails out of uploaded video file using ffmpeg.exe ,
on my log entry, I get :

"error generating thumbnail for video: generated file sites/default/files/video_thumbs/310/video-thumb-for-310-5.png does not exist.
Command Executed:
c:\site\ffmpeg\ffmpeg.exe -i "sites/default/files/video_tv/video.flv" -an -y -f mjpeg -ss 0 -vframes 1 sites/default/files/video_thumbs/310/video-thumb-for-310-5.png
Command Output:
FFmpeg version git-N-28849-ga82cfad-Sherpya, Copyright (c) 2000-2011 the FFmpeg developers built on Apr 5 2011 02:16:58 with gcc 4.2.5 20090330 (prerelease) [Sherpya] libavutil 50. 40. 0 / 50. 40. 0 libavcodec 52.117. 0 / 52.117. 0 libavformat 52.105. 0 / 52.105. 0 libavdevice 52. 4. 0 / 52. 4. 0 libavfilter 1. 77. 0 / 1. 77. 0 libswscale 0. 13. 0 / 0. 13. 0 libpostproc 51. 2. 0 / 51. 2. 0 sites/default/files/video_tv/video.flv: Permission denied "

Thanks taking time to reply,

Comments

ffmpeg on Windows/IIS

markjbrown's picture

I haven't used this application before so I stronly encourage you to review the articles below before deploying this solution into a production environment.

You may be able to allow write access to IUSR to the /video_tv/ directory only for this to work. If it doesn't work then you may need to create a separate account that has ffmpeg execute permissions and write permissions for that directory only with normal read/script execute permissions for the rest of your site.

Here's a couple of articles that may be of some help.
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/I...
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/I...

Or you can start here to scroll through all of the security docs for IIS 6. Probably a good idea given what you're looking to do here. http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/I...

Hope that helps.

for the time being, I'm

lan5's picture

for the time being, I'm uploading manually the image thumbnails to avoid to have to give execute permissions to ffmpeg.exe

this seems to be using image cache to create thumbnails

Drupal on Windows

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: