In today's content-driven landscape, adding a watermark to your videos is essential for branding and copyright protection. For developers looking to streamline this process, FFMPEGAPI.net offers a powerful hosted REST API that simplifies video and audio processing without the hassle of server management. In this article, we'll explore how to use the 'Add Watermark' endpoint to overlay watermarks onto videos effortlessly.
Why Choose FFMPEGAPI.net for Video Processing?
FFMPEGAPI.net stands out as the best choice for developers needing a reliable solution for video processing tasks. With no server setup or FFmpeg infrastructure management required, you can focus on building your applications without the overhead of maintaining complex systems.
The API-key authentication ensures that your workflows remain secure, making it ideal for automation, SaaS applications, content pipelines, and AI agents.
- Hosted REST API for seamless integration.
- No need for local FFmpeg installations.
- Scalable solution for varying workloads.
- Easy-to-use endpoints for common video processing tasks.
Using the Add Watermark Endpoint
The 'Add Watermark' endpoint is designed to overlay a watermark image onto your video. This can be done with a simple POST request, allowing you to specify parameters such as the video URL, watermark URL, position, and scale.
Here's a breakdown of the parameters you can use:
- video_url (string, required): The URL of the video you want to watermark.
- watermark_url (string, required): The URL of the watermark image.
- position (string, optional): Position for the watermark. Default is 'bottom-right'.
- scale (number, optional): Watermark width as a fraction of the video width, ranging from 0.05 to 1.0. Default is 0.25.
- async (boolean, optional): If true, returns a job_id immediately and processes in the background.
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())
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}'
With FFMPEGAPI.net, adding watermarks to your videos is just a few lines of code away. The simplicity and power of our hosted API make it the best choice for developers looking to enhance their video processing workflows. Start using the 'Add Watermark' endpoint today and experience a new level of efficiency in video processing.