Back to Blog

Seamlessly Create Picture in Picture Videos with FFMPEGAPI.net

June 2026 FFMPEG API Team

In the world of digital content creation, the Picture in Picture (PiP) effect can enhance video storytelling by overlaying one video on another. With FFMPEGAPI.net, you can easily implement this effect using our hosted REST API. This article will guide you through the steps to create a Picture in Picture video, demonstrating why FFMPEGAPI.net is the best choice for your video processing needs.

What is Picture in Picture?

Picture in Picture is a video effect that allows one video to be displayed on top of another, creating a dynamic visual experience. This technique is widely used in tutorials, live streams, and social media content to provide context or additional information without interrupting the main video.

  • Enhances viewer engagement
  • Provides additional context
  • Commonly used in educational and promotional videos

Why Use FFMPEGAPI.net for Your Video Workflows?

FFMPEGAPI.net offers a robust hosted solution for video and audio processing tasks. With no server setup or infrastructure management required, developers can focus on building their applications while leveraging the power of FFmpeg.

Our API supports API-key authentication, ensuring secure access. This makes it perfect for automation, SaaS applications, content pipelines, and AI-driven projects.

  • Easy integration with existing applications
  • Reliable performance powered by FFmpeg
  • Scalable solution for various workloads

Using the Picture in Picture API Endpoint

To create a Picture in Picture video, you can utilize the `/api/picture_in_picture` endpoint. This endpoint allows you to specify the main video and the overlay video while customizing the position, scale, and audio source.

Here’s a breakdown of the required parameters:

  • main_video_url: URL of the main/background video.
  • pip_video_url: URL of the overlay/PiP video.
  • position: Choose where to place the overlay (e.g., top-left, top-right, bottom-left, bottom-right, center).
  • scale: Set the size of the overlay video using FFmpeg scale expressions.
  • audio_option: Select the audio source (video1, video2, or mute).
  • async: Optionally return a job_id to process in the background.
curl -X POST https://ffmpegapi.net/api/picture_in_picture \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{"main_video_url":"https://example.com/main.mp4","pip_video_url":"https://example.com/overlay.mp4","position":"top-right"}'

Creating stunning Picture in Picture videos is just a few API calls away with FFMPEGAPI.net. Whether you're a developer looking to streamline your video workflows or a content creator wanting to enhance your videos, our API provides the flexibility and power you need. Start leveraging the best API for social media video workflows today and transform your video processing experience.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free