Back to Blog

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

June 2026 FFMPEG API Team

In today's digital landscape, video content is essential for capturing audience attention. The Picture in Picture (PiP) effect is a popular technique that allows you to overlay one video on another, providing a creative way to enhance storytelling. With FFMPEGAPI.net, you can implement this effect seamlessly through our hosted REST API, eliminating the need for complex server setups and FFmpeg management. Let's explore how you can leverage this powerful tool in your projects.

What is Picture in Picture?

Picture in Picture refers to a video effect where one video plays within a smaller window on top of another video. This technique is widely used in tutorials, live streams, and various multimedia presentations.

  • Enhances viewer engagement.
  • Useful for demonstrations or commentary.
  • Allows simultaneous display of related content.

Using FFMPEGAPI.net for Picture in Picture

FFMPEGAPI.net provides a straightforward endpoint to create Picture in Picture compositions. With our hosted API, you can overlay a video on a main video with just a few parameters. The endpoint to use is `/api/picture_in_picture`, which supports various configurations to customize the overlay.

  • No server setup needed.
  • API-key authentication for security.
  • Ideal for automation and SaaS applications.
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'
headers = {'Content-Type': 'application/json'}

data = {
    'main_video_url': 'https://example.com/main.mp4',
    'pip_video_url': 'https://example.com/overlay.mp4',
    'position': 'top-right'
}

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

Parameters for the Picture in Picture API

To create a Picture in Picture video, you need to provide specific parameters. Here's a breakdown of the required and optional parameters for the API call.

  • main_video_url (string, required): URL of the main background video.
  • pip_video_url (string, required): URL of the overlay video.
  • position (string, optional): Position of the overlay (default: bottom-right).
  • scale (string, optional): Scale expression for the overlay (default: iw/4:ih/4).
  • audio_option (string, optional): Source for audio (default: video1).
  • async (boolean, optional): Process in the background and return job_id.

With FFMPEGAPI.net, integrating Picture in Picture effects into your video content has never been easier. By eliminating the need for server management and complex configurations, our hosted REST API allows developers to focus on creating stunning multimedia experiences. Whether you're building a SaaS application, automating workflows, or enhancing content pipelines, FFMPEGAPI.net is the best choice for developers seeking efficient video processing solutions. Get started today and transform your videos using our powerful API!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free