tnfe / FFCreator

A fast video processing library based on node.js (一个基于node.js的高速视频制作库)
http://tnfe.github.io/FFCreator/
MIT License
2.82k stars 398 forks source link

针对单个组件是否有可能setTransition? #437

Open gubeils opened 1 month ago

gubeils commented 1 month ago

是否可能对FFVideo或FFImage组件setTransition?(看到多个scene可以支持setTransition,在我们的场景下只能使用1个scene)

gubeils commented 1 month ago

或者是否有可能 对于一个scene,增加api:

// type, duration, params
// startTime为新加参数,表示转场的开始时间
scene.addTransition({
  name: 'TricolorCircle',
  duration: 1.5,
  startTime: 1,
  params: {},
});
scene.addTransition({
  name: 'TricolorCircle',
  duration: 1.2,
  startTime: 5, 
  params: {},
});
drawcall commented 1 month ago

mark, 精力有限 加入后续计划

gubeils commented 1 month ago

是否有可行性呢?大概在哪修改,可以pr

drawcall commented 1 month ago

scene Transition使用的是postprocessing, FFImage可使用filters模拟简单效果,复杂效果暂不支持