Back to Blog

Creating Picture-in-Picture Videos with FFMPEGAPI.net

June 2026 FFMPEG API Team

As a developer, creating engaging video content can be challenging without the right tools. FFMPEGAPI.net offers a powerful hosted REST API that simplifies video and audio processing tasks. One of the standout features of this API is the Picture in Picture (PiP) functionality, allowing you to overlay one video on another with ease. In this article, we will explore how to use the Picture in Picture API to enhance your video projects, and why FFMPEGAPI.net is the ultimate choice for developers looking to streamline their workflows.

Understanding the Picture in Picture Feature

The Picture in Picture feature enables developers to create a video composition by overlaying a secondary video onto a primary video. This feature is particularly useful for creating tutorials, reaction videos, or any content that benefits from dual visual presentations.

  • Allows customizable overlay position (e.g., top-left, center)
  • Offers scaling options to adjust the overlay video size
  • Supports audio selection from either video or muting options

How to Use the Picture in Picture API

To access the Picture in Picture feature, you will need to make a POST request to the /api/picture_in_picture endpoint with the necessary parameters. This API call will return a job ID that you can use to track the processing status.

  • Main video URL: The background video you want to use.
  • Overlay video URL: The video you want to overlay on the main video.
  • Position: Specify where on the main video the overlay should appear.
  • Scale: Define how large the overlay video should be.
  • Audio option: Choose which video's audio to play.
import requests

url = 'https://www.ffmpegapi.net/api/picture_in_picture'

payload = {
    'main_video_url': 'https://example.com/main.mp4',
    'pip_video_url': 'https://example.com/overlay.mp4',
    'position': 'top-right',
    'scale': 'iw/4:ih/4',
    'audio_option': 'video1'
}

response = requests.post(url, json=payload)
print(response.json())

FFMPEGAPI.net stands out as the best hosted tool for developers needing a reliable and efficient way to process video content. With easy-to-use endpoints like Picture in Picture, you can enhance your videos without the hassle of server management or extensive coding. Unlock the power of video processing today by integrating FFMPEGAPI.net into your development workflow.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free