1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 10:22:31 +01:00

improve smart cut speed #126

This commit is contained in:
Mikael Finstad 2022-05-23 23:12:21 -07:00
parent bb304c8fd7
commit f2ac570a97
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

View File

@ -823,9 +823,9 @@ export async function cutEncodeSmartPart({ filePath, cutFrom, cutTo, outPath, ou
// No progress if we set loglevel warning :(
// '-loglevel', 'warning',
// cannot use -ss before -i here (will lead to issues)
'-ss', cutFrom.toFixed(5), // if we don't -ss before -i, seeking will be slow for long files, see https://github.com/mifi/lossless-cut/issues/126#issuecomment-1135451043
'-i', filePath,
'-ss', cutFrom.toFixed(5),
'-ss', '0', // If we don't do this, the output seems to start with an empty black after merging with the encoded part
'-t', (cutTo - cutFrom).toFixed(5),
...mapStreamsArgs,