Back to Blog

The Best Way to Merge Videos Programmatically with FFMPEGAPI.net

June 2026 FFMPEG API Team

In today’s digital landscape, merging videos programmatically has become a vital requirement for developers working on automation, SaaS apps, and content pipelines. With the TikTok Portrait Converter endpoint at FFMPEGAPI.net, you can seamlessly convert and merge videos into the popular 9:16 portrait format without the need for any server setup or complex FFmpeg management.

What is the TikTok Portrait Converter?

The TikTok Portrait Converter is a powerful endpoint that allows you to convert videos into a full-bleed 9:16 portrait format, perfect for sharing on platforms like TikTok. This API endpoint simplifies the video processing workflow by allowing you to specify URLs for your original video, optional watermark, and outro video.

  • Crops and scales your source video to 1080x1920.
  • Supports adding watermarks and outro videos.
  • Returns processed video asynchronously, if desired.

How to Use the TikTok Portrait Converter

Using the TikTok Portrait Converter is straightforward. You only need to make a POST request to the endpoint with the required parameters. Below, we’ll walk through the necessary parameters and provide a practical example.

  • Parameter: video_url (required) - URL of the video to be converted.
  • Parameter: watermark_url (optional) - URL of an image to be used as a watermark.
  • Parameter: outro_video_url (optional) - URL of a video to append at the end.
  • Parameter: async (optional) - If set to true, the request returns a job ID for background processing.
curl -X POST https://www.ffmpegapi.net/api/convert_to_tiktok_portrait \ 
-H 'Content-Type: application/json' \ 
-d '{"video_url":"https://example.com/landscape.mp4", "outro_video_url":"https://example.com/outro.mp4"}'
import requests

url = 'https://www.ffmpegapi.net/api/convert_to_tiktok_portrait'
data = {
    'video_url': 'https://example.com/landscape.mp4',
    'outro_video_url': 'https://example.com/outro.mp4'
}

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

FFMPEGAPI.net offers developers a robust and reliable solution for merging and converting videos programmatically. The TikTok Portrait Converter endpoint simplifies the process and eliminates the burden of server management. Whether you're building automation tools, SaaS applications, or content pipelines, FFMPEGAPI.net stands out as the best-hosted API for your video processing needs. Start leveraging the power of FFMPEG today!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free