我对 ffmpeg 和 beanstalk 很陌生,我需要一点帮助。我想使用 beanstalk 来排队文件以供 ffmpeg 转换。我已经下载、安装并启动了 beanstalkd(也按照它的建议安装了 libevent),我已经下载了 beanstalkd 的 PHP 客户端;
http://sourceforge.net/projects/beanstalk/
现在,在下载客户端并将其放在我的服务器上之后,除了使用客户端中的示例之外,我什么也没做,我收到了这个错误;
致命错误:第 1138 行的 /Users/wasimkhamlichi/Sites/vibenation/beanstalk/src/BeanStalk.class.php 中的最大执行时间超过了 30 秒
这是示例中的代码;
$beanstalk = BeanStalk::open(array(
'servers' => array( '127.0.0.1:11300' ),
'select' => 'random peek'
));
// As in the protocol doc.
$beanstalk->use_tube('foo');
// As in the protocol doc.
$beanstalk->put(0, 0, 120, 'say hello world'); // Add a job to the queue with highest priority,
// no delay, 120 seconds TTR, with the contents
// 'say hello world'.
// NOTE: the put() method here supports a final optional
// argument, a tube name. If supplied, the server will
// first switch to that tube, write the job, then switch
// back to the old tube again.
// As in the protocol doc.
$job = $beanstalk->reserve(); // Assuming there was nothing in the queue before
// we started, this will give us our 'hello world'
// job back.
// This is a BeanQueueJob object.
echo $job->get(); // Output: 'say hello world'
Beanstalk::delete($job); // Delete the job.
非常简单的快速脚本只是为了打个招呼,但它超时了。有人可以帮忙吗?