hi all
i've succesfully installed ffmpeg and the flashvideo module. my cron is working as well
in my flashvideo settings i have set the output dirs to blank, so that the converted files stay in the 'files' dir together with the original video. but i'm having a serious problem...
when i upload a file with the video upload field, and cron has run, i get the message that my cron job was succesfull and i see the correct ffmpeg commands in my ffmpeg_data table, with the right original videofilename + a file with the .flv extension as an output.
BUT, when i go check in my 'files' folder, there's no .flv and my original video has been deleted.
i unchecked the 'delete original file' option
i set the following command in my 'ffmpeg command' field:
-i @input -ar 22050 -ab 32 -f flv -s 320x240 @output
when i do the conversion manually with command line, the flv gets created succesfully.
i'm totally clueless what the reason for this can be. i searched the forums, read the manual, etc...
my /tmp file has execution rights, etc..
any ideas ?
Comments
Comment #1
popetardo commentedI have exactly the same problem.
Drupal 6.5 and flashvideo 6-1.4-beta3
Comment #2
popetardo commentedIn recent log entries I can see this:
shell_exec() [function.shell-exec]: Cannot execute using backquotes in Safe Mode in /var/www/vhosts/granpyme.com/httpdocs/modules
/flashvideo/flashvideo.module on line 952.
Maybe the problem is safe_mode...
Comment #3
travist commentedYes... you need to take php out of safe mode for this to work. I thought that safe mode doesn't allow shell_exec to occur at all?
Comment #4
travist commentedComment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
attheshow commentedSorry to re-open this one, but I have the same issue mentioned above with some slight differences. I checked my php.ini and safe mode is definitely OFF. Also, I don't have the issue with my original video files being deleted. They remain in the "files" directory after cron. ...and I don't have any errors/clues mentioned in my "Recent log entries" page. It says "Cron run completed" and no mention of other problems.
Like 30equals says at the top of the issue, the displayed commands work fine for me from the command line and convert the videos to flv and jpg correctly, but the videos just aren't being automatically converted by FlashVideo during the cron run for some reason. Are there any other things that I might need to double-check on my system to make sure everything's set up correctly?
This is using Drupal 6.6 and FlashVideo 6.x-1.4-beta6.
Comment #7
attheshow commentedOk, I figured it out. The shell_exec function wasn't able to run my command successfully because of an incorrect path to ffmpeg. I figured out that on my system, ffmpeg is actually installed at /usr/local/bin/ffmpeg instead of the usual /usr/bin/ffmpeg. After I went in and configured the path correctly, the conversion was successful. Thanks for the great module!
Comment #9
WoozyDuck commentedCould you please tell me where and how did you correct this path?
Comment #10
ayalsule commented#9 you need to edit it from admin/settings/flashvideo/universal
you can also download FFmpeg Wrapper , will help checking the correct path