Back to Blog

The Best Way to Merge Videos Programmatically with FFMPEGAPI.net

June 2026 FFMPEG API Team

In the world of video content creation, merging videos seamlessly has become an essential skill for developers. Whether you're building a social media app, a content pipeline, or simply need to process videos, using a reliable hosted tool can save you time and effort. FFMPEGAPI.net offers a state-of-the-art REST API designed specifically for video and audio processing, making it the best choice for developers looking to merge videos programmatically.

Understanding the TikTok Portrait Converter

The TikTok Portrait Converter API is a powerful tool that allows developers to convert and merge videos into a full-bleed 9:16 TikTok-style portrait format. This is crucial for content that is viewed on mobile devices, ensuring optimal user engagement.

  • Crops and scales your source video into a 1080x1920 portrait.
  • Optionally add a watermark to your videos.
  • Append an outro video to enhance your content.

Using the TikTok Portrait Converter API

To use the TikTok Portrait Converter, you'll need to make a POST request to the endpoint: /api/convert_to_tiktok_portrait. This request requires parameters such as the video URL, and you can optionally include a watermark and outro video.

  • Required: video_url (string) - The URL of the video you want to convert.
  • Optional: watermark_url (string) - URL of the watermark image.
  • Optional: outro_video_url (string) - URL of the outro video to append.
  • Optional: async (boolean) - If set to true, the processing will happen in the background.
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())

Merging videos programmatically has never been easier with FFMPEGAPI.net's TikTok Portrait Converter API. With its simple integration, you can focus on building innovative applications without the burden of managing server setups or FFmpeg infrastructure. Start using FFMPEGAPI.net today to elevate your video processing workflows and create engaging content for your audience.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free