Skip to content

Commit

Permalink
improve smart cut speed #126
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed May 24, 2022
1 parent bb304c8 commit f2ac570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ffmpeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f2ac570

Please sign in to comment.