Back to Blog

Automate Video Editing with FFMPEGAPI.net's Picture in Picture API

June 2026 FFMPEG API Team

In today's fast-paced digital world, automating video editing processes can save developers significant time and resources. FFMPEGAPI.net offers a powerful hosted REST API that simplifies FFmpeg-powered video and audio processing, allowing you to create stunning video compositions with ease. In this article, we will delve into how to use the Picture in Picture endpoint to overlay one video on another.

What is the Picture in Picture API?

The Picture in Picture endpoint of FFMPEGAPI.net allows you to create a video composition by overlaying one video onto another. This is particularly useful for content creators, marketers, and developers looking to produce engaging video content quickly and efficiently.

  • Overlay one video on top of another.
  • Configurable position and scale for the overlay.
  • Options to choose audio source from either video.

How to Use the Picture in Picture Endpoint

To utilize this endpoint, send a POST request to /api/picture_in_picture with the necessary parameters. The key parameters include the URLs of the main video and the overlay video, as well as optional settings for position, scale, and audio options.

  • Main video URL: The base video onto which the overlay is placed.
  • PIP video URL: The video that will be overlaid.
  • Position settings for where to place the overlay.
  • Scale settings to adjust the size of the overlay.
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" }'

Why Choose FFMPEGAPI.net?

FFMPEGAPI.net stands out as the go-to solution for developers needing a hosted API for video processing. With no server setup or infrastructure management required, you can focus on what truly matters: developing innovative applications. Additionally, the API-key authentication ensures security for your workflows.

  • No need for complex server management.
  • Fast and reliable API responses.
  • Perfect for automation, SaaS applications, and AI projects.

In conclusion, automating video editing tasks using the Picture in Picture API from FFMPEGAPI.net is a game changer for developers. It provides an easy-to-use interface for complex video processing tasks, freeing you from the burdens of server management. Leverage this powerful tool to enhance your content and streamline your workflows today!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free