Browse Source
fix resizeMode cover issue with on resolutions (do calculations in JS instead of ffmpeg)
new-features-2020
fix resizeMode cover issue with on resolutions (do calculations in JS instead of ffmpeg)
new-features-2020
2 changed files with 32 additions and 16 deletions
@ -1,14 +1,14 @@ |
|||||
{ |
{ |
||||
outPath: './pip.mp4', |
outPath: './pip.mp4', |
||||
width: 1280, height: 720, fps: 30, |
width: 1280, height: 720, fps: 30, |
||||
enableFfmpegLog: true, |
|
||||
defaults: { |
defaults: { |
||||
layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' }, |
layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' }, |
||||
}, |
}, |
||||
clips: [ |
clips: [ |
||||
{ duration: 4, layers: [ |
{ duration: 4, layers: [ |
||||
{ type: 'rainbow-colors' }, |
{ type: 'rainbow-colors' }, |
||||
{ type: 'video', path: './assets/tungestolen.mp4', resizeMode: 'contain', width: 0.4, height: 0.4, top: 0.05, left: 0.95, originY: 'top', originX: 'right' }, |
|
||||
|
{ type: 'video', path: './assets/tungestolen.mp4', resizeMode: 'cover', width: 0.3, height: 0.4, top: 0.05, left: 0.95, originY: 'top', originX: 'right' }, |
||||
|
{ type: 'video', path: './assets/tungestolen.mp4', resizeMode: 'cover', width: 0.4, height: 0.2, top: 0.05, left: 0.05, originY: 'top', originX: 'left' }, |
||||
{ type: 'title', position: 'bottom', text: 'Picture-in-Picture' } |
{ type: 'title', position: 'bottom', text: 'Picture-in-Picture' } |
||||
] }, |
] }, |
||||
], |
], |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue