Concatenating videos with custom transitions and duration padding
Hi,
Our goal is to take a number of videos and concatenate them with the following:
1. We want to use a custom transition (using a mask video).
2. Video selection is dynamic so we cannot use explicit durations in the transformations
3. Most videos include speaking so the transition needs to be applied without an overlap (so we dont hear the audio from more than one video at a time).
So the results would be vid1 plays to end and pauses, transition starts into vid2 - and repeat if more than 2 videos.
In trying this we encounter several difficulties:
1. First it appears that the using the exact same transformation works with some videos and not with others (we see 404 for some video combinations using the same transformations and number of videos but just different ones).
2. We are not sure how to achieve the 'duration padding' at the end of each video so that the transition only starts when it is completed (so that we don't get audio from two videos at once).
Any idea of how to achieve this?
-
Hi Asi,
The 404 error during video concatenation usually occurs when the online manipulation limit is exceeded for the account and we suggest generating those eagerly. More information here: https://cloudinary.com/documentation/upload_videos#eager_video_transformations
For the second URL you can use an image in between as a padding for the video transition, much like what my colleague suggested:
https://res.cloudinary.com/demo/video/upload/w_300,h_200,du_5/l_sample,fl_splice,w_300,h_200,du_3/fl_layer_apply/l_video:dog,w_300,h_200/du_5/l_video:transition1,e_transition/fl_layer_apply/fl_layer_apply/dog.mp4Regards,
Aditi0
Post is closed for comments.
Comments
1 comment