6 changed files with 111 additions and 53 deletions
-
4README.md
-
46audio.js
-
31examples/audio-transition.json5
-
8examples/single.json5
-
13parseConfig.js
-
30transitions.js
@ -0,0 +1,31 @@ |
|||
{ |
|||
// enableFfmpegLog: true, |
|||
outPath: './audio-transition.mp4', |
|||
keepSourceAudio: true, |
|||
defaults: { |
|||
duration: 3, |
|||
transition: { duration: 1, name: 'directional' }, |
|||
}, |
|||
clips: [ |
|||
{ layers: [ |
|||
{ type: 'title-background', text: 'Clip 1' }, |
|||
{ type: 'audio', path: './assets/sample1.m4a' } |
|||
] }, |
|||
{ transition: { duration: 0.2 }, layers: [ |
|||
{ type: 'title-background', text: 'Clip 2' }, |
|||
{ type: 'audio', path: './assets/sample2.m4a' } |
|||
] }, |
|||
{ transition: { duration: 0 }, layers: [ |
|||
{ type: 'title-background', text: 'Clip 3' }, |
|||
{ type: 'audio', path: './assets/sample1.m4a' } |
|||
] }, |
|||
{ transition: { audioInCurve: 'exp', audioOutCurve: 'exp' }, layers: [ |
|||
{ type: 'title-background', text: 'Clip 4' }, |
|||
{ type: 'audio', path: './assets/sample2.m4a' } |
|||
] }, |
|||
{ layers: [ |
|||
{ type: 'title-background', text: 'Clip 5' }, |
|||
{ type: 'audio', path: './assets/sample1.m4a' } |
|||
] }, |
|||
], |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
{ |
|||
// This is a test of a single clip to make sure that it works |
|||
outPath: './single.mp4', |
|||
keepSourceAudio: true, |
|||
clips: [ |
|||
{ layers: [{ type: 'video', path: './assets/lofoten.mp4', cutFrom: 0, cutTo: 2 }] }, |
|||
], |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue