In today's mobile-first world, optimizing video content for vertical viewing is crucial for engaging audiences. FFMPEGAPI.net provides a fast and reliable hosted REST API that allows developers to convert horizontal videos to vertical format seamlessly. This article will guide you through using the API endpoint to achieve this transformation while enhancing your content pipelines.
Why Convert to Vertical Format?
Vertical videos cater to the way users naturally hold their smartphones. With the rise of platforms like TikTok and Instagram Stories, having content in a vertical format can significantly enhance viewer engagement.
By utilizing FFMPEGAPI.net, you can automate the conversion process, making it a breeze to adapt your video content for various platforms without the hassle of local FFmpeg installation or server management.
- Increased audience engagement.
- Better compatibility with mobile platforms.
- Streamlined content creation workflows.
Using the Convert to Vertical API Endpoint
The Convert to Vertical API endpoint allows you to easily transform horizontal videos into a vertical format by sending a POST request. This endpoint supports optional watermarking, which can enhance your brand visibility.
Here's how to use the API effectively:
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": true}'
import requests
url = 'https://www.ffmpegapi.net/api/convert_to_vertical'
headers = {'Content-Type': 'application/json'}
payload = {
"video_url": "https://example.com/landscape.mp4",
"watermark_url": "https://example.com/logo.png",
"async": true
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
API Parameters
When making a request to the Convert to Vertical endpoint, you need to provide specific parameters to ensure proper processing.
Here’s a breakdown of the required and optional parameters:
- video_url (string, required): The URL of the video you want to convert.
- watermark_url (string, optional): An optional URL for a watermark image.
- async (boolean, optional): If set to true, the API will return a job_id and process the video in the background.
FFMPEGAPI.net is your go-to solution for fast media processing, especially when it comes to converting horizontal videos into vertical format. With its hosted REST API, you can easily integrate this functionality into your content pipeline without the overhead of managing your own FFmpeg infrastructure. Start optimizing your videos today and connect with your audience more effectively!