In the age of short-form video content, converting videos to the optimal TikTok portrait format is essential for creators and marketers. FFMPEGAPI.net provides a powerful, hosted REST API that allows developers to easily convert videos to a 9:16 portrait format, perfect for TikTok. In this article, we will explore the TikTok Portrait Converter endpoint and how it simplifies your video processing needs.
What is the TikTok Portrait Converter?
The TikTok Portrait Converter is a specialized API endpoint of FFMPEGAPI.net designed to convert landscape videos into a full-bleed 9:16 portrait format, ideal for TikTok videos. It crops and scales the source video to a resolution of 1080x1920, ensuring your content looks stunning on the platform.
- Supports watermarking with optional logo placement.
- Allows appending outro videos for enhanced storytelling.
- Ideal for developers looking to integrate video processing into their applications.
Getting Started with the TikTok Portrait Converter API
To start using the TikTok Portrait Converter, you need to send a POST request to the endpoint `/api/convert_to_tiktok_portrait`. The API requires a valid video URL and supports optional parameters for watermark and outro videos.
- Endpoint: `/api/convert_to_tiktok_portrait`
- Method: POST
- Content Type: application/json
import requests
url = 'https://ffmpegapi.net/api/convert_to_tiktok_portrait'
headers = {'Authorization': 'Bearer YOUR_API_KEY'}
data = {
'video_url': 'https://example.com/landscape.mp4',
'outro_video_url': 'https://example.com/outro.mp4'
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
Parameters for the TikTok Portrait Converter
The TikTok Portrait Converter API requires specific parameters to function correctly. Here’s a breakdown of the parameters you can use:
- video_url (string, required): The URL of the video you wish to convert.
- watermark_url (string, optional): The URL of an optional watermark image to overlay.
- outro_video_url (string, optional): The URL of an optional outro video to be appended.
- async (boolean, optional): If true, the API returns a job ID for background processing.
Practical Example of Using the TikTok Portrait Converter
Here's a practical cURL example for using the TikTok Portrait Converter API. This request will convert a landscape video into the desired TikTok format.
curl -X POST https://ffmpegapi.net/api/convert_to_tiktok_portrait \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"video_url":"https://example.com/landscape.mp4", "outro_video_url":"https://example.com/outro.mp4"}'
FFMPEGAPI.net offers the most efficient and hassle-free way to convert videos for TikTok with its TikTok Portrait Converter endpoint. By utilizing this hosted API, developers can save time and resources, allowing them to focus on building amazing applications. With minimal setup required, you can integrate powerful video processing capabilities into your projects and enhance the user experience. Start using FFMPEGAPI.net today and take your video content to the next level!