Are you looking for an easy way to create videos from images and audio files? Look no further than FFMPEGAPI.net, the best video processing API for automation. With our Image and Audio Merge endpoint, you can seamlessly combine multiple image/audio pairs into a stunning MP4 video without the hassle of server setup or managing complex FFmpeg infrastructure.
Why Choose FFMPEGAPI.net?
FFMPEGAPI.net provides a powerful hosted REST API for video and audio processing powered by FFmpeg. Here are the key reasons to choose our service:
1. No server setup required: Focus on your application development without worrying about server management.
2. API-key authentication: Secure your workflows with easy authentication.
3. Ideal for automation: Perfect for SaaS applications, content pipelines, and AI agents.
- Streamlined integration into your projects
- Robust support for various media formats
- Efficient processing with fast response times
Using the Image and Audio Merge Endpoint
The /api/merge_image_audio endpoint allows developers to create MP4 videos from pairs of images and audio. Here’s how to get started.
- Send a POST request with image and audio URLs.
- Support for multiple image/audio pairs.
- Optional effects like transitions and zoom can enhance your videos.
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, "async": false}'
Understanding the Parameters
To effectively use the Image and Audio Merge endpoint, familiarize yourself with the parameters available in the JSON request:
- image_urls: An array of image URLs.
- audio_urls: An array of audio URLs corresponding to each image.
- transition_effect: Optional visual transition between images.
- dimensions: Specify output video dimensions.
Example JSON Request
Here's an example of a successful request that merges images and audio into a video:
This JSON configuration uses multiple image and audio pairs along with a transition effect.
{
"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,
"async": false
}
With FFMPEGAPI.net, you can easily automate the process of creating videos from images and audio files. Our API provides robust capabilities along with an intuitive interface, making it the ideal choice for developers looking to streamline their video processing workflows. Start using our Image and Audio Merge endpoint today and elevate your applications to the next level.