Update arguments in Worker.trim(), fix #12

This commit is contained in:
Jerome Wu
2019-12-18 20:10:04 +08:00
parent 9cc345c5a4
commit 4ee05bbb9b
2 changed files with 31 additions and 12 deletions

View File

@@ -116,7 +116,7 @@ module.exports = (_options = {}) => {
const trim = (inputPath, outputPath, from, to, opts = '', del = true, jobId) => (
run(
`${opts} -ss ${from} -i /data/${inputPath} -t ${to} -c copy ${outputPath}`,
`${opts} -i /data/${inputPath} -ss ${from} -to ${to} -c copy ${outputPath}`,
{ inputPath, outputPath, del },
jobId,
)