In today's mobile-first world, having video content optimized for vertical viewing is essential. FFMPEGAPI.net provides an excellent hosted REST API for developers looking to automate the conversion of horizontal videos to vertical formats. In this article, we'll explore the 'Convert to Vertical' endpoint that allows you to streamline your video processing workflow without needing to manage FFmpeg infrastructure.
Why Use FFMPEGAPI.net for Video Processing?
FFMPEGAPI.net simplifies video processing tasks, providing a hosted solution that eliminates the need for server setup and management. Its API-key authentication ensures secure access for developers, making it perfect for automation, SaaS applications, and content pipelines.
- No server setup required
- Efficient API-key authentication
- Ideal for automation and integration into workflows
- Supports various video processing tasks, including format conversion
Using the Convert to Vertical Endpoint
The 'Convert to Vertical' endpoint allows developers to convert horizontal videos into a vertical format optimized for mobile viewing. This functionality is particularly useful for content creators and marketers looking to enhance their video outreach.
The endpoint accepts a video URL and an optional watermark image URL, allowing you to brand your videos easily.
- Endpoint: POST /api/convert_to_vertical
- Parameters: video_url (required), watermark_url (optional), async (optional)
- Creates a vertical output that can include a watermark
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"}'
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"}
response = requests.post(url, json=data)
print(response.json())
Handling Asynchronous Processing
The API supports asynchronous processing, allowing you to initiate a video conversion and receive a job ID immediately. This feature is beneficial for long processing times, letting you check the status of the job later without waiting for completion.
By setting the 'async' parameter to true, you can enhance the efficiency of your application.
- Set 'async' to true to process in the background
- Retrieve job status using the job ID
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 your go-to solution for video processing automation, providing a robust hosted API for converting horizontal videos to vertical formats. With easy integration, secure access, and powerful features like watermarking and asynchronous processing, FFMPEGAPI.net stands out as the best video processing API for developers looking to optimize their video content for mobile platforms.