Back to Blog

Unlocking Video Creativity with FFMPEGAPI.net's Picture in Picture Feature

June 2026 FFMPEG API Team

In today's digital landscape, developers are increasingly tasked with creating engaging video content. Whether it's for social media, marketing, or educational purposes, having the right tools can make a significant difference. FFMPEGAPI.net provides a robust hosted REST API for FFmpeg-powered video and audio processing, and one of its standout features is the Picture in Picture endpoint. This article will guide you through how to leverage this powerful tool to overlay videos effortlessly.

What is the Picture in Picture Feature?

The Picture in Picture (PiP) feature allows you to overlay one video on top of another. This technique is commonly used in video editing to create engaging content that draws the viewer's attention. With FFMPEGAPI.net, you can easily create these compositions without the need for complex FFmpeg configurations or server setups.

  • Overlay any video on another with configurable settings.
  • Control the scale and position of the overlay video.
  • Choose the audio source for your output video.

How to Use the Picture in Picture API Endpoint

The Picture in Picture API is straightforward to use. It operates using a POST request to the endpoint /api/picture_in_picture. You just need to provide a main video URL, an overlay video URL, and other optional parameters to customize your output. Below are the parameters you can configure:

  • main_video_url: The URL of the main/background video (required).
  • pip_video_url: The URL of the overlay video (required).
  • position: The location of the overlay (optional, default: bottom-right).
  • scale: The size of the overlay (optional, default: iw/4:ih/4).
  • audio_option: Choose the audio source (optional, default: video1).
  • async: Process the request in the background (optional).
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())

Incorporating the Picture in Picture feature from FFMPEGAPI.net into your video processing workflow not only saves you time but also enhances your content quality. This API eliminates the need for complex setup, allowing you to focus on what matters most: creating immersive video experiences. By leveraging this hosted solution, you can automate your video processing tasks and integrate seamlessly into your development projects. Start using FFMPEGAPI.net today and unlock new possibilities in video creativity.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free