Skip to content

The swiss army knife of lossless video/audio editing

attempt to fix https://github.com/mifi/lossless-cut/issues/141

Mikael Finstad02a10bc30660
diff --git a/src/ffmpeg.js b/src/ffmpeg.js
index ee532ef9..060c92e1 100644
--- a/src/ffmpeg.js
+++ b/src/ffmpeg.js
@@ -303,7 +303,7 @@ async function extractAllStreams({ customOutDir, filePath }) {
type: s.codec_type,
format: mapCodecToOutputFormat(s.codec_name, s.codec_type),
}))
- .filter(it => it);
+ .filter(it => it && it.format);
// console.log(outStreams);