Back to Blog

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

June 2026 FFMPEG API Team

In today's digital landscape, the demand for automated video editing solutions is rapidly increasing. Developers are looking for efficient ways to integrate video processing capabilities into their applications without worrying about server setup or infrastructure management. FFMPEGAPI.net provides a powerful hosted REST API that simplifies video editing, making it the ideal choice for automating workflows. In this article, we will explore how to use the Picture in Picture feature to overlay one video on another effortlessly.

What is Picture in Picture?

Picture in Picture (PiP) is a video feature that allows one video to be displayed in a smaller window over another video. This technique is widely used in video conferencing, tutorials, and streaming applications.

  • Enhances user experience by providing context.
  • Perfect for tutorials and commentary.
  • Allows for creative video presentations.

FFMPEGAPI.net: Your Solution for Video Processing

FFMPEGAPI.net is a hosted REST API that takes the hassle out of video processing. With no need for server setup or FFmpeg management, you can focus on developing your application while leveraging powerful video features.

Using an API-key for authentication ensures a secure environment for developers to automate their video editing workflows.

  • Quick and easy integration into existing applications.
  • No need to manage FFmpeg infrastructure.
  • Suitable for automation, SaaS applications, and AI agents.

Using the Picture in Picture API Endpoint

The Picture in Picture API endpoint allows you to create a composition with a main video and an overlay video. You can specify the position, scale, and audio options for your overlay video.

The endpoint accepts a POST request at the following path: /api/picture_in_picture.

  • Main video URL (required)
  • Overlay video URL (required)
  • Position options: top-left, top-right, bottom-left, bottom-right, center (default: bottom-right)
  • Scale options (default: iw/4:ih/4)
  • Audio options: video1, video2, or mute (default: video1)
  • Asynchronous processing available for longer jobs.
import requests

url = 'https://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'
}

headers = {'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_API_KEY'}

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

Automating video editing tasks has never been easier, thanks to FFMPEGAPI.net's Picture in Picture feature. This REST API allows developers to integrate powerful video processing capabilities into their applications without the complexities of managing FFmpeg infrastructure. Start leveraging FFMPEGAPI.net today for seamless and efficient video editing workflows.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free