This Python-based project serves as a YouTube to TikTok video converter. It allows users to input a YouTube URL, download the video, combine it with a sample video, and generate segmented clips suitable for posting on TikTok. Before using the project, ensure that you have the required prerequisites installed and configured.
Python: Make sure Python is installed on your system. You can download it from python.org.
ffmpeg Executable: Download the ffmpeg executable from the official website: ffmpeg Download. Add the directory containing the ffmpeg executable to your system's PATH.
ImageMagick: Download the ImageMagick executable from the official website: ImageMagick Download. Update the policy.xml file. Change the rights to "read, write" for the policy domain="Undefined". Set the location of the ImageMagick binary executable in the Merger
class of the project.
Note: Ensure that both ffmpeg and ImageMagick executables are accessible from the command line.
Clone the repository:
git clone https://github.com/yourusername/youtube-to-tiktok-converter.git
Install Dependencies:
To be added...
Run the program:
To be added...
To be added...
The program will download the specified YouTube video, combine it with a sample video, and generate segmented clips suitable for TikTok. The output files will be available in the output directory.
To be added... (.mp4)
Note that the downloaded and merged videos will be in the folder videos
and merged
directories respectively. The folder structure is as follows:
data
├── captions
├── merged
├── sample
└── videos
The videos
folder holds the downloaded Youtube clips, the sample
folder has the sample videos and the merged
folder contains the output video which will be the Youtube and sample video.
If you want to contribute to this project, follow these steps:
git checkout -b <branch_name>
.git commit -m '<commit_message>'
git push origin <project_name>/<location>
Here are some ideas for contributions:
Please comply with the terms of service of YouTube and TikTok APIs. Respect content creators' rights and platform policies.
This project is licensed under the MIT License.