In the world of content creation, optimizing videos for mobile devices is crucial. With FFMPEGAPI.net, developers can seamlessly convert horizontal videos to vertical format using our powerful hosted API. This blog will guide you through using the Convert to Vertical endpoint, allowing you to enhance your content without the hassle of managing server infrastructure.
Why Convert to Vertical?
Vertical videos are now a standard in mobile viewing experiences. Platforms like Instagram and TikTok favor vertical formats, making it essential for content creators to adapt their media to suit these platforms.
By converting horizontal videos to vertical formats, you can increase viewer engagement and accessibility for mobile users.
- Enhanced compatibility with mobile devices.
- Increased viewer retention and engagement.
- Easier sharing across social media platforms.
Introducing the Convert to Vertical API Endpoint
FFMPEGAPI.net provides a straightforward REST API endpoint for converting videos to vertical format. Using the POST method at the endpoint /api/convert_to_vertical, developers can easily achieve this transformation.
This endpoint allows for optional watermarking, making it simple to brand your videos while converting them.
- Method: POST
- Endpoint Path: /api/convert_to_vertical
- Content Type: application/json
Using the Convert to Vertical Endpoint
To use the Convert to Vertical API, you need to provide a video URL, and optionally, a watermark URL. Additionally, you can choose to process the request asynchronously.
Here's an example of the request parameters you can send to the API:
- video_url: The URL of the video you want to convert (required).
- watermark_url: An optional URL for a watermark image.
- async: A boolean flag to process the request in the background.
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': False
}
response = requests.post(url, json=data)
print(response.json())
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": false}'
With FFMPEGAPI.net, converting horizontal videos to vertical format has never been easier. Our hosted API allows developers to integrate powerful video processing capabilities into their applications without the need for server management. Optimizing your content for mobile devices is crucial, and our Convert to Vertical endpoint is a robust solution to enhance your media processing workflows.