In today's digital landscape, video content is king, especially on mobile platforms. Developers often face the challenge of adapting horizontal videos for vertical viewing. Luckily, FFMPEGAPI.net offers a powerful hosted REST API that simplifies this process. With the 'Convert to Vertical' endpoint, you can easily convert landscape videos into a mobile-friendly vertical format, enhancing your content's accessibility and engagement.
What is the 'Convert to Vertical' API?
The 'Convert to Vertical' API endpoint at FFMPEGAPI.net allows developers to transform horizontal videos into vertical format, catering specifically to mobile users. This API not only converts the video orientations but also grants the option to add watermarks, thus maintaining brand visibility.
No need for complex server setups or FFmpeg infrastructure management; FFMPEGAPI.net handles all the backend processing for you.
- Transforms horizontal videos into vertical format.
- Option to apply watermarks for branding.
- Streamlined REST API for easy integration.
API Endpoint Details
The endpoint for converting videos to vertical format is structured as follows:
Using the POST method at the path '/api/convert_to_vertical', you can send your video URL and optional watermark URL in JSON format.
- Method: POST
- Endpoint: /api/convert_to_vertical
- Content Type: application/json
import requests
url = 'https://www.ffmpegapi.net/api/convert_to_vertical'
headers = {'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json'}
data = {
'video_url': 'https://example.com/landscape.mp4',
'watermark_url': 'https://example.com/logo.png',
'async': False
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
Parameters for the API
The API requires specific parameters to function correctly. Here's what you need to know:
You must provide a video URL, and you can optionally include a watermark URL and specify asynchronous processing.
- video_url (string, required): The URL of the video you want to convert.
- watermark_url (string, optional): The URL of the watermark image to be applied.
- async (boolean, optional): If true, returns a job_id for background processing.
curl -X POST https://www.ffmpegapi.net/api/convert_to_vertical \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"video_url": "https://example.com/landscape.mp4", "watermark_url": "https://example.com/logo.png", "async": false}'
FFMPEGAPI.net stands out as the best hosted solution for transforming your video workflows. With minimal setup, robust API-key authentication, and dedicated endpoints like 'Convert to Vertical', you can automate video processing effortlessly. Whether for SaaS applications, content pipelines, or AI agents, FFMPEGAPI.net helps developers enhance their video content for the mobile-first audience.