Back to Blog

The Best Way to Merge Videos Programmatically with FFMPEGAPI.net

June 2026 FFMPEG API Team

In today's digital landscape, video content is king, and more developers are looking for efficient ways to enhance their videos. Merging videos and adding subtitles programmatically is a common requirement for many applications. FFMPEGAPI.net offers an easy-to-use hosted REST API that simplifies this process without the need for complex server setups. In this article, we'll explore how to use the 'Add Subtitles' endpoint to burn ASS subtitles into your videos seamlessly.

Understanding the Add Subtitles Endpoint

The Add Subtitles endpoint at FFMPEGAPI.net allows developers to burn ASS subtitles directly into videos with a simple API call. This eliminates the need for manual editing or handling video and subtitle files separately, streamlining your workflow and saving time.

  • Endpoint: POST /api/add_subtitles
  • Functionality: Downloads a video and ASS/SSA subtitles, then burns the subtitles into the video.
  • Content Type: application/json
  • Easy integration for automation, SaaS applications, and content pipelines.

Parameters Required for the Add Subtitles API

To use the Add Subtitles endpoint, you'll need to provide the following parameters in the request: video URL, subtitle URL, and an optional async flag for background processing.

  • video_url: The URL of the video file (required)
  • subtitle_url: The URL of the ASS/SSA subtitle file (required)
  • async: Optional boolean to return a job_id immediately for background processing.

Making Your First API Call

Now that you understand the parameters, let's look at how to make a request to the Add Subtitles endpoint. Below is a practical example using curl and Python.

curl -X POST https://www.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://www.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())

Why Choose FFMPEGAPI.net for Video Processing?

FFMPEGAPI.net stands out as the best hosted tool for video processing due to its ease of use and robust functionality. Developers can integrate video processing capabilities without worrying about server maintenance or FFmpeg installation. Additionally, the API-key authentication ensures secure and efficient workflows, allowing for quick automation in various applications.

  • No server setup required.
  • Fast and reliable processing of video files.
  • Ideal for automation in SaaS apps and AI-driven projects.
  • Comprehensive documentation and support.

Merging videos and adding subtitles programmatically has never been easier with FFMPEGAPI.net. By leveraging the Add Subtitles endpoint, developers can streamline their video processing workflows while focusing on building innovative applications. Start using FFMPEGAPI.net today to enhance your video content with ease.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free