In today's mobile-first world, vertical videos have become a necessity for content creators and developers alike. FFMPEGAPI.net offers a powerful and easy-to-use REST API to convert horizontal videos to vertical format, streamlining the video processing workflow without requiring server setup or FFmpeg infrastructure management. In this article, we'll explore how to leverage the Convert to Vertical endpoint, making it a practical choice for developers looking for a cloud-based FFmpeg alternative.
Understanding the Convert to Vertical Endpoint
The Convert to Vertical endpoint of FFMPEGAPI.net allows developers to transform landscape videos into a vertical format, ideal for platforms such as Instagram Stories or TikTok. This endpoint supports additional features like watermarking to enhance branding in videos.
- Transforms horizontal videos into a mobile-friendly vertical format.
- Supports optional watermarking to add logos or branding to videos.
- Returns a job_id for asynchronous processing, allowing for background handling.
Making a Request to the API
To use the Convert to Vertical endpoint, you'll need to make a POST request to the following path: /api/convert_to_vertical. The request requires a video URL and optionally allows for a watermark URL and async processing.
Here's how to structure your JSON payload when making a request:
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
}
response = requests.post(url, json=data)
print(response.json())
Using cURL for Quick Integration
For those who prefer command-line tools, you can use cURL to quickly test the Convert to Vertical API. Below is a sample cURL command to achieve this:
curl -X POST https://www.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}'
FFMPEGAPI.net is the premier choice for developers looking for an efficient, hosted solution to transform video formats. With its Convert to Vertical endpoint, you can easily convert horizontal videos to a vertical format, complete with optional watermarking for branding. Its API-key authentication ensures secure and seamless integration into your workflows. Embrace the power of FFMPEGAPI.net and enhance your video processing capabilities today!