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 and adding subtitles is a common requirement for developers. FFMPEGAPI.net provides a hassle-free solution to burn subtitles into videos using a simple REST API, eliminating the complexities of server setup and FFmpeg management. This article will guide you through using the 'Add Subtitles' endpoint to programmatically enhance your video content.

Understanding the Add Subtitles Endpoint

FFMPEGAPI.net offers an intuitive endpoint at '/api/add_subtitles' that allows developers to burn ASS/SSA subtitles into their videos. This functionality is essential for creating accessible content and improving viewer engagement.

  • No server setup required.
  • Utilizes API-key authentication for secure access.
  • Ideal for automation, SaaS applications, and content pipelines.

Parameters Required for the API Call

To successfully use the 'Add Subtitles' endpoint, you need to provide specific parameters in your API request. Here are the essential parameters you will need:

1. **video_url**: The URL of the video you want to process.

2. **subtitle_url**: The URL of the ASS/SSA subtitle file to be burned into the video.

3. **async**: An optional boolean parameter that allows you to process the job in the background.

Making a POST Request to Add Subtitles

To illustrate how easy it is to use the 'Add Subtitles' endpoint, here’s a practical example of how to make a POST request using cURL and Python.

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())

FFMPEGAPI.net simplifies the video processing workflow with its hosted REST API, allowing developers to merge videos and add subtitles effortlessly. By leveraging the 'Add Subtitles' endpoint, you can enhance your video content without the need for complex infrastructure. Start using FFMPEGAPI.net today to streamline your video processing tasks and take your projects to new heights.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free