let stream = bufferToStream(Buffer.from(postdata, 'base64' ));
let bufarr = [];
let cmd = ffmpeg(stream);
cmd.format( 'wav' );
let ffs = cmd.pipe();
ffs.on( 'data' ,chunk=>{
bufarr.push(chunk)
})
.on( 'end' , () => {
Buffer.concat(bufarr) ;
})
.on( 'error' ,err=>{
console.log(err)
});
|
使用ffmpeg转换格式就会报502