7 changed files with 187 additions and 88 deletions
-
20README.md
-
20examples/mosaic.json5
-
14examples/resizeVertical.json5
-
16examples/videos.json5
-
14examples/videos2.json5
-
1sources/frameSource.js
-
94sources/videoFrameSource.js
@ -0,0 +1,20 @@ |
|||
{ |
|||
width: 500, height: 500, |
|||
outPath: './mosaic.mp4', |
|||
defaults: { |
|||
transition: { duration: 0 }, |
|||
layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' }, |
|||
layerType: { |
|||
video: { width: 0.4, height: 0.4 }, |
|||
} |
|||
}, |
|||
clips: [ |
|||
{ duration: 2, layers: [ |
|||
{ type: 'video', path: './assets/IMG_1322.MOV', cutFrom: 0, cutTo: 2, resizeMode: 'cover', top: 0.5, left: 0.5, originY: 'center', originX: 'center' }, |
|||
{ type: 'video', path: './assets/IMG_1322.MOV', cutFrom: 0, cutTo: 2, resizeMode: 'contain' }, |
|||
{ type: 'video', path: './assets/IMG_1322.MOV', cutFrom: 0, cutTo: 2, resizeMode: 'contain-blur', left: 1, originX: 'right' }, |
|||
{ type: 'video', path: './assets/IMG_1884.MOV', cutFrom: 0, cutTo: 2, resizeMode: 'contain-blur', left: 1, top: 1, originX: 'right', originY: 'bottom' }, |
|||
{ type: 'video', path: './assets/IMG_1322.MOV', cutFrom: 0, cutTo: 2, resizeMode: 'stretch', top: 1, originY: 'bottom' }, |
|||
] }, |
|||
], |
|||
} |
|||
@ -1,14 +0,0 @@ |
|||
{ |
|||
width: 240, height: 320, fps: 15, |
|||
outPath: './resizeVertical.mp4', |
|||
defaults: { |
|||
transition: { duration: 0 }, |
|||
layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' }, |
|||
}, |
|||
clips: [ |
|||
{ duration: 2, layers: [{ type: 'title-background', text: 'Editly can handle all formats and sizes with different fits', background: { type: 'radial-gradient' } }] }, |
|||
{ layers: [{ type: 'video', path: './assets/IMG_1322.MOV', cutFrom: 0, cutTo: 2, resizeMode: 'contain' }, { type: 'title', text: 'Contain' }] }, |
|||
{ layers: [{ type: 'video', path: './assets/IMG_1322.MOV', cutFrom: 0, cutTo: 2, resizeMode: 'stretch' }, { type: 'title', text: 'Stretch' }] }, |
|||
{ layers: [{ type: 'video', path: './assets/IMG_1322.MOV', cutFrom: 0, cutTo: 2 }, { type: 'title', text: 'Cover' }] }, |
|||
], |
|||
} |
|||
@ -1,14 +1,16 @@ |
|||
{ |
|||
// verbose: true, |
|||
// enableFfmpegLog: true, |
|||
width: 600, height: 800, |
|||
outPath: './videos.mp4', |
|||
defaults: { |
|||
transition: { |
|||
name: 'linearblur', |
|||
}, |
|||
transition: { duration: 0 }, |
|||
layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' }, |
|||
}, |
|||
clips: [ |
|||
{ layers: [{ type: 'video', path: './assets/IMG_4605.MOV', cutFrom: 0, cutTo: 2 }, { type: 'title', text: 'Video 1' }] }, |
|||
{ layers: [{ type: 'video', path: './assets/IMG_1884.MOV', cutFrom: 0, cutTo: 2 }] }, |
|||
{ duration: 2, layers: [{ type: 'title-background', text: 'Editly can handle all formats and sizes with different fits', background: { type: 'radial-gradient' } }] }, |
|||
{ layers: [{ type: 'video', path: './assets/IMG_1322.MOV', cutFrom: 0, cutTo: 2, resizeMode: 'contain' }, { type: 'title', text: 'Contain' }] }, |
|||
{ layers: [{ type: 'video', path: './assets/IMG_1322.MOV', cutFrom: 0, cutTo: 2, resizeMode: 'contain-blur' }, { type: 'title', text: 'Contain (blur)' }] }, |
|||
{ layers: [{ type: 'video', path: './assets/IMG_1884.MOV', cutFrom: 0, cutTo: 2, resizeMode: 'contain-blur' }, { type: 'title', text: 'Contain\n(blur, vertical)' }] }, |
|||
{ layers: [{ type: 'video', path: './assets/IMG_1322.MOV', cutFrom: 0, cutTo: 2, resizeMode: 'stretch' }, { type: 'title', text: 'Stretch' }] }, |
|||
{ layers: [{ type: 'video', path: './assets/IMG_1322.MOV', cutFrom: 0, cutTo: 2, resizeMode: 'cover' }, { type: 'title', text: 'Cover' }] }, |
|||
], |
|||
} |
|||
@ -0,0 +1,14 @@ |
|||
{ |
|||
// verbose: true, |
|||
// enableFfmpegLog: true, |
|||
outPath: './video2.mp4', |
|||
defaults: { |
|||
transition: { |
|||
name: 'linearblur', |
|||
}, |
|||
}, |
|||
clips: [ |
|||
{ layers: [{ type: 'video', path: './assets/IMG_4605.MOV', cutFrom: 0, cutTo: 2 }, { type: 'title', text: 'Video 1' }] }, |
|||
{ layers: [{ type: 'video', path: './assets/IMG_1884.MOV', cutFrom: 0, cutTo: 2 }] }, |
|||
], |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue