Browse Source

default clip duration

pull/26/head
xk3 6 years ago
parent
commit
69f7b3095e
  1. 4
      cli.js

4
cli.js

@ -26,6 +26,7 @@ const cli = meow(`
--json Use JSON edit spec --json Use JSON edit spec
--transition-name Name of default transition to use (default: random) --transition-name Name of default transition to use (default: random)
--transition-duration Default transition duration --transition-duration Default transition duration
--clip-duration Default clip duration
--width Width which all media will be converted to --width Width which all media will be converted to
--height Height which all media will be converted to --height Height which all media will be converted to
--fps FPS which all videos will be converted to --fps FPS which all videos will be converted to
@ -46,6 +47,7 @@ const cli = meow(`
verbose: { type: 'boolean', alias: 'v' }, verbose: { type: 'boolean', alias: 'v' },
fast: { type: 'boolean', alias: 'f' }, fast: { type: 'boolean', alias: 'f' },
transitionDuration: { type: 'number' }, transitionDuration: { type: 'number' },
clipDuration: { type: 'number' },
width: { type: 'number' }, width: { type: 'number' },
height: { type: 'number' }, height: { type: 'number' },
fps: { type: 'number' }, fps: { type: 'number' },
@ -98,6 +100,8 @@ const cli = meow(`
if (transitionDuration) params.defaults.transition.duration = transitionDuration; if (transitionDuration) params.defaults.transition.duration = transitionDuration;
} }
if (clipDuration) params.defaults.duration = clipDuration;
if (fontPath) { if (fontPath) {
params.defaults.layer = { params.defaults.layer = {
fontPath, fontPath,

Loading…
Cancel
Save