1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-21 18:02:35 +01:00

Fix for TS with unknown streams #170

This commit is contained in:
Mikael Finstad 2019-06-13 15:34:48 +02:00
parent b4dc0877d9
commit 73482bdf52

View File

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