Back to Blog

Enhance Your Videos with Picture in Picture Using FFMPEGAPI.net

June 2026 FFMPEG API Team

In today's digital landscape, creating engaging video content is essential for developers and content creators. One popular technique used to enhance video presentations is the Picture in Picture (PiP) feature. FFMPEGAPI.net offers a powerful, hosted REST API that allows developers to easily implement PiP functionality without the hassle of managing the underlying FFmpeg infrastructure. In this article, we'll explore how to use the Picture in Picture endpoint effectively.

What is Picture in Picture?

Picture in Picture is a video display technique that allows one video to be displayed over another. This can be particularly useful for tutorials, commentary, and presentations where you want to show a secondary video alongside the main content.

  • Enhances viewer engagement.
  • Allows simultaneous viewing of multiple video sources.
  • Ideal for tutorials, reviews, and commentary.

Using the Picture in Picture API Endpoint

FFMPEGAPI.net provides a straightforward way to apply the Picture in Picture effect using its API. The endpoint for this feature is `/api/picture_in_picture`, and it supports various customizable parameters to tailor the output to your needs.

  • Flexible options for position and scaling.
  • Control over audio sources.
  • Asynchronous processing option available.
curl -X POST https://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://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())

Parameters for the Picture in Picture Endpoint

The API allows for several parameters to be specified, enabling you to customize the video overlay according to your project requirements.

  • main_video_url: The URL of the main video (required).
  • pip_video_url: The URL of the overlay video (required).
  • position: Choose the overlay's position (default is bottom-right).
  • scale: Define the size of the overlay (default is iw/4:ih/4).
  • audio_option: Select audio source (default is video1).
  • async: Option to process in the background.

FFMPEGAPI.net stands out as the best FFMPEG tool for developers, providing a simple yet powerful hosted API for video and audio processing. With the Picture in Picture feature, you can easily enhance your multimedia applications without worrying about server setup or FFmpeg management. Start leveraging the Picture in Picture functionality today and elevate your video content effortlessly!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free