So regardless of what setting I check in the video module cron settings, the only thing that will actually push videos to Amazon S3 and Zencoder is http://mysite/cron.php. I cannot get either the the php or drush video schedulers to do anything. Below are the results of running both commands from the command line. Any thoughts?
Command: php video_scheduler (symlink of video_scheduler.php run at the root of the drupal install)
Executes for about 15 seconds, and then ends with no warnings or errors
Command: drush video-scheduler
WD php: Notice: Use of undefined constant VIDEO_S3_COMPLETE - assumed[error]
'VIDEO_S3_COMPLETE' in video_zencoder->convert_video() (line 92 of
/var/www/pressflow/sites/all/modules/video/plugins/video_zencoder/transcoders/video_zencoder.inc).
WD php: Notice: Undefined variable: video_s3 in [error]
video_zencoder->convert_video() (line 101 of
/var/www/pressflow/sites/all/modules/video/plugins/video_zencoder/transcoders/video_zencoder.inc).
Comments
Comment #1
unfrgivn commentedI checked the logs and when I run video_scheduler.php I receive the 2 PHP notices shown above under the drush command as well as a 3rd error
"We did not find the file id: 24 or it is still queued for ffmpeg processing or S3 push."
This plus the VIDEO_S3_COMPLETE not being set error lead me to believe that the S3 code is not being included and called. Does anyone have any ideas on the best way I should fix this?
Comment #2
unfrgivn commentedThe problem is that in file: plugins/video_zencoder/transcoders/video_zencoder.inc, there are variables being called which have not yet been set.
I am checking for the s3 class and if it does not exist, I run module_load_include('inc', 'video_s3', '/includes/amazon_s3'); and now the notices are gone. You cannot call variables set in the s3 plugin if the file has not been included yet.
Comment #3
hypertext200Welcome patches
Comment #4
unfrgivn commentedI am new to drupal so I'm not sure how to create patches. I made the following change but I am not sure if this is proper.
[file: plugins/video_zencoder/transcoders/video_zencoder.inc]
/* Added to top*/
module_load_include('inc', 'video_s3', '/includes/amazon_s3');
Comment #5
hypertext200See there : http://drupal.org/patch/create
Comment #6
hypertext200added to dev