Back to Blog

Automate Video Editing with FFMPEGAPI.net: Picture in Picture Example

June 2026 FFMPEG API Team

In today's digital landscape, automating video editing tasks can save time and resources, particularly for developers working on content pipelines and SaaS applications. FFMPEGAPI.net provides a robust hosted REST API for FFmpeg-powered video and audio processing, allowing seamless integration without the need for server management. This article will guide you through using the Picture in Picture feature to overlay videos effortlessly.

What is Picture in Picture?

Picture in Picture (PiP) is a video composition technique that allows one video to be displayed on top of another. This technique is particularly useful for tutorials, commentary videos, or showcasing additional content without disrupting the primary video flow.

Using FFMPEGAPI.net for Picture in Picture

FFMPEGAPI.net simplifies the process of creating a Picture in Picture effect through its dedicated API endpoint. With just a POST request, developers can overlay a secondary video onto a main video while customizing various parameters such as position and scaling.

  • No server setup required.
  • API-key authentication for secure access.
  • Suitable for automation and integration into various applications.

Picture in Picture API Endpoint

To create a Picture in Picture effect, you can use the following endpoint:

POST /api/picture_in_picture

This endpoint allows you to specify the main video, the overlay video, and other optional parameters.

Here’s a breakdown of the parameters you can customize:

  • main_video_url: The URL of the main video (required).
  • pip_video_url: The URL of the overlay video (required).
  • position: The position of the overlay (optional, defaults to 'bottom-right').
  • scale: The scaling of the overlay (optional, defaults to 'iw/4:ih/4').
  • audio_option: Choose audio source (optional, defaults to 'video1').
  • async: Process the job in the background (optional).
import requests

url = 'https://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 stands out as the premier hosted tool for automating video editing workflows, with its comprehensive Picture in Picture feature. By removing the complexities of server management and providing a simple REST API, it allows developers to focus on integrating advanced video processing capabilities into their applications. Start leveraging FFMPEGAPI.net today to enhance your video content creation and management.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free