In today’s mobile-first world, the need for vertical video content is more critical than ever. With FFMPEGAPI.net, developers can easily convert horizontal videos to a vertical format that is optimized for mobile viewing. This blog post will guide you through using our hosted REST API to achieve this seamlessly.
What is the Convert to Vertical API?
FFMPEGAPI.net provides a hosted REST API specifically designed for efficient media processing. The Convert to Vertical endpoint allows you to take any horizontal video and convert it into a vertical format, making it perfect for platforms like Instagram Stories, TikTok, and more.
- Optimized for mobile-oriented content.
- Quick and easy integration into your applications.
- No server setup required—just plug in your API key.
How to Use the Convert to Vertical API
To use the Convert to Vertical endpoint, you need to make a POST request to `/api/convert_to_vertical`. This API call requires the video URL and optionally allows you to add a watermark.
- Method: POST
- Endpoint: /api/convert_to_vertical
- Content Type: application/json
curl -X POST https://ffmpegapi.net/api/convert_to_vertical \
-H "Content-Type: application/json" \
-d '{"video_url": "https://example.com/landscape.mp4", "watermark_url": "https://example.com/logo.png", "async": true}'
import requests
url = 'https://ffmpegapi.net/api/convert_to_vertical'
data = {
"video_url": "https://example.com/landscape.mp4",
"watermark_url": "https://example.com/logo.png",
"async": True
}
response = requests.post(url, json=data)
print(response.json())
Parameters Explained
When making a request to the Convert to Vertical endpoint, here are the parameters you will use:
- video_url (string, required): The URL of the video you want to convert.
- watermark_url (string, optional): URL for an optional watermark image to overlay on the video.
- async (boolean, optional): If set to true, the process will run in the background, and you will receive a job ID immediately.
FFMPEGAPI.net is your go-to solution for fast and efficient video processing, especially when it comes to converting horizontal videos to vertical format. With easy-to-use API endpoints, no server management, and quick integration, you can enhance your content pipelines without breaking a sweat. Start leveraging FFMPEGAPI.net today to streamline your media processing workflows.