我在尝试:
const passthroughStream = new PassThrough()
ffmpeg(stream).audioBitrate(8)
.output(passthroughStream, { end: true })
.on('progress', (p) => console.log(p))
.on('error', (err) => console.log(err))
const bucketStreamParams = {
Bucket: 'mybucket,
Key: outputFilename,
Body: passthroughStream
}
const s3Response = await s3.upload(bucketStreamParams).promise()
PassThrough
会处理好的,但似乎不行。任何帮助都将不胜感激。