Fix for TS with unknown streams #170

snyk-fix-4f6b0a21fc277f6d2aff417570fcc274
Mikael Finstad 2019-06-13 15:34:48 +02:00
rodzic b4dc0877d9
commit 73482bdf52
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

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