Adding Watermarks (Static Images, Animated GIFs, and Videos) to Videos
Adding watermarks to videos on Cloudinary yields many enhancements, involving only a few simple steps. The sections below describe the various scenarios along with examples.
Images Overlayed Onto Videos
With Cloudinary, you can add a watermark as an overlay on top of a video with the overlay
parameter. Simply set overlay
(l
in the URL) as your watermark’s public ID. You can also customize the overlaid image's size and position, offset, color effects, opacity, and other properties.
As mentioned in the article, Adding Watermarks as an Overlay, you can easily add watermarks to videos as well. Watermarks and overlays are ideal for displaying logos, price tags, discounts, custom badges, and so forth. Take this video:
Here’s how it looks with a Cloudinary logo called cloudlogo2
on top :
Animated GIFs Overlayed Onto Videos
One way to boost the visual effect of videos is to , watermark them with animated GIFs. Think here the animations on live television with “Breaking News” or a spinning logo of the broadcasting network.
The process involves replacing the logo reference cloudlogo2
with a transparent, animated GIF and introducing a loop effect (with the parameter e_loop
) that causes the animated GIF to spin for the entire duration of the video, not just its initial number of frames. For details on the loop effect, see this [Cloudinary product update] (https://cloudinary.com/product_updates/video_loop_effect).
Also, you can eliminate opacity control by setting the o
parameter with GIFs.
Here is another example:
Videos Overlayed Onto Videos
You can actually overlay videos onto other videos. Isn’t that cool?
First, add a video watermark by setting the overlay
parameter (l_video
in the URL) as your video’s public ID. The example below shows how you can control the watermark’s size and position, as demonstrated earlier, also the duration of the overlayed video, the starting offset, and such.
As an interesting use case, add American Sign Language (ASL or others) to a video or presentation to support deaf communities in English-speaking countries. In the U. S. A. alone, that community numbers as high as 15 million. In the U. K., ASL or its equivalent, British Sign Language (BSL), can also be instrumental in communicating with autism-afflicted children and adults. Similarly, as described in this [article] (https://cloudinary.com/documentation/google_ai_video_transcription_addon#displaying_transcripts_as_subtitle_overlays), you can embed subtitles generated by Cloudinary with your videos .
The size of the overlaid ASL video is represented in percentages, not pixels, with the setting
w_0.30
.The corners of the video are rounded due to the settings for radius control (
r
) and for the number of degrees (20
).Because the two videos are similar but of different lengths, the audio channel is disabled with
ac_none
, the timeline of the overlay is corrected with start offset (so
), and the number of seconds to skip from the beginning is set at 5.8. Another use case for overlaying a video onto another is to show both the speaker and the intended keynote PowerPoint presentation. No need for sophisticated video editors or time-sensitive events, such as conferences. For more information and examples of watermark embedding and manipulation by Cloudinary, see these two blog posts:Image Opacity Manipulation and Dynamic Watermark Generation.
Adding Watermarks, Credits, Badges, and Text Overlays to Images