Open inbreaks opened 3 years ago
You can indeed add watermarks to a video, using the image-overlay layer?
@mifi Thanks reply, image-overlay
There are two problems
defaults
or adding it in clips
, it is not semantic enough.image-overlay
will move with clip
.{
outPath: './imageOverlay.mp4',
defaults: {
layerType: {
'image-overlay': { path: './assets/logo.png', width: 0.1 , position: { originX: 'center', originY: 'center', x: 0.1, y: 0.2 }},
},
},
clips: [
{ duration: 3, transition: { name: 'directionalWarp' }, layers: [{ type: 'title-background', text: 'Scene 1', background: { type: 'linear-gradient' } }, { type: 'image-overlay' }] },
{ duration: 3, transition: { name: 'pause' }, layers: [{ type: 'title-background', text: 'Scene 2', background: { type: 'linear-gradient' } }, { type: 'image-overlay' }] },
],
}
In view of this, consider supporting multi-track clips. 😁
Ahh now I understand what you mean. You want to have overlays that span across multiple clips?
Like a normal video editor with a specified from
- to
time to be visible.
It's possible, but editly was mostly meant for easily mashing clips together to generate a video, so it was never thought to be a fully flexible video editing API like a traditional editor.
You are right, keeping editly simple is also important.
I'm trying to do something similar. Is it somehow possible to just have one clip for the whole video, and then put all the videos as layers to have a multi-tracked video?
@thebrucecgit you can put one video as a layer inside one big clip, then you can have multiple smaller overlay videos starting at arbitrary times if that's what you mean. See https://github.com/mifi/editly/blob/master/examples/mosaic.json5
Editly Declarative API is impressive, but I did not find support for multi-track clip. Consider the following use cases
The above use cases does not seem to be solved well by adding
clips
linearly.