Usando ffmpeg, PHP e beanstalk
Sou muito novo no ffmpeg e no beanstalk e preciso de uma ajudinha. Eu quero usar o beanstalk para enfileirar arquivos para o ffmpeg converter. Fiz o download, instalei e iniciei o beanstalkd (também instalei o libevent, conforme sugerido) e baixei um cliente PHP para o beanstalkd;
http: //sourceforge.net/projects/beanstalk
gora, depois de baixar o cliente e colocá-lo no meu servidor, não fiz nada além de usar o exemplo do cliente e estou recebendo esse err
Erro fata: Tempo máximo de execução de 30 segundos excedido em /Users/wasimkhamlichi/Sites/vibenation/beanstalk/src/BeanStalk.class.php na linha 1138
Este é o código do exemplo;
$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.
Script rápido muito simples apenas para dizer olá, mas está chegando ao limite. Alguém pode ajudar por favor