Generating a video from a set of images can be accomplished via several different methods. For example, you can:
- generate an animated GIF of multiple images that share the same tag, and
- re-upload the resulting animated GIF as a video by applying an incoming transformation which converts the animated GIF to an MP4 video. You can apply an incoming transformation by specifying the transformation when uploading via the API (by passing the parameter
format: "mp4"
when uploading) or using an upload preset when uploading via the Media Library and specifyingf_mp4
in the incoming transformations:
Alternatively, you can achieve the same result by having a video underlay and concatenating images on top of the video.
For example:
https://res.cloudinary.com/demo/video/upload/w_300,h_200/w_300,h_200,l_sample,fl_splice,du_3/so_0,fl_layer_apply/l_couple,so_3/l_logo,so_4/dog.mp4
To explain the above, the first w_300,h_200
resizes dog.mp4
but the second w_300,h_200
resizes an image called sample
- the redundancy here is intentional because otherwise the concatenation would fail due to the video and images being different sizes. If you are unfamiliar with the other transformations seen in this URL, please refer to our transformation URL API reference for more information.
Comments
1 comment
If you're trying to hack a single image into a video, this might come in handy too (concatenating images to a video)
https://cloudinary.com/documentation/video_trimming_and_concatenating#concatenate_videos_with_images
Please sign in to leave a comment.