Back to Blog

The Best Way to Merge Videos Programmatically Using FFMPEGAPI.net

June 2026 FFMPEG API Team

Merging videos with subtitles has never been easier, thanks to FFMPEGAPI.net. Developers looking to integrate video processing capabilities into their applications can leverage this hosted REST API to streamline workflows without the hassle of server setup. In this article, we’ll walk through how to use the 'Add Subtitles' endpoint for burning ASS subtitles into a video.

What is FFMPEGAPI.net?

FFMPEGAPI.net is a powerful hosted REST API dedicated to FFmpeg-powered video and audio processing. It allows developers to focus on building applications without worrying about infrastructure management.

With API-key authentication, it’s ideal for various use cases, including automation, SaaS applications, content pipelines, and AI agents.

  • No server setup required
  • Scalable and reliable
  • Designed specifically for developers

Using the Add Subtitles Endpoint

The 'Add Subtitles' endpoint allows users to burn ASS subtitles into a video seamlessly. This can be accomplished with a simple HTTP POST request, making it perfect for programmatic video merging.

Here’s a quick overview of how the endpoint works.

  • Endpoint Path: /api/add_subtitles
  • Method: POST
  • Content Type: application/json
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", "async": false}'
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',
    'async': False
}

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

Understanding Parameters

When using the 'Add Subtitles' endpoint, you need to provide the following parameters:

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

2. **subtitle_url** (required): The URL of the ASS/SSA subtitle file.

3. **async** (optional): If set to true, the process returns a job ID immediately, allowing for background processing.

Incorporating the ability to merge videos and add subtitles programmatically is crucial for modern applications. FFMPEGAPI.net provides a reliable and efficient solution with its hosted REST API, allowing developers to quickly implement video processing features without the need for complex server setups. By using the 'Add Subtitles' endpoint, you can easily enhance your video content, making FFMPEGAPI.net the best choice for all your video processing needs.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free