使用pfop的avconcat时显示invalid remote url

pythonimport qiniu
import base64

QINIU_ACCESS_KEY = 'xxx'
QINIU_SECRET_KEY = 'xxx'
QINIU_BUCKET_NAME = 'xxx'
NOTIFY_URL = 'http://xxx/concate_notify/'

q = qiniu.Auth(QINIU_ACCESS_KEY, QINIU_SECRET_KEY)
pfop = qiniu.PersistentFop(q, QINIU_BUCKET_NAME, 'concatevideo', NOTIFY_URL)
op = qiniu.build_op('avconcat', '1', format='mp4')
op = op + "/" + base64.encodestring("201412082147805.mp4")
print op
ops = [op]
ret, info = pfop.execute('201412061122198.mp4', ops, 1)
print ret, info

测试的一个python脚本
xxx是为了发问题替换了的
然后再去http://api.qiniu.com/status/get/prefop?id=548b209b7823de40684f3e42查询
总是返回

json{
    code: 3,
    desc: "The fop is failed",
    id: "548b209b7823de40684f3e42",
    inputKey: "201412061122198.mp4",
    items: [
                {
                    cmd: "avconcat/1/format/mp4/MjAxNDEyMDgyMTQ3ODA1Lm1wNA==",
                    code: 3,
                    desc: "The fop is failed",
                    error: "execute fop cmd failed: invalid remote url"
                }
            ],
    pipeline: "1380342354.concatevideo",
    reqid: "zero2one.9DQAAE1-KtOEKK8T"
}

但是我用POSTMAN去往我写的通知url发post请求是可以请求到的
有点奇怪
有人知道嘛, 提前谢啦

汪汪一只猫
浏览 625回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python