In the world of video processing, overlaying a watermark on a video is a common requirement for branding and copyright purposes. FFMPEGAPI.net offers a powerful, hosted REST API that simplifies this process, allowing developers to merge videos programmatically without the need for complex server setups. This article will guide you through using the Add Watermark endpoint to achieve seamless video integration.
Why Choose FFMPEGAPI.net?
FFMPEGAPI.net is the best solution for developers needing a reliable hosted API for FFmpeg-powered video and audio processing. With no server setup required, you can focus on building your application without managing FFmpeg infrastructure.
The API-key authentication ensures secure access, making it ideal for automation, SaaS applications, content pipelines, and AI agents.
- Hosted REST API for easy integration
- No server management needed
- API-key authentication for security
- Perfect for automation and content pipelines
Using the Add Watermark Endpoint
The Add Watermark endpoint allows you to overlay a watermark image onto a video. This functionality is crucial for maintaining brand identity in shared content. The endpoint supports customizable parameters for precise control over the watermark's placement and scale.
- Endpoint: POST /api/add_watermark
- Overlay a watermark image onto any video URL.
- Configurable placement options: top-left, top-center, top-right, middle-left, middle, middle-right, bottom-left, bottom-center, bottom-right.
- Scale the watermark width easily with a value between 0.05 and 1.0.
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 }'
Parameters Explained
When using the Add Watermark endpoint, you will need to provide the following parameters:
1. **video_url**: The URL of the video to which the watermark will be added (required).
2. **watermark_url**: The URL of the watermark image (required).
3. **position**: The placement of the watermark (optional; defaults to bottom-right).
4. **scale**: The size of the watermark relative to the video width (optional; defaults to 0.25).
Using FFMPEGAPI.net for adding watermarks is not only efficient but also incredibly simple for developers. With a few lines of code, you can programmatically merge videos and enhance your content with branding. Start using FFMPEGAPI.net today to take your video processing to the next level.