Back to Blog

Enhance Your Videos with Picture in Picture Using FFMPEGAPI.net

June 2026 FFMPEG API Team

In the world of video production, creating engaging content often requires advanced editing techniques. One such technique is the Picture in Picture (PiP) effect, which allows you to overlay one video on top of another. With FFMPEGAPI.net, you can implement this effect seamlessly using a hosted REST API, eliminating the need for complex server setups or FFmpeg management. In this article, we will explore how to use the Picture in Picture feature of FFMPEGAPI.net to enhance your video projects.

What is the Picture in Picture Feature?

The Picture in Picture feature allows you to overlay a secondary video on your main video, making it perfect for tutorials, reactions, or commentary tracks. With configurable options for position, scale, and audio, this feature empowers developers to create sophisticated video compositions effortlessly.

  • Overlay your main video with a secondary video.
  • Configure the position and scale of the overlay.
  • Choose the audio source for your final output.

Using the Picture in Picture Endpoint

To utilize the Picture in Picture functionality, you can make a POST request to the /api/picture_in_picture endpoint. Below are the parameters you need to provide:

  • main_video_url (required): URL of the main video.
  • pip_video_url (required): URL of the overlay video.
  • position (optional): Position of the overlay video. Default is bottom-right.
  • scale (optional): Scale expression for the overlay. Default is iw/4:ih/4.
  • audio_option (optional): Audio source, choose from video1, video2, or mute. Default is video1.
  • async (optional): If true, the process runs in the background.
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())
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"}'

Why Choose FFMPEGAPI.net?

FFMPEGAPI.net stands out as the best hosted tool for developers looking to integrate video processing capabilities into their applications. Here are some compelling reasons to choose FFMPEGAPI.net:

  • No server setup required: Save time by using our hosted API.
  • API-key authentication: Secure your requests and manage your workflows easily.
  • Versatile use cases: Perfect for automation, SaaS applications, and content pipelines.

With the Picture in Picture feature available on FFMPEGAPI.net, developers can enhance their video applications with minimal effort. By leveraging our hosted REST API, you can focus on creating innovative solutions without the hassle of managing FFmpeg infrastructure. Start creating stunning video compositions today with FFMPEGAPI.net.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free