Skip to content

The swiss army knife of lossless video/audio editing

Fix for TS with unknown streams #170

Mikael Finstad73482bdf521f
diff --git a/src/ffmpeg.js b/src/ffmpeg.js
index 060c92e1..523ce08e 100644
--- a/src/ffmpeg.js
+++ b/src/ffmpeg.js
@@ -78,6 +78,7 @@ async function cut({
];
const rotationArgs = rotation !== undefined ? ['-metadata:s:v:0', `rotate=${rotation}`] : [];
+
const ffmpegArgs = [
...inputCutArgs,
@@ -89,6 +90,9 @@ async function cut({
...(includeAllStreams ? ['-map', '0'] : []),
'-map_metadata', '0',
+ // See https://github.com/mifi/lossless-cut/issues/170
+ '-ignore_unknown',
+
...rotationArgs,
'-f', format, '-y', outPath,