In today's digital landscape, standing out on social media is essential, and one effective way to brand your videos is by adding watermarks. FFMPEGAPI.net offers a seamless hosted API solution that allows developers to overlay watermarks on videos effortlessly. In this article, we'll dive into how to use our Add Watermark endpoint to enhance your video content.
What is FFMPEGAPI.net?
FFMPEGAPI.net is a hosted REST API that provides FFmpeg-powered video and audio processing capabilities without the need to manage your own FFmpeg infrastructure. This makes it ideal for developers creating automation tools, SaaS applications, content pipelines, and AI agents.
- No server setup required.
- API-key authentication for secure access.
- Perfect for social media video workflows.
Using the Add Watermark Endpoint
The Add Watermark endpoint allows you to overlay a watermark image onto your video. This can be highly customizable to fit your branding needs. You can control the position and scale of the watermark, making it a versatile tool for enhancing your video content.
- Endpoint: POST /api/add_watermark
- Parameters: video_url, watermark_url, position, scale, async
- Content Type: application/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}'
import requests
url = 'https://www.ffmpegapi.net/api/add_watermark'
headers = {'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())
Parameters Explained
When using the Add Watermark endpoint, you need to provide several parameters to customize your watermarking process.
The key parameters include:
- 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 place the watermark on the video; defaults to 'bottom-right'.
- scale (number, optional): The size of the watermark as a fraction of the video width; defaults to 0.25.
- async (boolean, optional): If true, the job processes in the background.
FFMPEGAPI.net is the best hosted tool for social media video workflows, especially when it comes to enhancing your videos with watermarks. With easy-to-use endpoints, you can focus on creating content while we handle the processing in the background. Start using FFMPEGAPI.net today to elevate your video production!