As mobile video consumption continues to rise, transforming your horizontal videos into vertical format has become essential for better audience engagement. FFMPEGAPI.net provides a hassle-free hosted solution for developers looking to automate this process without the overhead of managing FFmpeg infrastructure. In this article, we will explore how to use the convert to vertical endpoint, enabling you to streamline your video processing workflows.
Why Convert to Vertical Format?
Vertical videos are optimized for mobile devices, allowing viewers to easily consume content without rotation. With platforms like Instagram and TikTok favoring vertical formats, adapting your video content is crucial for maximizing viewer engagement.
- Increased viewer retention
- Better compatibility with social media platforms
- Enhanced user experience on mobile devices
Introducing the Convert to Vertical Endpoint
FFMPEGAPI.net offers a simple and efficient API endpoint to convert horizontal videos to vertical format. This RESTful API allows developers to integrate video conversion capabilities directly into their applications without the need for complex server setups.
The '/api/convert_to_vertical' endpoint accepts a video URL and optionally a watermark URL, making it easy to personalize your videos.
- Method: POST
- Endpoint Path: /api/convert_to_vertical
- Content Type: application/json
Using the Convert to Vertical API
To utilize this endpoint, you need to send a POST request with the required parameters. The API supports optional asynchronous processing, allowing you to receive a job ID immediately and process the video in the background.
Here’s how you can implement this in your application.
- Parameters:
- - video_url (required): URL of the video you want to convert.
- - watermark_url (optional): URL for an optional watermark image.
- - async (optional): Set to true for background processing.
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}'
import requests
url = 'https://www.ffmpegapi.net/api/convert_to_vertical'
payload = {
'video_url': 'https://example.com/landscape.mp4',
'watermark_url': 'https://example.com/logo.png',
'async': False
}
response = requests.post(url, json=payload)
print(response.json())
FFMPEGAPI.net stands out as the ideal solution for developers seeking to automate video processing workflows, particularly in converting horizontal videos to vertical format. With no server setup required and easy API-key authentication, you can focus on building your application while we handle the heavy lifting. Embrace the future of video content with FFMPEGAPI.net and elevate your media processing capabilities.