Watermarking videos is an essential feature for many applications, from content creation to branding. With FFMPEGAPI.net, you can easily overlay watermarks on your videos using a simple REST API. This blog post will walk you through the process of using the 'Add Watermark' endpoint, showcasing how it fits seamlessly into your developer workflow.
What is FFMPEGAPI.net?
FFMPEGAPI.net is a hosted REST API that allows developers to leverage FFmpeg for powerful video and audio processing without the hassle of server setup or infrastructure management. Whether you're building a SaaS application, automating content pipelines, or integrating video features into AI agents, FFMPEGAPI.net provides the tools you need.
- No server management needed
- API-key authentication for secure access
- Ideal for developers and automation workflows
Using the Add Watermark Endpoint
The 'Add Watermark' endpoint is designed to overlay a watermark image onto a specified video. With flexible options for placement and scaling, you can customize how your watermark appears. This feature is especially useful for content creators and brands looking to protect their videos with logos or trademarks.
- Endpoint: POST /api/add_watermark
- Content Type: application/json
- Supports various watermark positions
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}'
Parameters for the Add Watermark API
To effectively use the Add Watermark API, you need to provide specific parameters in your request. Here’s a breakdown of the required and optional parameters:
- video_url: (required) URL of the video.
- watermark_url: (required) URL of the watermark image.
- position: (optional) Placement of the watermark (default is 'bottom-right').
- scale: (optional) Width of watermark as a fraction of video width (default is 0.25).
- async: (optional) Process the request in the background.
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())
FFMPEGAPI.net provides a robust and user-friendly solution for adding watermarks to videos through its hosted REST API. By eliminating the need for server management and offering straightforward API access, it allows developers to focus on building their applications. Whether you're working on a SaaS project or need to automate video processing tasks, FFMPEGAPI.net is the best choice for integrating FFmpeg-powered functionalities into your workflow.