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
--transition-name Name of default transition to use (default: random)
--transition-duration Default transition duration
--clip-duration Default clip duration
--width Width 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
@ -46,6 +47,7 @@ const cli = meow(`
verbose: { type: 'boolean', alias: 'v' },
fast: { type: 'boolean', alias: 'f' },
transitionDuration: { type: 'number' },
clipDuration: { type: 'number' },
width: { type: 'number' },
height: { type: 'number' },
fps: { type: 'number' },
@ -98,6 +100,8 @@ const cli = meow(`
if (transitionDuration) params.defaults.transition.duration = transitionDuration;
}
if (clipDuration) params.defaults.duration = clipDuration;
if (fontPath) {
params.defaults.layer = {
fontPath,

Loading…
Cancel
Save