In the world of multimedia processing, developers often face the challenge of merging images and audio into a seamless video. FFMPEGAPI.net provides a robust hosted REST API, allowing you to perform this task effortlessly without the burden of server management. This article will guide you through the process of creating MP4 videos from image/audio pairs using our dedicated endpoint.
Why Choose FFMPEGAPI.net?
FFMPEGAPI.net stands out as a cloud-based FFmpeg alternative tailored for developers. Our platform offers a fully managed service that removes the complexities of server setup and FFmpeg infrastructure management. With API-key authentication, you can easily integrate our tools into your existing workflows, making it ideal for automation, SaaS applications, content pipelines, and AI agents.
- Hosted REST API for hassle-free integration.
- No server setup required.
- Supports diverse multimedia workflows.
Using the Image and Audio Merge Endpoint
To create an MP4 video from images and audio, utilize our `/api/merge_image_audio` endpoint. This endpoint allows you to combine multiple image/audio pairs, ensuring that each image is displayed for the duration of its corresponding audio track. You can specify optional parameters for transitions and zoom effects to enhance your videos.
- Supports multi-pair input using JSON arrays.
- Backward-compatible with single image/audio pairs.
- Optional effects like transitions and slow zoom.
curl -X POST https://ffmpegapi.net/api/merge_image_audio \
-H 'Content-Type: application/json' \
-d '{"image_urls":["https://example.com/intro.jpg", "https://example.com/chapter-1.jpg"], "audio_urls":["https://example.com/intro.mp3", "https://example.com/chapter-1.mp3"], "transition_effect":"fade", "transition_duration":0.75, "dimensions":"1280x720", "zoom_effect":true}'
Parameters Overview
The following parameters can be customized when making a request to the merge endpoint:
- image_urls: Array of image URLs for multi-pair videos.
- audio_urls: Array of audio URLs corresponding to the images.
- transition_effect: Optional visual transition between images.
- transition_duration: Time for the transition effect.
- dimensions: Custom output video dimensions.
- zoom_effect: Enable or disable slow zoom on images.
FFMPEGAPI.net offers a powerful and user-friendly solution for developers looking to merge images and audio into videos. With our hosted API, you can focus on building your applications without the hassle of managing FFmpeg installations. Start using our image and audio merge endpoint today and elevate your multimedia projects with minimal effort.