Don't cut start if start time is 0

To cause issue with black video in the beginning
https://github.com/mifi/lossless-cut/issues/50
pull/55/head
Mikael Finstad 9 years ago
parent 9bc63240d4
commit fdd0794a13

@ -64,9 +64,12 @@ async function cut(customOutDir, filePath, format, cutFrom, cutTo, onProgress) {
console.log('Cutting from', cutFrom, 'to', cutTo);
// https://github.com/mifi/lossless-cut/issues/50
const cutFromArgs = cutFrom === 0 ? [] : ['-ss', cutFrom];
const ffmpegArgs = [
'-i', filePath, '-y', '-vcodec', 'copy', '-acodec', 'copy',
'-ss', cutFrom, '-t', cutTo - cutFrom,
...cutFromArgs, '-t', cutTo - cutFrom,
'-map_metadata', '0',
'-f', format,
outPath,

Loading…
Cancel
Save