In today's mobile-first world, creating vertical videos is essential for engaging your audience. With FFMPEGAPI.net, a hosted REST API for FFmpeg-powered audio and video processing, you can easily convert horizontal videos to vertical format without the hassle of server setup. This article will guide you through the process of using the Convert to Vertical API endpoint and show you why FFMPEGAPI.net is the best solution for developers and SaaS applications.
Why Convert to Vertical Format?
Vertical videos are increasingly becoming the standard for social media platforms and mobile viewing. They provide a better user experience and are optimized for the way people consume content on their smartphones.
- Increased engagement on mobile devices.
- Enhanced visibility on platforms like Instagram and TikTok.
- Easier sharing and distribution across social media.
Introducing the Convert to Vertical Endpoint
The Convert to Vertical endpoint at FFMPEGAPI.net allows developers to transform horizontal videos into a vertical format effortlessly. This API not only provides a straightforward solution but also supports optional watermarks for branding.
- Method: POST
- Path: /api/convert_to_vertical
- Content Type: application/json
Parameters for the Convert to Vertical API
This endpoint requires specific parameters to function effectively. Here's a breakdown of the parameters you'll need to provide.
- video_url (string, required): The URL of the video you want to convert.
- watermark_url (string, optional): An optional image URL for watermarking.
- async (boolean, optional): When set to true, it returns a job_id and processes the video in the background.
How to Use the Convert to Vertical API
Utilizing the Convert to Vertical API is simple. Below is an example of how to implement it using CURL and Python.
- Make sure to replace `<YOUR_API_KEY>` with your actual API key.
- You can test the API with any valid video URL.
curl -X POST https://www.ffmpegapi.net/api/convert_to_vertical \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-d '{"video_url":"https://example.com/landscape.mp4", "watermark_url":"https://example.com/logo.png", "async":true}'
import requests
url = 'https://www.ffmpegapi.net/api/convert_to_vertical'
data = {
'video_url': 'https://example.com/landscape.mp4',
'watermark_url': 'https://example.com/logo.png',
'async': True
}
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer <YOUR_API_KEY>'
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
FFMPEGAPI.net stands out as a robust hosted REST API for video and audio processing, particularly for developers looking to streamline their workflows. With the Convert to Vertical feature, you can effortlessly adapt your video content for mobile platforms, ensuring greater engagement and improved user experiences. Start utilizing FFMPEGAPI.net today and transform your video processing capabilities.