BrainRotTok allows you to create those iconic TikTok videos with subtitles. There are different types of videos you can create, you can find the list of them below in the "What can you do with this?" section.
Brain rot is a term used to describe the feeling of your brain rotting away after watching those highly addictive, short videos on TikTok. It is also used to describe the content that causes this feeling. Brain rot content is usually low effort, low quality, and highly addictive.
I kept seeing these videos on TikTok and I thought it would be fun to make a website that allows you to create these videos. I also wanted to use FFmpeg and OpenAI's Whisper API, so I thought this would be a good project to do that.
- Basic: a video with subtitles underneath
- Subway Surfers: a top and bottom video with subtitles for the bottom video and the top video is muted
- Minecraft Reddit: a background video with subtitles (provided by you) in the middle and the subtitles are spoken by a text-to-speech voice
- Rumble Video: a Rumble video link is provided and you can choose between different clips from the video. The subtitles are automatically generated and a zip folder is returned with the video and the subtitles.
- *Video Cutter: one or multiple videos can be uploaded and you can choose the start and end time for each video. The videos are then cut and a zip folder is returned with the videos.
- React (with TypeScript)
- Python
- FastAPI
- Whisper (OpenAI)
- FFmpeg
- ImageMagick
Execute the following command:
Make sure the PowerShell script execution policy is set to RemoteSigned
or Unrestricted
(you can do this by running Set-ExecutionPolicy RemoteSigned
or Set-ExecutionPolicy Unrestricted
in PowerShell as an administrator).
.\run.ps1
This will run the server and client at the same time while opening up two terminals, so you can see the output of both the server and client.
You can also individually run the server and client in the next two sections.
Execute the following commands:
cd ./brain-rot-tok-server
pipenv install
pipenv shell
python server.py
Execute the following commands:
cd ./brain-rot-tok-client
npm install
npm run dev
Then just open the link that is printed in the console. This should be http://127.0.0.1:5173/
After the server is running, you can go to the client and start using the website.
Basic Example
result.mp4
Subway Surfers Example
BrainRotTok-2024-01-18_15-40-55.mp4
Minecraft Reddit Example
result.mp4
Rumble Video Example
Speaker.problem.mp4
Video Cutter Example
Speaks for itself, it's just a video with the start and end times changed.