Cloudinary supports adding text overlays to an uploaded video, and also setting the start point and the end point (or the duration) for each text overlay to appear and then disappear.
Different methods are available for setting the start/end point for the text overlays. Further information can be found in the following docs (under "Trimming and Overlay offsets"):
https://cloudinary.com/documentation/video_transformation_reference
Below is an example video with 4 back-to-back overlaid text lines, lasting 4 seconds each:
http://res.cloudinary.com/demo/video/upload/w_700/l_cloudinary_icon,g_north_east,e_brightness:200,o_40,x_5,y_5,w_120/l_text:Roboto_34px_bold:First%20text,co_white,g_west,x_10,eo_3/l_text:Roboto_34px_bold:Second%20text,co_white,g_west,x_10,so_3,eo_6/l_text:Roboto_34px_bold:Third%20text,co_white,g_west,x_10,so_6,eo_9/l_text:Roboto_34px_bold:Fourth%20text,co_white,g_west,x_10,so_9,eo_12/dog.mp4
Such URLs can sometimes grow to be fairly long, and possibly exceed the character limit determined by browsers. This can be solved by using a pre-uploaded subtitle file (SRT) as an overlay for the video clip. This will result in a shorter URL, but the same text overlaid on the video.
An example of a pre-uploaded (resource-type:raw
) subtitle file:
https://res.cloudinary.com/demo/raw/upload/sample_sub_en.srt
Applying the subtitle file over a video clip is as easy as using one overlay transformation, e.g.:
http://res.cloudinary.com/demo/video/upload/w_700/l_subtitles:sample_sub_en.srt/dog.mp4
Comments
0 comments
Please sign in to leave a comment.