In today's digital landscape, video content is king, and ensuring your videos carry your brand's identity is essential. Adding a watermark is an effective way to achieve this. With FFMPEGAPI.net's hosted REST API, developers can seamlessly overlay watermarks onto videos without the need for complex FFmpeg infrastructure management. This article will guide you through the process of using the Add Watermark endpoint for your applications.
What is the Add Watermark API?
FFMPEGAPI.net provides a powerful Add Watermark endpoint that allows you to easily overlay a watermark image onto your videos. This feature is particularly useful for content creators, brands, and developers looking to integrate video watermarking into their workflows.
- Overlay a watermark image onto a video.
- Customize watermark placement and scale.
- Use in various applications like automation, SaaS apps, and content pipelines.
How to Use the Add Watermark Endpoint
The Add Watermark endpoint requires a POST request to the path /api/add_watermark. You need to provide the video URL, the watermark image URL, and optionally, the position and scale of the watermark.
- Method: POST
- Endpoint: /api/add_watermark
- Content Type: application/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}'
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())
Parameters Explained
Here's a breakdown of the parameters for the Add Watermark endpoint:
- video_url: The URL of the video you want to watermark (required).
- watermark_url: The URL of the watermark image (required).
- position: Determines where the watermark will be placed on the video (optional, default is bottom-right).
- scale: Sets the width of the watermark as a fraction of the video width (optional, default is 0.25).
- async: If set to true, the process will run in the background.
Using FFMPEGAPI.net to add watermarks to your videos is a straightforward process that doesn't require extensive knowledge of FFmpeg or server management. By leveraging this hosted REST API, you can easily integrate video watermarking into your applications, enhancing brand visibility and protecting your content. Start using FFMPEGAPI.net today to streamline your video processing workflows!