In the fast-paced world of social media, standing out is crucial. One effective way to brand your videos is by adding watermarks. FFMPEGAPI.net provides a simple and efficient hosted REST API to overlay watermarks on your videos without managing your own FFmpeg infrastructure. This article will walk you through using the 'Add Watermark' endpoint to enhance your video content seamlessly.
What is FFMPEGAPI.net?
FFMPEGAPI.net is a hosted REST API designed for developers who need powerful video and audio processing capabilities without the overhead of server setup and maintenance. Our API allows you to perform various multimedia tasks, including adding watermarks, trimming videos, and converting formats.
- No server setup required.
- API-key authentication for secure access.
- Ideal for automation, SaaS applications, and content creation.
Adding a Watermark to Your Video
The 'Add Watermark' endpoint allows you to overlay an image onto your video, enhancing brand visibility. With configurable options for placement and scaling, you can easily customize how your watermark appears.
- Endpoint Path: `/api/add_watermark`
- Method: POST
- 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}'
Parameters for the 'Add Watermark' Endpoint
When using the 'Add Watermark' endpoint, you'll need to provide several parameters to customize your request.
- 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): Choose from various positions like top-left, middle, bottom-right, etc. Defaults to 'bottom-right'.
- scale (number, optional): The width of the watermark as a fraction of the video width, ranging from 0.05 to 1.0. Defaults to 0.25.
- async (boolean, optional): If true, the processing will occur in the background.
Practical Example of Adding a Watermark
Here is a practical example of how to use the 'Add Watermark' endpoint with the necessary parameters.
By using the following JSON in your POST request, you can effectively watermark your video.
{
"video_url": "https://example.com/video.mp4",
"watermark_url": "https://example.com/logo.png",
"position": "bottom-right",
"scale": 0.2
}
FFMPEGAPI.net is the optimal solution for developers looking to integrate video processing features like watermarking into their applications. With our easy-to-use API, you can streamline your social media video workflows without the hassle of managing FFmpeg servers. Start enhancing your videos today with FFMPEGAPI.net and elevate your content creation process.