标签: node.js
此无效文件的大小为0B
var src = path.join('/live/streams', streamName + '.flv'); var destDir = path.join('/new/streams', streamName + '.mp4'); let writeStream = fs.createWriteStream(destDir); ffmpeg(src).format('mp4').pipe(writeStream, {end: true});