10 changed files with 123 additions and 51 deletions
-
27README.md
-
67examples/README.md
-
11examples/customCanvas.js
-
5examples/customFabric.js
-
16examples/gl.json5
-
7examples/image.json5
-
10examples/kenBurns.json5
-
11examples/resizeHorizontal.json5
-
10examples/speedTest.json5
-
10examples/subtitle.json5
@ -0,0 +1,67 @@ |
|||
# Examples |
|||
|
|||
## Ken Burns zoom slideshow |
|||
|
|||
 |
|||
|
|||
[kenBurns.json5](https://github.com/mifi/editly/blob/master/examples/kenBurns.json5) |
|||
|
|||
```bash |
|||
editly kenBurns.json5 |
|||
``` |
|||
|
|||
## Resize modes |
|||
|
|||
 |
|||
|
|||
[resizeHorizontal.json5](https://github.com/mifi/editly/blob/master/examples/resizeHorizontal.json5) |
|||
|
|||
```bash |
|||
editly resizeHorizontal.json5 |
|||
``` |
|||
|
|||
## Speed up / slow down with cutting |
|||
|
|||
 |
|||
|
|||
[speedTest.json5](https://github.com/mifi/editly/blob/master/examples/speedTest.json5) |
|||
|
|||
```bash |
|||
editly speedTest.json5 |
|||
``` |
|||
|
|||
## Title and subtitle |
|||
|
|||
 |
|||
|
|||
[subtitle.json5](https://github.com/mifi/editly/blob/master/examples/subtitle.json5) |
|||
|
|||
```bash |
|||
editly subtitle.json5 |
|||
``` |
|||
|
|||
## Custom HTML5 canvas Javascript |
|||
|
|||
 |
|||
|
|||
[customCanvas.js](https://github.com/mifi/editly/blob/master/examples/customCanvas.js) |
|||
|
|||
|
|||
```bash |
|||
node customCanvas.js |
|||
``` |
|||
|
|||
## Custom Fabric.js |
|||
|
|||
 |
|||
|
|||
[customFabric.js](https://github.com/mifi/editly/blob/master/examples/customFabric.js) |
|||
|
|||
|
|||
```bash |
|||
node customFabric.js |
|||
``` |
|||
|
|||
## LosslessCut tutorial |
|||
|
|||
[This video](https://www.youtube.com/watch?v=pYHMxXy05Jg) was created with [losslesscut.json5](https://github.com/mifi/editly/blob/master/examples/losslesscut.json5) |
|||
@ -1,16 +1,10 @@ |
|||
{ |
|||
fast: true, |
|||
// verbose: true, |
|||
outPath: './gl.mp4', |
|||
defaults: { |
|||
transition: { name: 'random' }, |
|||
layer: { fontPath: './Patua_One/PatuaOne-Regular.ttf' }, |
|||
}, |
|||
clips: [ |
|||
{ transition: null, duration: 3, layers: [{ type: 'gl', fragmentPath: './shaders/3l23Rh.frag' }] }, |
|||
{ duration: 3, layers: [{ type: 'gl', fragmentPath: './shaders/MdXyzX.frag' }] }, |
|||
{ duration: 3, layers: [{ type: 'gl', fragmentPath: './shaders/30daysofshade_010.frag', speed: 1 }] }, |
|||
{ duration: 3, layers: [{ type: 'gl', fragmentPath: './shaders/rainbow-background.frag' }] }, |
|||
{ duration: 3, layers: [{ type: 'gl', fragmentPath: './shaders/wd2yDm.frag', speed: 5 }] }, |
|||
{ transition: null, duration: 3, layers: [{ type: 'gl', fragmentPath: './assets/shaders/3l23Rh.frag' }] }, |
|||
{ duration: 3, layers: [{ type: 'gl', fragmentPath: './assets/shaders/MdXyzX.frag' }] }, |
|||
{ duration: 3, layers: [{ type: 'gl', fragmentPath: './assets/shaders/30daysofshade_010.frag', speed: 1 }] }, |
|||
{ duration: 3, layers: [{ type: 'gl', fragmentPath: './assets/shaders/rainbow-background.frag' }] }, |
|||
{ duration: 3, layers: [{ type: 'gl', fragmentPath: './assets/shaders/wd2yDm.frag', speed: 5 }] }, |
|||
], |
|||
} |
|||
@ -1,7 +0,0 @@ |
|||
{ |
|||
fast: true, |
|||
outPath: './image.mp4', |
|||
clips: [ |
|||
{ layers: [{ type: 'image', path: './vertical.jpg', zoomDirection: 'out' }] }, |
|||
], |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
{ |
|||
outPath: './kenBurns.mp4', |
|||
defaults: { |
|||
transition: { name: 'fade' }, |
|||
}, |
|||
clips: [ |
|||
{ duration: 3, layers: [{ type: 'image', path: './assets/img2.jpg', zoomDirection: 'out' }] }, |
|||
{ duration: 3, layers: [{ type: 'image', path: './assets/img3.jpg', zoomDirection: 'in' }] }, |
|||
], |
|||
} |
|||
@ -1,13 +1,12 @@ |
|||
{ |
|||
fast: true, |
|||
outPath: './resizeHorizontal.mp4', |
|||
defaults: { |
|||
transition: { duration: 0 }, |
|||
layer: { fontPath: './Patua_One/PatuaOne-Regular.ttf', backgroundColor: 'white' }, |
|||
transition: null, |
|||
layer: { backgroundColor: 'white' }, |
|||
}, |
|||
clips: [ |
|||
{ layers: [{ type: 'video', path: './IMG_4605.MOV', cutFrom: 0.4, cutTo: 2 }] }, |
|||
{ layers: [{ type: 'video', path: './IMG_4605.MOV', cutFrom: 0.4, cutTo: 2, resizeMode: 'contain' }] }, |
|||
{ layers: [{ type: 'video', path: './IMG_4605.MOV', cutFrom: 0.4, cutTo: 2, resizeMode: 'stretch' }] }, |
|||
{ layers: [{ type: 'video', path: './assets/IMG_4605.MOV', cutFrom: 0.4, cutTo: 2 }] }, |
|||
{ layers: [{ type: 'video', path: './assets/IMG_4605.MOV', cutFrom: 0.4, cutTo: 2, resizeMode: 'contain' }] }, |
|||
{ layers: [{ type: 'video', path: './assets/IMG_4605.MOV', cutFrom: 0.4, cutTo: 2, resizeMode: 'stretch' }] }, |
|||
], |
|||
} |
|||
@ -1,15 +1,13 @@ |
|||
{ |
|||
fast: true, |
|||
// verbose: true, |
|||
outPath: './speedTest.mp4', |
|||
defaults: { |
|||
transition: null, |
|||
layer: { fontPath: './Patua_One/PatuaOne-Regular.ttf' }, |
|||
layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' }, |
|||
}, |
|||
clips: [ |
|||
{ duration: 2, layers: [{ type: 'title-background', text: 'Speed up or slow down video', background: { type: 'radial-gradient' } }] }, |
|||
{ duration: 2, layers: [{ type: 'video', path: './IMG_4605.MOV', cutFrom: 0, cutTo: 2 }, { type: 'title-background', text: 'Same speed' }] }, |
|||
{ duration: 1, layers: [{ type: 'video', path: './IMG_4605.MOV', cutFrom: 0, cutTo: 4 }, { type: 'title-background', text: '4x' }] }, |
|||
{ duration: 2, layers: [{ type: 'video', path: './IMG_4605.MOV', cutFrom: 0, cutTo: 1 }, { type: 'title-background', text: '1/2x' }] }, |
|||
{ duration: 2, layers: [{ type: 'video', path: './assets/IMG_4605.MOV', cutFrom: 0, cutTo: 2 }, { type: 'title', text: 'Same speed' }] }, |
|||
{ duration: 1, layers: [{ type: 'video', path: './assets/IMG_4605.MOV', cutFrom: 0, cutTo: 4 }, { type: 'title', text: '4x' }] }, |
|||
{ duration: 2, layers: [{ type: 'video', path: './assets/IMG_4605.MOV', cutFrom: 0, cutTo: 1 }, { type: 'title', text: '1/2x' }] }, |
|||
], |
|||
} |
|||
@ -1,7 +1,13 @@ |
|||
{ |
|||
// fast: true, |
|||
outPath: './subtitle.mp4', |
|||
defaults: { |
|||
layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' }, |
|||
}, |
|||
clips: [ |
|||
{ duration: 2, layers: [{ type: 'rainbow-colors' }, { type: 'subtitle', text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.' }, { type: 'title', position: 'top', text: 'Subtitles' }] }, |
|||
{ duration: 2, layers: [ |
|||
{ type: 'rainbow-colors' }, |
|||
{ type: 'subtitle', text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident.' }, |
|||
{ type: 'title', position: 'top', text: 'Subtitles' }, |
|||
] }, |
|||
], |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue