Back to Blog

The Best Way to Merge Videos Programmatically Using FFMPEGAPI.net

June 2026 FFMPEG API Team

In the world of video processing, merging videos and adding subtitles is a common task for developers. FFMPEGAPI.net offers a robust solution for these workflows with its hosted REST API, allowing you to burn ASS/SSA subtitles into videos seamlessly. In this article, we’ll explore how to use the Add Subtitles endpoint to enhance your video projects effortlessly.

Overview of FFMPEGAPI.net

FFMPEGAPI.net is a hosted REST API tailored for developers looking to perform video and audio processing without the hassle of setting up servers or managing FFmpeg infrastructure. With simple API-key authentication and a focus on developer-friendly workflows, it streamlines the integration of multimedia capabilities into applications.

  • No server setup required
  • Supports various video processing tasks
  • Ideal for automation and SaaS applications
  • Great for content pipelines and AI integration

Using the Add Subtitles Endpoint

The Add Subtitles endpoint allows you to burn subtitles directly into your videos. This is crucial for making content accessible to a wider audience. The endpoint processes the video and subtitle files, providing the option for asynchronous processing if needed.

  • Endpoint Path: `/api/add_subtitles`
  • HTTP Method: POST
  • Content Type: application/json
curl -X POST https://ffmpegapi.net/api/add_subtitles -H 'Content-Type: application/json' -d '{"video_url": "https://example.com/video.mp4", "subtitle_url": "https://example.com/subtitles.ass"}'
import requests

url = 'https://ffmpegapi.net/api/add_subtitles'
data = {
    'video_url': 'https://example.com/video.mp4',
    'subtitle_url': 'https://example.com/subtitles.ass'
}

response = requests.post(url, json=data)
print(response.json())

Parameters for the Add Subtitles API

To use the Add Subtitles endpoint effectively, you need to understand the parameters required for the API call. Here’s a breakdown of the key parameters:

1. **video_url**: This is the URL of the video you wish to process. It is a required field.

2. **subtitle_url**: This is the URL of the ASS/SSA subtitle file. This is also a required field.

3. **async**: This optional boolean parameter allows you to return a job_id immediately and process the task in the background.

Using FFMPEGAPI.net to merge videos and add subtitles programmatically is a simple and effective solution for developers. With its hosted API, you can focus on building your applications without worrying about the complexities of video processing. Get started today with the Add Subtitles endpoint and experience the ease of integrating multimedia functionalities into your projects.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free