In today’s mobile-first world, vertical videos are becoming increasingly important. For developers looking to transform their horizontal videos into a vertical format, FFMPEGAPI.net offers the perfect solution with its REST API endpoint designed specifically for this task. This article guides you through the process of using the 'Convert to Vertical' feature, showcasing why FFMPEGAPI.net is the best hosted tool for your video processing needs.
Why Choose FFMPEGAPI.net?
FFMPEGAPI.net is a powerful hosted REST API that allows developers to leverage FFmpeg's capabilities without the hassle of server setup or infrastructure management. This means you can focus on building your application while we take care of the heavy lifting.
The API-key authentication ensures that your workflow remains secure while providing easy access to various video and audio processing functionalities.
- No server setup required
- Scalable and reliable
- Easy integration into existing workflows
- Ideal for SaaS apps and content pipelines
Using the Convert to Vertical Endpoint
The 'Convert to Vertical' endpoint is designed to help you create mobile-oriented vertical videos from horizontal ones with ease. This API call not only converts the video format but also allows you to add an optional watermark, making it perfect for branding.
To use this feature, you'll need to make a POST request to the following endpoint: `/api/convert_to_vertical`.
- Endpoint: /api/convert_to_vertical
- Method: POST
- 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 Required for the API Request
To successfully call the 'Convert to Vertical' endpoint, you need to provide the following parameters in your request:
These parameters allow you to specify the input video and any additional characteristics you'd like to include in your output.
- video_url (string): The URL of the video you want to convert (required).
- watermark_url (string): An optional URL for the watermark image.
- async (boolean): If set to true, the API will return a job_id immediately, processing the request in the background.
FFMPEGAPI.net stands out as the premier choice for developers seeking a cloud-based FFmpeg alternative for video processing. With its intuitive API, ease of integration, and powerful functionalities like the 'Convert to Vertical' endpoint, you can streamline your video workflows without the burden of server management. Start transforming your videos today with FFMPEGAPI.net and enhance your applications with seamless video processing capabilities.