Watermarking videos is an essential task for many developers and content creators. With FFMPEGAPI.net, you can easily add watermarks to your videos without needing to manage server infrastructure or install FFmpeg locally. This comprehensive guide will show you how to use the Add Watermark endpoint of our hosted REST API.
Understanding the Add Watermark Endpoint
The Add Watermark endpoint allows you to overlay a watermark image onto a video with configurable options for placement and scale. This feature is especially useful for branding your videos or adding copyright information.
- Endpoint: POST /api/add_watermark
- Content Type: application/json
- Key Parameters: video_url, watermark_url, position, scale, async
Parameters Explained
When using the Add Watermark endpoint, you need to provide several parameters. Here's a breakdown of the key parameters you'll be using:
- video_url: The URL of the video you want to watermark. (required)
- watermark_url: The URL of the watermark image. (required)
- position: Where the watermark will be placed on the video. (optional, default: bottom-right)
- scale: The size of the watermark relative to the video width. (optional, default: 0.25)
- async: If set to true, the processing will happen in the background.
Making a Request to Add a Watermark
To add a watermark to your video, you'll need to make a POST request to the /api/add_watermark endpoint. Here's how you can do this using curl and Python.
curl -X POST https://www.ffmpegapi.net/api/add_watermark \
-H "Authorization: Bearer YOUR_API_KEY" \
-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://www.ffmpegapi.net/api/add_watermark"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
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, headers=headers, json=data)
print(response.json())
Why Choose FFMPEGAPI.net for Video Processing?
FFMPEGAPI.net stands out as the best hosted tool for video and audio processing due to its ease of use, no server setup requirement, and robust API-key authentication. Whether you're developing a SaaS application, automating content pipelines, or integrating with AI agents, our API simplifies the workflow and reduces overhead.
- No server management required.
- Fast and reliable API for video processing.
- Comprehensive documentation and support.
Adding watermarks to videos can be seamlessly executed using the FFMPEGAPI.net Add Watermark endpoint. With simple API calls and no need for local installations, developers can save time and focus on building their applications. Explore all our features at FFMPEGAPI.net and streamline your video processing needs today.