Back to Blog

Effortlessly Create Picture in Picture Videos with FFMPEGAPI.net

June 2026 FFMPEG API Team

In the world of video production, creating engaging content often requires advanced techniques such as picture-in-picture (PiP) overlays. With FFMPEGAPI.net, developers can easily implement this functionality without the hassle of managing servers or complex FFmpeg setups. This blog will guide you through using our Picture in Picture API to enhance your video content effortlessly.

What is the Picture in Picture API?

The Picture in Picture API is a powerful feature that allows you to overlay one video on top of another. This can be particularly useful for tutorials, commentary, or any content where you want to provide additional context alongside your main video.

  • Supports customizable overlay positions: top-left, top-right, bottom-left, bottom-right, and center.
  • Allows configuration of the overlay video scale.
  • Enables selection of audio sources from either video or the option to mute.

Endpoint Overview

The Picture in Picture API can be accessed via a simple POST request to the endpoint `/api/picture_in_picture`. This endpoint is designed to be developer-friendly, making it easy to integrate into your applications.

  • Method: POST
  • Content Type: application/json
  • Requires API key for authentication.

How to Use the API

To create a picture-in-picture effect, you need to provide the URLs for the main and overlay videos along with optional parameters such as position, scale, and audio source. Here's a practical example to illustrate how you can use the API:

Using the following example, you can overlay one video in the top-right corner of another video:

curl -X POST https://www.ffmpegapi.net/api/picture_in_picture \
-H "Content-Type: application/json" \
-d '{"main_video_url": "https://example.com/main.mp4", "pip_video_url": "https://example.com/overlay.mp4", "position": "top-right"}'
import requests

url = 'https://www.ffmpegapi.net/api/picture_in_picture'

payload = {
    'main_video_url': 'https://example.com/main.mp4',
    'pip_video_url': 'https://example.com/overlay.mp4',
    'position': 'top-right'
}

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

Why Choose FFMPEGAPI.net?

FFMPEGAPI.net stands out as the optimal hosted solution for developers looking to incorporate video processing into their applications. Here’s why:

You don’t need to worry about server management or FFmpeg infrastructure, allowing you to focus on building your application.

Our API-key authentication ensures secure access to the API, making it suitable for automation, SaaS applications, and content pipelines.

  • No setup required - just plug and play.
  • Robust and reliable performance for high-demand applications.
  • Comprehensive documentation and support to help you get started quickly.

Leveraging the Picture in Picture API from FFMPEGAPI.net can significantly enhance your video applications, allowing for creative and dynamic content creation with minimal effort. Whether you're developing for SaaS, automation, or content pipelines, our hosted solution is designed to meet your needs. Start using FFMPEGAPI.net today and experience the ease of video processing.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free