【发布时间】:2020-08-20 12:48:59
【问题描述】:
我正在尝试:
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 会处理这个问题,但似乎没有。任何帮助将不胜感激。
【问题讨论】:
标签: node.js amazon-s3 stream fluent node-streams