I got a video by connecting the video and using the transition, but the second video was out of sync

Clarke
Clarke Member Posts: 2
edited December 2024 in Developer APIs

origin video1

origin video2

connected video

I'm using JS sdk

cl = cloudinary.Cloudinary.new({cloud_name: CLOUD_NAME});
const video = cl.video_url(VIDEO_ID_0,{
  transformation:[
    {duration:"3"},  
    {flags:"splice:transition_(name_pixelize;du_2)", overlay:{resource_type:"video",public_id:VIDEO_ID_1}},
    {duration: "8"},  
    {flag:"layer_apply"}  
  ],  
});

Please help

Answers