In the world of video production, adding a watermark is crucial for branding and copyright protection. With FFMPEGAPI.net, you can seamlessly integrate watermarking capabilities into your applications using our powerful hosted REST API. This article will guide you through using the 'Add Watermark' endpoint to enhance your video processing workflows efficiently.
What is FFMPEGAPI.net?
FFMPEGAPI.net is a hosted REST API that simplifies video and audio processing tasks using the powerful FFmpeg framework. It allows developers to avoid the complexities of server setup and FFmpeg infrastructure management, making it an ideal choice for SaaS applications, automation, and content pipelines.
- No server setup required.
- API-key authentication for secure access.
- Suitable for automation and AI integrations.
- Efficient processing of video and audio files.
Using the Add Watermark API Endpoint
The 'Add Watermark' endpoint enables you to overlay a watermark image onto a video with configurable options for placement and scaling. This is especially useful for content creators who wish to protect their work while maintaining brand visibility.
- Endpoint: POST /api/add_watermark
- Add customizable watermark images to your videos.
- Specify the position and scale of the watermark.
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 for the Add Watermark Endpoint
When using the Add Watermark API, you can specify several parameters to customize the watermarking process.
- video_url: The URL of the video to watermark (required).
- watermark_url: The URL of the watermark image (required).
- position: Optional. Choose from various placements (default: bottom-right).
- scale: Optional. Set the width of the watermark as a fraction of the video width (default: 0.25).
- async: Optional. Process the request in the background and return a job ID.
By utilizing the Add Watermark endpoint from FFMPEGAPI.net, developers can easily integrate video watermarking into their applications without the hassle of managing the underlying infrastructure. Start enhancing your video projects today by leveraging our hosted FFmpeg API for seamless and efficient video processing.