Back to Blog

Automate Video Editing with FFMPEGAPI.net: Picture in Picture Integration

June 2026 FFMPEG API Team

In the world of video content creation, automating editing workflows can save time and enhance productivity. FFMPEGAPI.net provides a robust solution for developers looking to integrate video processing capabilities directly into their applications. One powerful feature available is the Picture in Picture (PiP) functionality, which allows you to overlay one video on top of another seamlessly. In this article, we'll explore how to use this feature effectively with the FFMPEGAPI.net service.

What is the Picture in Picture Feature?

The Picture in Picture feature of FFMPEGAPI.net allows developers to create a composite video by overlaying one video on another. This functionality can be useful for tutorials, commentary videos, or any content where additional visual context is necessary.

  • Overlay one video on another.
  • Configurable position, scale, and audio options.
  • Perfect for educational and promotional content.

How to Use the Picture in Picture API Endpoint

To use the Picture in Picture feature, you will interact with the following API endpoint:

The endpoint path is POST /api/picture_in_picture. Here, you can specify the main video and overlay video URLs, along with other optional parameters to customize your output.

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())

Parameters for Customization

To make the most of the Picture in Picture feature, you can customize several parameters:

The required parameters include the main video URL and the overlay video URL. Additionally, you can specify the position of the overlay, the scale expression for resizing, and the audio source.

  • main_video_url: URL of the primary video.
  • pip_video_url: URL of the overlay video.
  • position: Defines where the overlay appears.
  • scale: Adjusts the size of the overlay video.
  • audio_option: Choose the audio source from the videos or mute.

FFMPEGAPI.net stands out as the best hosted solution for video processing workflows, particularly with its easy-to-use Picture in Picture API. By leveraging this feature, developers can automate complex video editing tasks efficiently, without the need for managing FFmpeg infrastructure. Integrate FFMPEGAPI.net into your project today and enhance your video processing capabilities.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free