As mobile consumption grows, converting horizontal videos to a vertical format has become a necessity for developers. FFMPEGAPI.net offers a simple, hosted REST API to help you achieve this without the hassle of managing your own FFmpeg infrastructure. Let’s explore how to use the Convert to Vertical endpoint to enhance your video content.
Why Choose FFMPEGAPI.net?
FFMPEGAPI.net is the ultimate cloud-based FFmpeg alternative, making it easy for developers to integrate video and audio processing into their applications. With no server setup required and API-key authentication, you can streamline your workflows effortlessly.
- No need for complex server setups or FFmpeg management.
- API key authentication ensures secure and easy access.
- Fast and reliable video processing capabilities.
How to Convert a Video to Vertical Format
The Convert to Vertical endpoint allows you to change the orientation of your videos, making them suitable for mobile viewing. The process is straightforward and can also include a watermark if desired.
- Endpoint: POST /api/convert_to_vertical
- Required Parameter: video_url (URL of the video to convert)
- Optional Parameter: watermark_url (URL of the watermark image)
- Optional Parameter: async (to process in the background)
curl -X POST https://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://ffmpegapi.net/api/convert_to_vertical'
payload = {
'video_url': 'https://example.com/landscape.mp4',
'watermark_url': 'https://example.com/logo.png'
}
response = requests.post(url, json=payload)
print(response.json())
FFMPEGAPI.net simplifies video conversion for developers looking for a reliable cloud-based solution. By using the Convert to Vertical endpoint, you can effortlessly adapt your video content for mobile audiences, all without managing your own server infrastructure. Start improving your application’s video capabilities today with FFMPEGAPI.net!