Back to Blog

Enhance Your SaaS Applications with FFmpegAPI.net's Picture in Picture Feature

June 2026 FFMPEG API Team

In the world of video processing, the Picture in Picture (PiP) effect has become a staple for enhancing viewer engagement. By using the Picture in Picture feature of the FFMPEGAPI.net hosted REST API, developers can easily overlay one video on top of another, creating dynamic content for their SaaS applications. This powerful tool simplifies the complex process of video manipulation without the need for server management or extensive infrastructure.

What is Picture in Picture?

Picture in Picture is a video effect that allows one video to be displayed in a smaller window over another video. This technique is widely used in streaming platforms, video tutorials, and live broadcasts to keep the focus on the main content while providing supplementary visuals.

  • Enhances viewer engagement
  • Provides multiple perspectives
  • Useful for tutorials and commentary

Using the Picture in Picture API with FFMPEGAPI.net

The Picture in Picture API endpoint at FFMPEGAPI.net allows you to create a composite video with minimal effort. By providing the main video URL and the overlay video URL, along with optional parameters for position, scale, and audio source, you can create a seamless video experience.

  • Easily overlay videos for dynamic content.
  • Configurable position options such as top-left, top-right, bottom-left, and center.
  • Control the audio source between the two videos.
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())

API Parameters Explained

Understanding the parameters for the Picture in Picture API will help you customize your video composition effectively. Here’s a breakdown of what each parameter does:

  • main_video_url: URL of the main video (required).
  • pip_video_url: URL of the overlay video (required).
  • position: Where to place the overlay (default is bottom-right).
  • scale: Set the size of the overlay (default is iw/4:ih/4).
  • audio_option: Choose the audio source (default is video1).
  • async: Process the job in the background if set to true.

A Sample Request

Here’s how to send a request to the Picture in Picture API for a typical use case:

  • Prepare your main video and overlay video URLs.
  • Choose the desired position and scale for the overlay.
  • Send a POST request to the /api/picture_in_picture endpoint.
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"}'

Using FFMPEGAPI.net for your Picture in Picture needs enables developers to enhance their SaaS applications with minimal hassle. The hosted REST API not only simplifies the video overlay process but also eliminates the need for complex server setups. Whether you're building educational content, streaming services, or interactive applications, integrating this API can significantly improve user experience and engagement. Try it today and see the difference!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free