首頁 > 後端開發 > php教程 > 七牛云异步处理失败

七牛云异步处理失败

WBOY
發布: 2016-06-06 20:36:50
原創
2081 人瀏覽過

为什么失败
http://api.qiniu.com/status/get/prefop?id=5516810e7823de4068c5f0d8
出现

<code>{
    "code": 3,
    "desc": "The fop is failed",
    "id": "5516810e7823de4068c5f0d8",
    "inputBucket": "xushubai",
    "inputKey": "Recipe/bd217d108d2c5a6be2f87a2466d1df03.mp4",
    "items": [
        {
            "cmd": "xushubai.qiniudn.com/Recipe/bd217d108d2c5a6be2f87a2466d1df03.mp4?ab/1200k",
            "code": 3,
            "desc": "The fop is failed",
            "error": "execute fop cmd failed: unsupported cmd "
        }
    ],
    "pipeline": "0.default",
    "reqid": "default.bhsAADKZtg8qos8T"
}
</code>
登入後複製
登入後複製

curl 访问的

<code>curl -i -d "bucket=xushubai&key=Recipe/bd217d108d2c5a6be2f87a2466d1df03.mp4&fops=xushubai.qiniudn.com/Recipe/bd217d108d2c5a6be2f87a2466d1df03.mp4?ab/1200k&notifyURL=http://m.ideer.cn/api.php/Api/Public/sharingTopRanking" -H "Content-Type: application/x-www-form-urlencoded" -H "Authorization: QBox 9FMaTxskZVYmm1LQBucZpZdExa2Zvz7q-5y0x7t7:CeGwt84LxUTiaieN1g6V7JgKFPg=" "http://api.qiniu.com/pfop/
</code>
登入後複製
登入後複製

回复内容:

为什么失败
http://api.qiniu.com/status/get/prefop?id=5516810e7823de4068c5f0d8
出现

<code>{
    "code": 3,
    "desc": "The fop is failed",
    "id": "5516810e7823de4068c5f0d8",
    "inputBucket": "xushubai",
    "inputKey": "Recipe/bd217d108d2c5a6be2f87a2466d1df03.mp4",
    "items": [
        {
            "cmd": "xushubai.qiniudn.com/Recipe/bd217d108d2c5a6be2f87a2466d1df03.mp4?ab/1200k",
            "code": 3,
            "desc": "The fop is failed",
            "error": "execute fop cmd failed: unsupported cmd "
        }
    ],
    "pipeline": "0.default",
    "reqid": "default.bhsAADKZtg8qos8T"
}
</code>
登入後複製
登入後複製

curl 访问的

<code>curl -i -d "bucket=xushubai&key=Recipe/bd217d108d2c5a6be2f87a2466d1df03.mp4&fops=xushubai.qiniudn.com/Recipe/bd217d108d2c5a6be2f87a2466d1df03.mp4?ab/1200k&notifyURL=http://m.ideer.cn/api.php/Api/Public/sharingTopRanking" -H "Content-Type: application/x-www-form-urlencoded" -H "Authorization: QBox 9FMaTxskZVYmm1LQBucZpZdExa2Zvz7q-5y0x7t7:CeGwt84LxUTiaieN1g6V7JgKFPg=" "http://api.qiniu.com/pfop/
</code>
登入後複製
登入後複製

资源处理的命令是错误的,把fops操作修改成fops=avthumb/mp4/ab/1200k,然后重新签名再试下应该就没有问题了,音视频处理的具体参数可以参考 http://developer.qiniu.com/docs/v6/api/reference/fop/av/avthumb.html .

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板