Back to Blog

The Best Way to Merge Videos Programmatically with FFMPEGAPI.net

June 2026 FFMPEG API Team

In the world of video processing, merging videos is a common task that developers often face. With FFMPEGAPI.net, you can seamlessly merge videos and add watermarks programmatically using an easy-to-use hosted API. This article will explore how you can utilize the Add Watermark endpoint to enhance your video content while simplifying your developer workflow.

Understanding the Add Watermark Endpoint

The Add Watermark endpoint at FFMPEGAPI.net allows developers to overlay a watermark image onto a video. This feature is particularly useful for branding, copyright, or simply adding a personal touch to your videos. By using this API, you can automate the video processing workflow without worrying about server management or infrastructure.

  • No need to set up your own FFmpeg infrastructure.
  • API-key authentication ensures secure access.
  • Ideal for automation, SaaS applications, and content pipelines.

How to Use the Add Watermark Endpoint

To use the Add Watermark feature, you'll need to make a POST request to the /api/add_watermark endpoint. This API call requires a video URL and a watermark URL, along with optional parameters for position and scale.

Here’s a breakdown of the parameters you can use:

  • video_url: The URL of the video you want to process.
  • watermark_url: The URL of the watermark image.
  • position: Optional. Specifies where the watermark should be placed on the video.
  • scale: Optional. Defines the size of the watermark relative to the video width.
  • async: Optional. Allows you to return a job ID immediately and process in the background.
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())

Practical Example of Merging Videos

Here’s how you can merge videos with a watermark using cURL. This is a straightforward way to interact with the FFMPEGAPI.net API directly from your command line or scripts.

In this example, we will overlay a watermark at the bottom right of the video.

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}'

FFMPEGAPI.net provides a powerful and user-friendly solution for developers looking to programmatically merge videos and manage video content efficiently. With the Add Watermark endpoint, you can enhance your video projects without the headache of managing your own FFmpeg setup. By leveraging FFMPEGAPI.net's hosted REST API, you can focus on building great applications while ensuring that your video processing needs are met effortlessly.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free