Back to Blog

Seamlessly Create Picture-in-Picture Videos with FFMPEGAPI.net

June 2026 FFMPEG API Team

In today's digital landscape, developers often need to manipulate video content to enhance user engagement. Picture-in-Picture (PiP) effects are a popular choice for many applications, allowing users to view multiple video sources simultaneously. FFMPEGAPI.net offers a robust hosted solution to achieve this functionality without the hassle of managing server infrastructure or dealing with complex FFmpeg setups.

What is Picture-in-Picture?

Picture-in-Picture (PiP) is a video display mode that allows one video to be displayed within another, creating a composite of two video streams. This feature is widely used for tutorials, commentary, streaming applications, and more.

  • Enhances user experience by allowing multitasking.
  • Ideal for educational and entertainment content.
  • Increases engagement with visual overlays.

Using the FFMPEGAPI.net Picture-in-Picture Endpoint

FFMPEGAPI.net provides a dedicated endpoint for creating Picture-in-Picture compositions. By using the `/api/picture_in_picture` endpoint, developers can easily overlay a video on top of another with customizable parameters.

This API is designed for developers looking for simplicity and efficiency, allowing for quick integration into applications.

  • No server setup required.
  • API-key authentication for secure access.
  • Ideal for automation, SaaS apps, and content pipelines.
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"}'

Parameters for Customization

The Picture-in-Picture API allows for several customizable parameters, ensuring you can tailor the output to your needs.

  • main_video_url (string): URL of the main/background video (required).
  • pip_video_url (string): URL of the overlay/PiP video (required).
  • position (string): Determines where the overlay appears (default: bottom-right).
  • scale (string): Defines the overlay size (default: iw/4:ih/4).
  • audio_option (string): Choose audio source (default: video1).
  • async (boolean): Process in background and return job_id immediately.

Practical Example

Here’s a practical example of how to use the Picture-in-Picture feature with FFMPEGAPI.net by sending a POST request with cURL.

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 provides a powerful and easy-to-use API for developers looking to implement Picture-in-Picture functionality without the overhead of managing FFmpeg installations. By leveraging this endpoint, you can create engaging video experiences that captivate your audience, all while enjoying the benefits of a cloud-based solution tailored for seamless integration into your projects.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free