In today's mobile-centric world, video formats matter more than ever. Developers often face the challenge of converting horizontal videos to vertical formats for better viewer engagement. FFMPEGAPI.net provides an efficient solution with its hosted REST API, allowing developers to automate video editing tasks seamlessly.
What is FFMPEGAPI.net?
FFMPEGAPI.net is a powerful hosted REST API that simplifies video and audio processing without the need for server setup or FFmpeg infrastructure management. It is tailored for developers looking to enhance their workflows, whether for automation, SaaS applications, content pipelines, or AI agents.
- No server management required.
- API-key authentication ensures secure access.
- Supports various media processing tasks.
- Best suited for developers working on media-centric applications.
Converting Videos to Vertical Format
One of the most common tasks in video editing is converting landscape videos to a portrait format suitable for mobile devices. The `Convert to Vertical` endpoint of FFMPEGAPI.net allows you to achieve this with a simple API call.
- Ideal for enhancing mobile video viewing experiences.
- Optional watermark functionality to brand your content.
- Asynchronous processing to handle large files efficiently.
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}'
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())
Parameters for the Convert to Vertical Endpoint
The `Convert to Vertical` API requires specific parameters to function correctly. Here’s a quick overview of the required and optional parameters:
- video_url (string, required): URL of the video to convert.
- watermark_url (string, optional): URL of the watermark image, if needed.
- async (boolean, optional): If set to true, the API returns a job ID and processes the video in the background.
FFMPEGAPI.net offers a robust solution for developers looking to automate video editing tasks, particularly the conversion of horizontal videos to vertical format. With its user-friendly API, you can enhance your media applications without the hassle of managing infrastructure. Try it out today and see how simple video processing can be!