php - 将作业添加到 beanstalkd

标签 php ffmpeg beanstalkd

我正在使用 Beanstalkd 通过 ffmpeg 处理视频文件。
我正在使用 https://github.com/pda/pheanstalk PHP-客户端
我面临以下问题。
a) 有时工作不会添加到 Beanstalkd Tube,
b)如果将作业添加到管中,有时 ffmpeg 未按预期处理。

任何想法,
等待回复

提前致谢
卡尔蒂

最佳答案

作业在放置时可能会失败的三种情况:

- "EXPECTED_CRLF\r\n" The job body must be followed by a CR-LF pair, that is,
   "\r\n". These two bytes are not counted in the job size given by the client
   in the put command line.

 - "JOB_TOO_BIG\r\n" The client has requested to put a job with a body larger
   than max-job-size bytes.

 - "DRAINING\r\n" This means that the server has been put into "drain mode"
   and is no longer accepting new jobs. The client should try another server
   or disconnect and try again later.

很可能您有第二种选择,我认为它太大了。 默认值为 65k。

关于php - 将作业添加到 beanstalkd,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24428837/

相关文章:

php - 在 php 中连接表时出错

ffmpeg - 叠加图像缩小和移动

ffmpeg - 使用 Pytorch3d 在视频中渲染结果

laravel - 如何为 beanstalkd 设置队列服务器集群?

php - 在 laravel 中删除排队的作业

php - MySQL 到 Mysqli - 数据库类 - PHP

php - PHP 或 Python、perl 中的 cURL 脚本

php - 如何以编程方式启动/停止 FFMPEG 流转码

ffmpeg - 如何在 Xcode 项目中使用 LivuLib

laravel - Beanstalkd 支持多服务器和负载平衡