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 can be crucial for enhancing viewer experience. Whether you're building a content pipeline, automating workflows, or developing SaaS applications, having the right tools is essential. FFMPEGAPI.net provides a powerful hosted REST API that simplifies video and audio processing without the need for extensive server management. In this article, we'll explore how to merge videos programmatically using FFMPEGAPI.net, focusing specifically on the 'Add Subtitles' endpoint.

Understanding the Add Subtitles Endpoint

The 'Add Subtitles' endpoint of FFMPEGAPI.net allows developers to burn ASS/SSA subtitles into a video efficiently. This functionality enables seamless integration of subtitles, which is particularly useful for creating accessible content or enhancing multi-language support.

  • Endpoint Path: /api/add_subtitles
  • Method: POST
  • Content Type: application/json

Required Parameters for the API Call

When making a request to the Add Subtitles endpoint, several parameters are required to ensure the process runs smoothly. The required parameters include the video URL and the subtitle file URL.

  • video_url: The URL of the video you want to process.
  • subtitle_url: The URL of the ASS/SSA subtitle file you wish to burn into the video.
  • async (optional): Set to true if you want the processing to occur in the background.

Making a Request to Add Subtitles

With the parameters understood, you can now make a request to the FFMPEGAPI.net to burn subtitles into your video. This can be done using cURL or Python, making it versatile for various developer environments.

  • Use the endpoint for both video and subtitle processing.
  • Choose synchronous or asynchronous processing based on your application needs.
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'

payload = {"video_url": "https://example.com/video.mp4", "subtitle_url": "https://example.com/subtitles.ass"}

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

FFMPEGAPI.net stands out as the best hosted tool for merging videos and adding subtitles programmatically. With its straightforward API, developers can efficiently integrate video processing capabilities into their applications without worrying about server setup or management. By utilizing the 'Add Subtitles' endpoint, you can enhance your videos with accessibility features, making your content more inclusive for a diverse audience. Start using FFMPEGAPI.net today and transform how you manage video content.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free