FFmpeg TikTok Formatter simplifies the process of creating TikTok-ready videos by allowing you to format widescreen or vertical clips seamlessly. With easy-to-use command line tools, it enhances your video content to ensure it retains viewer attention, making it ideal for creators focused on short-form media.
FFmpeg TikTok Formatter
Are you looking to create stunning videos perfectly formatted for TikTok or other short-form video platforms? Look no further than the FFmpeg TikTok Formatter, a powerful tool designed to transform your widescreen or vertical clips into engaging formats that capture attention and enhance viewer retention.
This project leverages the renowned FFmpeg library through the ffmpy Python wrapper, allowing for seamless video processing and formatting. The FFmpeg TikTok Formatter operates similarly to the TikTokClipReup repository, but with direct access to FFmpeg's extensive capabilities.
Key Features:
- Versatile Formatting: Effortlessly create videos tailored for TikTok and various short-form platforms, ensuring optimal presentation.
- Automatic Subtitle Generation: Enhance your videos with automatically generated subtitles to engage viewers more effectively.
- Custom Video Dimensions: Specify exact dimensions for your output videos, defaulting to the popular 1080x1920 for vertical content.
Dependencies:
To get started, ensure you have the required dependencies installed:
sudo apt update && sudo apt install ffmpeg && pip install -U openai-whisper ffmpy
Alternatively, you can install the necessary packages directly using pip from the requirements.txt
file:
pip install -r requirements.txt
Usage:
Basic Command:
Create a simple vertical video without subtitles by using:
main.py <primary_video> <secondary_video>
Advanced Options:
Utilize the command line interface for more detailed configurations. Here’s how you can customize your video formatting:
video_formatter [-h] [-l SUBTITLE_PATH] [-k] [-a] [-o OFFSET] [-s] [--video_bitrate VIDEO_BITRATE] [--audio_bitrate AUDIO_BITRATE] [--preset PRESET] [-f FONT_SIZE] [--fps FPS] [--whisper_model WHISPER_MODEL] [--max_words MAX_WORDS] [--set_dimensions SET_DIMENSIONS SET_DIMENSIONS] primary_video secondary_video
This project gives you full control over your video output parameters, such as visual quality and subtitle handling, making it an essential tool for content creators aiming to thrive in the fast-paced world of short-form video. Whether you want automatic subtitles or specific bitrate settings, the FFmpeg TikTok Formatter empowers you to produce high-quality, engaging content effortlessly.