Creating engaging videos for social media can be a time-consuming task, especially if you are manually editing each piece of content. However, with the Image and Audio Merge API from FFMPEGAPI.net, you can automate and simplify the process. This hosted REST API allows you to seamlessly merge images and audio into MP4 videos, making it ideal for developers looking to enhance their social media workflows.
What is the Image and Audio Merge API?
The Image and Audio Merge API enables you to create MP4 videos from pairs of images and audio files. The API allows for both single and multi-pair processing, making it versatile for various use cases in content creation.
You can easily specify image transition effects, set zoom effects, and customize dimensions, all through a simple API call.
- Supports both single and multiple image/audio pairs
- Offers various transition effects for a polished look
- Allows customization of dimensions and zoom effects
How to Use the API
Using the Image and Audio Merge API is simple and straightforward. To create a video, you need to send a POST request to the endpoint /api/merge_image_audio with the necessary parameters.
You can choose to send the request in either JSON format or as multipart form data, depending on your needs.
- Make sure to include both image and audio URLs in your request.
- Set optional parameters for transitions and zoom effects to enhance your video.
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}'
Example Request
Here's an example of a JSON request to create a video using the API:
This request demonstrates how to specify image URLs, audio URLs, and optional parameters for transitions and dimensions.
{
"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
}
FFMPEGAPI.net provides an easy-to-use and powerful solution for developers looking to automate their video creation for social media. With the Image and Audio Merge API, you can create professional-quality videos with minimal effort. Say goodbye to complicated setups and infrastructure management. Start using FFMPEGAPI.net today and enhance your content pipeline effectively!