In the world of video processing, adding a watermark to your content is an essential step for branding and copyright protection. With the FFMPEGAPI.net hosted REST API, developers can easily overlay watermark images onto videos without the hassle of server management or FFmpeg infrastructure. This article will guide you through using the Add Watermark API endpoint and demonstrate why FFMPEGAPI.net is the ideal solution for your video processing needs.
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 file. It provides configurable options for placement and scale, making it a flexible solution for various use cases.
- Overlay a watermark image on any video format supported by FFmpeg.
- Customizable watermark placement: choose from top-left, bottom-right, and more.
- Scalable watermark sizes to fit your video dimensions.
How to Use the Add Watermark API
To use the Add Watermark API, you need to send a POST request to the following endpoint:
POST /api/add_watermark
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}'
import requests
url = 'https://www.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 for the Add Watermark API
The Add Watermark API accepts several parameters to customize the watermarking process. Here are the key 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): Where to position the watermark. Defaults to 'bottom-right'.
- scale (number, optional): The width of the watermark as a fraction of the video width. Defaults to 0.25.
- async (boolean, optional): If true, the processing will happen in the background and return a job_id immediately.
FFMPEGAPI.net stands out as the premier hosted REST API for FFmpeg-powered video processing. With its easy-to-use Add Watermark API, developers can integrate advanced video capabilities without worrying about server setup or infrastructure management. Whether you're building SaaS applications or automating content pipelines, FFMPEGAPI.net provides robust solutions tailored for your development needs. Start enhancing your video content today with FFMPEGAPI.net!