Fix for TS with unknown streams #170

snyk-fix-4f6b0a21fc277f6d2aff417570fcc274
Mikael Finstad 7 years ago
parent b4dc0877d9
commit 73482bdf52

@ -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,

Loading…
Cancel
Save