Rumah > Soal Jawab > teks badan
使用音视频拼接(avconcat)报错,反复示例多次,还是报错。
...
"cmd": "avconcat%2F1%2Fformat%2Fmp4%2FYW5ndXJpYTIubXA0%2FYW5ndXJpYTMubXA0",
"code": 3,
"desc": "The fop is failed",
"error": "execute fop cmd failed: unsupported cmd "
var qiniu = require('qiniu');
qiniu.conf.ACCESS_KEY = 'NUg.........';
qiniu.conf.SECRET_KEY = 'o5S9........';
var bucketName = 'haleywangtest';
var encodedUrl0 = qiniu.util.urlsafeBase64Encode('anguria2.mp4');
var encodedUrl1 = qiniu.util.urlsafeBase64Encode('anguria3.mp4');
var avconcatStr = 'avconcat/mode/1/format/mp4/'+encodedUrl0+'/'+encodedUrl1;
qiniu.fop.pfop(bucketName, 'anguria1.mp4', encodeURIComponent(avconcatStr), null, function(err, ret) {
console.log("=====result");
console.log(err);
ringa_lee2017-04-17 11:37:01
命令应该是有问题的,你这边使用 var avconcatStr = 'avconcat/2/format/mp4/'+encodedUrl0+'/'+encodedUrl1;
看下结果,是否可以正常拼接。