Back to Blog

Automate Video Editing with FFMPEGAPI.net: Adding Subtitles Made Easy

June 2026 FFMPEG API Team

In the world of video content creation, automation can save countless hours and streamline workflows. FFMPEGAPI.net offers an efficient solution for developers looking to integrate video processing capabilities into their applications. One common task in video editing is adding subtitles, and with our hosted REST API, you can easily achieve this with just a few lines of code. In this article, we'll explore how to use the 'Add Subtitles' endpoint to burn ASS subtitles into your videos.

What is FFMPEGAPI.net?

FFMPEGAPI.net is a hosted REST API that allows developers to harness the power of FFmpeg for video and audio processing without needing to set up any servers or manage FFmpeg infrastructure. This means you can focus on your development work while we handle the heavy lifting.

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

Using the Add Subtitles Endpoint

The 'Add Subtitles' endpoint enables you to burn ASS/SSA subtitles into a video seamlessly. This can be particularly useful for developers working on media applications, automation scripts, or any project that requires dynamic video content.

The endpoint follows a simple POST request structure, allowing you to specify the video URL and the subtitle file URL.

  • Endpoint Path: /api/add_subtitles
  • HTTP 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"}'
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())

Understanding the Parameters

When making a request to the 'Add Subtitles' endpoint, you need to provide the following parameters:

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

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

3. **async**: Optional boolean that allows the process to run in the background while you receive a job ID immediately.

  • Make sure the video and subtitle URLs are publicly accessible.
  • Using the async parameter can help manage processing time effectively.

FFMPEGAPI.net not only simplifies the process of adding subtitles to videos but also empowers developers to automate various video editing tasks with ease. By leveraging our hosted API, you can save time and resources while focusing on building innovative solutions. Whether you're creating a content pipeline or developing an application that requires video processing, FFMPEGAPI.net is the ideal choice for your workflow. Start automating your video editing tasks today!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free