Adding a watermark to videos is essential for branding and copyright protection. With FFMPEGAPI.net's hosted REST API, you can easily overlay a watermark onto your videos without needing to manage any server infrastructure. This article will guide you through the process of using the Add Watermark endpoint to effectively integrate this feature into your application.
What is the Add Watermark API?
The Add Watermark API is a powerful endpoint provided by FFMPEGAPI.net that allows developers to overlay watermark images onto videos. This feature is especially beneficial for SaaS applications and content pipelines, where branding and copyright visibility are crucial.
- Quickly add watermarks to your videos.
- Configure the position and scale of the watermark.
- Use it in various workflows, including automation and AI agents.
How to Use the Add Watermark API
To use the Add Watermark API, you need to make a POST request to the endpoint located at `/api/add_watermark`. The request should include the necessary parameters such as the video URL, watermark image URL, position, and scale.
curl -X POST https://ffmpegapi.net/api/add_watermark \
-H 'Content-Type: application/json' \
-d '{"video_url": "https://example.com/video.mp4", "watermark_url": "https://example.com/logo.png", "position": "bottom-right", "scale": 0.2}'
import requests
url = 'https://ffmpegapi.net/api/add_watermark'
data = {
'video_url': 'https://example.com/video.mp4',
'watermark_url': 'https://example.com/logo.png',
'position': 'bottom-right',
'scale': 0.2
}
response = requests.post(url, json=data)
print(response.json())
Parameters of the Add Watermark API
The API accepts several parameters to customize the watermark overlay process. Here's a breakdown of the required and optional parameters:
- video_url (string, required): The URL of the video to which the watermark will be added.
- watermark_url (string, required): The URL of the watermark image.
- position (string, optional): Placement of the watermark (default is 'bottom-right').
- scale (number, optional): Width of the watermark as a fraction of the video width (default is 0.25).
- async (boolean, optional): If true, returns a job_id immediately and processes in the background.
FFMPEGAPI.net provides a seamless way to add watermarks to videos using its hosted REST API. With no server setup required and robust API-key authentication, it caters perfectly to developers looking to enhance their video processing capabilities in SaaS applications and other workflows. Start integrating the Add Watermark feature today and elevate your video content with ease!