After uploading and installing the Video module, creating a video node type, that has a filefield 'video' which has the video widget ... all following the instructions.

and adding a video node,

I am getting a message
"This video is currently being processed. Please wait."

I have set up video_scheduler.php to run properly every 20 minutes with cron.

I get an email upon the completion of each cron run- it includes this at the top:
PHP Notice: Undefined index: path in /home/path/to/my/drupal/video_scheduler.php on line 38

Sure enough, line 38 in the video_scheduler.php is:
$_SERVER['SCRIPT_NAME'] = $url['path'];

The watchdog does not show anything by video_scheduler.php or video_render.php. So I tried adding a line to the function:
video_scheduler_start() to output a watchdog notice. That works, that function is being called, now there is an entry in the watchdog. But video_render still has not operated on my video.

I am not knowlegable enough about this module to understand the sequence of these scripts (scheduler ... render ...), nor why it is run via cron. Mostly, I don't understand what the $ url array is supposed to have in it. The previous line defines it:
$url = parse_url($_SERVER['argv'][1]);

But according to what I have read here and what its in my cron job, that should just be either blank, or the domain name (if settings is not kept in /sites/default/settings.php).

I am out of ideas to spend time on. The only thing that I can think is that perhaps the path for the ffmpeg binary is incorrect; it is set to /usr/bin/ffmpeg I am on a shared host without command line access. It does, however, produce the thumbnails just fine; so if that is that also used to render the video itself, one would think it is working as well.

Any direction would be helpful.

Comments

hypertext200’s picture

Seems your not properly set up cron jobs, see the guide

jimurl’s picture

I used this guide to set it up:
http://video.heidisoft.com/content/configuring-video-module

I am pretty sure the cron job is set up properly. It runs every twenty minutes. I get an email confirming that it has run this command:
cd /hsph/xxx/xxxxx/ce.com/ ; php video_scheduler.php http://mysite.com

except with this error:
PHP Notice: Undefined index: path in /home/path/to/my/drupal/video_scheduler.php on line 38

So I don't think its a problem with the cron job.

ru.meta’s picture

I also met this issue. Why this done not through HOOK_cron() in video module?

iLLin’s picture

I have added hook_cron and have added auto convert when you save the video. But there not patches, I had to rewrite certain sections to make it more object oriented and reusable. But Heshan has been busy and hasn't implemented none of the files I have sent him into Dev yet. I am also writing a widget to allow you to upload your videos through FTP and then attach them to nodes and convert to flv on save or let the cron pick them up.

-d

hypertext200’s picture

We are working on the hook_cron, but seems it will effect on the cron performance and other when large scale, we will test further and release a stable version soon.

iLLin’s picture

Status: Active » Fixed

This is done in the 4.x-dev version. There is an option to turn this on to use drupal's built in cron. Please read my note on this setting page.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.