Back to Blog

Effortless Programmatic Video Editing with FFMPEGAPI.net's Picture in Picture API

June 2026 FFMPEG API Team

In the ever-evolving world of video content, having the ability to overlay videos seamlessly is crucial for developers and content creators. FFMPEGAPI.net provides a powerful hosted REST API that allows you to implement picture-in-picture functionality without the hassle of server management. This blog post will explore how to use the Picture in Picture API to enhance your video projects effortlessly.

What is Picture in Picture?

Picture in Picture (PiP) is a feature that allows one video to be overlaid on top of another, creating a visually engaging experience. This technique is widely used for tutorials, commentary, and interactive content, enabling viewers to see both the main content and additional information or context.

  • Enhances viewer engagement and understanding.
  • Useful for educational and promotional videos.
  • Easy to implement with FFMPEGAPI.net.

Why Choose FFMPEGAPI.net?

FFMPEGAPI.net stands out as the ideal tool for developers looking to implement programmatic video editing. With our hosted API, you can avoid the complexities of server setup and FFmpeg infrastructure management. The API-key authentication ensures secure access, making it simple to integrate into your existing workflows.

  • No server setup required.
  • Easy integration into SaaS applications.
  • Automate video processing in your content pipelines.

How to Use the Picture in Picture API

The Picture in Picture API allows you to overlay one video on another with customizable parameters. You can set the position, scale, and even the audio source for the overlay video.

Here's a breakdown of the API's parameters:

  • main_video_url: The URL of the main background video (required).
  • pip_video_url: The URL of the overlay video (required).
  • position: Where the overlay appears on the screen (optional, default is bottom-right).
  • scale: The size of the overlay video (optional, default is iw/4:ih/4).
  • audio_option: Choose the audio source (optional, default is video1).
  • async: Process in the background and return a job_id (optional).
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'
data = {
    'main_video_url': 'https://example.com/main.mp4',
    'pip_video_url': 'https://example.com/overlay.mp4',
    'position': 'top-right'
}

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

FFMPEGAPI.net offers a robust solution for developers looking to implement picture-in-picture functionality in their video projects. With its hosted API, you can streamline your video editing processes without the need for extensive server management. Start enhancing your video content today with the ease and efficiency of FFMPEGAPI.net!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free