Adding a watermark to your videos is a crucial step in branding and protecting your content. With FFMPEGAPI.net, a hosted REST API for FFmpeg-powered video and audio processing, you can easily overlay images onto videos without the hassle of server setup or infrastructure management. This article will guide you through the process of using our 'Add Watermark' API endpoint to enhance your video content.
What is the Add Watermark API?
The Add Watermark API is a powerful tool that allows developers to overlay a watermark image onto a video. This can be particularly useful for content creators, marketers, and businesses looking to maintain brand visibility.
With a simple HTTP POST request, you can configure various parameters such as the video URL, watermark URL, position, and scale to customize the output to your needs.
- Supports various watermark positions: top-left, top-center, top-right, middle-left, middle, middle-right, bottom-left, bottom-center, bottom-right.
- Allows for customizable scaling of the watermark image.
- Asynchronous processing for improved performance.
How to Use the Add Watermark API
To make a request to the Add Watermark API, you will need to send a POST request to the endpoint at /api/add_watermark. Below are the required and optional parameters you can include in your request.
Here's the breakdown of the parameters you can use:
- video_url (string, required): The URL of the video you want to process.
- watermark_url (string, required): The URL of the image you want to use as a watermark.
- position (string, optional): Defines where the watermark will be placed on the video. Defaults to 'bottom-right'.
- scale (number, optional): Sets the width of the watermark as a fraction of the video width, ranging from 0.05 to 1.0. Defaults to 0.25.
- async (boolean, optional): If true, the API will return a job_id and process the request in the background.
import requests
url = 'https://www.ffmpegapi.net/api/add_watermark'
payload = {
'video_url': 'https://example.com/video.mp4',
'watermark_url': 'https://example.com/logo.png',
'position': 'bottom-right',
'scale': 0.2,
'async': True
}
response = requests.post(url, json=payload)
print(response.json())
curl -X POST https://www.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, "async": true}'
Why Choose FFMPEGAPI.net?
FFMPEGAPI.net stands out as the best hosted tool for video processing tasks. By using our API, you can focus on building your applications without worrying about the complexities of setting up and managing FFmpeg infrastructure.
Our API-key authentication ensures secure access while allowing for seamless integration into your developer workflows. Whether you're automating tasks, building SaaS applications, or creating content pipelines, FFMPEGAPI.net is designed to meet your needs.
- No server setup required – get started immediately.
- Fast processing with configurable options for customization.
- Ideal for developers, automation tasks, and AI-driven applications.
In conclusion, adding watermarks to your videos has never been easier with the Add Watermark API from FFMPEGAPI.net. This hosted solution allows you to integrate video processing capabilities into your applications quickly and efficiently. Start using FFMPEGAPI.net today to enhance your media content and streamline your content pipelines.