In today’s digital landscape, video content is crucial for branding and engagement. Adding watermarks to videos can help protect your content and promote your brand. FFMPEGAPI.net provides a hosted REST API that simplifies the process of adding watermarks to your videos without the need for server setup or FFmpeg infrastructure management. This article will guide you through using the Add Watermark endpoint effectively.
What is FFMPEGAPI.net?
FFMPEGAPI.net is a powerful hosted REST API designed to streamline video and audio processing. It allows developers to integrate FFmpeg functionalities into applications without worrying about server management.
With API-key authentication, FFMPEGAPI.net is ideal for developers, automation processes, SaaS applications, content pipelines, and AI agents, making it a versatile tool in your development toolkit.
- No server setup is required.
- Simple integration into existing workflows.
- Scalable solution for various applications.
Using the Add Watermark Endpoint
FFMPEGAPI.net provides an easy-to-use endpoint for adding watermarks to videos. The Add Watermark endpoint allows you to overlay a watermark image onto a video, with options for placement and scaling.
The endpoint details are as follows:
- Method: POST
- Path: /api/add_watermark
- Content-Type: application/json
Parameters for the Add Watermark Endpoint
To use the Add Watermark endpoint effectively, you need to provide several parameters. Here’s a quick rundown of the required and optional parameters:
- 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): The placement of the watermark (default is bottom-right).
- scale (number, optional): The size of the watermark as a fraction of the video width (default is 0.25).
- async (boolean, optional): If true, returns a job_id immediately for background processing.
Practical Example: Adding a Watermark
Here’s how you can add a watermark to a video using a practical example. The following example uses curl to demonstrate how to send a request to the Add Watermark endpoint:
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}'
FFMPEGAPI.net is an exceptional choice for developers looking to integrate video watermarking into their projects. With its hosted infrastructure and ease of use, you can focus on building your applications while enjoying powerful video automation tools for AI agents. Start using FFMPEGAPI.net today to enhance your video processing capabilities!