mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-22 02:12:30 +01:00
Fix for TS with unknown streams #170
This commit is contained in:
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…
Reference in New Issue
Block a user