Add A Permanent Watermark
api.video gives you the ability to add permanent watermarks to your videos.
Watermarks provide benefits in various contexts. Watermarks can protect your intellectual property, prevent fraud, and promote branding. Here are some of the key benefits of using watermarks:
- Deter unauthorized use
- Prevent copyright infringement
- Brand promotion
- Establish authenticity
Overall, watermarks can be an effective way to protect intellectual property, establish authenticity, and promote branding, among other benefits.
How watermarks work
Watermarks are uploaded separately from videos. You will need to upload the watermarks you want to utilize beforehand, after the watermark is uploaded it is attached to a video object, and eventually as soon as the video is uploaded to the object, the watermark is embedded in the video
- You can only add watermarks when creating a new video object.
- You cannot delete or edit watermarks after you add them to a video.
Supported Image formats
You can upload watermarks either in
png format, however it is highly recommended to use
png due to the fact that
png supports alpha channel.
Create an account
Before you can start uploading your first video, you need to create an api.video account.
Once you are logged in to the Dashboard, select the environment of your choice (sandbox or production) and copy your API key.
Installation & Usage
The clients offered by api.video include:
To install your selected client, do the following:
Upload a watermark
First step, would be to upload a watermark. It is recommended to use images that are in
png format. Once the watermark has been uploaded, you can proceed in embedding it in a video.
When the upload is complete, the response from the watermark endpoint will be the watermark id. You can either store it on your end or you can consume it from the list of watermarks.
api.video will only store the watermark id and the time and date it was uploaded. If you would like to reference the watermark to a specific image name, you would have to do that on your end.
More information can be found on the API reference page
More information about the endpoint can be found here
Add a watermark to a video using a watermark ID
Once the watermark is uploaded, you can use the watermark id in order to attach the watermark to a video object.
The watermark property in the video object creation payload is an object, that contains the following fields:
|id||string||id of the watermark|
|top||string||Distance expressed in px or % between the top-border of the video and the watermark-image.|
|left||string||Distance expressed in px or % between the left-border of the video and the watermark-image.|
|bottom||string||Distance expressed in px or % between the bottom-border of the video and the watermark-image.|
|right||string||Distance expressed in px or % between the right-border of the video and the watermark-image.|
|width||string||Width of the watermark-image relative to the video if expressed in %. Otherwise a fixed width. NOTE: To keep the watermark aspect ratio use the initial image width|
|height||string||Height of the watermark-image relative to the video if expressed in %. Otherwise a fixed height. NOTE: To keep the watermark aspect ratio use the initial image height|
|opacity||string||Opacity expressed in % only to specify the degree of the watermark-image transparency with the video.|
Delete a watermark
To delete a watermark, send the unique watermark ID to the watermarks endpoint. Deletion is permanent, you will not be able to retrieve the watermark after completing this request.
Was this page helpful?