如何在Node JS中将.flv文件转换为.mp4

时间:2019-03-29 07:06:54

标签: 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});

0 个答案:

没有答案