In today's digital landscape, having the ability to convert video formats quickly and efficiently is essential. Whether you're developing a SaaS application, automating a content pipeline, or simply enhancing your video editing capabilities, the FFMPEGAPI.net hosted REST API offers a seamless solution. This article will explore how to automate the conversion of horizontal videos to vertical format using our powerful API.
Why Choose FFMPEGAPI.net for Video Processing?
FFMPEGAPI.net is a hosted REST API designed specifically for FFmpeg-powered video and audio processing. It eliminates the need for complicated server setups or infrastructure management, allowing developers to focus on building their applications.
With API-key authentication, you can effortlessly integrate our solution into your workflows, making it ideal for developers, automation tasks, and content pipelines.
- No server setup or management required.
- API-key authentication for secure access.
- Supports various media processing tasks.
How to Use the Convert to Vertical Endpoint
The Convert to Vertical endpoint allows you to transform a horizontal video into a vertical format, perfect for mobile viewing. This API endpoint can also add an optional watermark to your video, enhancing brand visibility.
To utilize this feature, you'll make a POST request to the /api/convert_to_vertical endpoint with the necessary parameters.
- Endpoint: POST /api/convert_to_vertical
- Parameters: video_url (required), watermark_url (optional), async (optional)
- Content Type: application/json
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"
data = {"video_url": "https://example.com/landscape.mp4", "watermark_url": "https://example.com/logo.png"}
response = requests.post(url, json=data)
print(response.json())
Understanding API Parameters
When using the Convert to Vertical endpoint, you need to provide the following parameters:
1. **video_url**: This is the URL of the video you want to convert. It is a required field.
2. **watermark_url**: This is an optional parameter where you can specify the URL of the watermark image you want to apply to the video.
3. **async**: If set to true, this parameter allows the API to process the video in the background and return a job ID immediately.
- video_url (string, required): URL of the video file.
- watermark_url (string, optional): URL of the watermark image.
- async (boolean, optional): Process the job in the background.
FFMPEGAPI.net is your go-to solution for automating video processing tasks, including converting videos to vertical formats. By leveraging our hosted REST API, you can streamline your workflows and enhance your applications without the hassle of managing servers. With just a few lines of code, you can integrate powerful video capabilities directly into your projects. Start using FFMPEGAPI.net today and elevate your video editing process.