Back to Blog

Automate Video Editing with FFMPEGAPI.net: Picture in Picture Made Easy

June 2026 FFMPEG API Team

As video content continues to dominate digital platforms, the need for efficient video editing tools has become paramount. FFMPEGAPI.net offers a robust hosted REST API that streamlines video and audio processing, making tasks like creating a Picture in Picture (PiP) composition easier than ever. In this article, we'll guide you through automating video editing with FFMPEGAPI.net's Picture in Picture feature, showcasing how developers can leverage this powerful tool effectively.

What is the Picture in Picture Feature?

The Picture in Picture feature allows you to overlay one video on another, enabling a main video to be complemented by an additional overlay video. This functionality is particularly useful for tutorials, presentations, or any content that benefits from supplementary visuals.

  • Easily overlay videos for enhanced content.
  • Configurable position, scale, and audio source.
  • Quick and efficient processing without needing to manage FFmpeg infrastructure.

How to Use the Picture in Picture API

To utilize the Picture in Picture feature, you can make a POST request to the /api/picture_in_picture endpoint. This endpoint accepts several parameters that allow you to customize the output according to your needs.

  • main_video_url: The URL of the main video (required).
  • pip_video_url: The URL of the overlay video (required).
  • position: Specifies where the overlay should appear (optional).
  • scale: Defines the size of the overlay (optional).
  • audio_option: Chooses which video's audio to use (optional).
  • async: Enable background processing (optional).
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',
    'scale': 'iw/4:ih/4',
    'audio_option': 'video1'
}

response = requests.post(url, json=data)
print(response.json())
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", "scale": "iw/4:ih/4", "audio_option": "video1"}'

Why Choose FFMPEGAPI.net for Video Processing?

FFMPEGAPI.net stands out for its simplicity and efficiency. With no server setup or complex FFmpeg infrastructure management required, developers can focus on building their applications without getting bogged down by technical details. The API-key authentication ensures secure and controlled access, making it a perfect fit for developers looking to integrate video processing into automation workflows, SaaS applications, content pipelines, or AI agents.

  • No infrastructure management required.
  • Secure API-key authentication.
  • Ideal for automation and SaaS applications.
  • Quickly integrate into existing workflows.

Automating video editing with the Picture in Picture feature from FFMPEGAPI.net simplifies the process of creating engaging content. By leveraging this powerful API, developers can enhance their applications with advanced video processing capabilities without the hassle of managing complex infrastructure. Start integrating FFMPEGAPI.net into your workflow today and take your video editing to the next level!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free