Skip to content

BrainRotTok allows you to create those iconic TikTok videos where one half of the screen is a random subway surfers video and the other half is another random video with subtitles.

Notifications You must be signed in to change notification settings

Detopall/BrainRotTok

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrainRotTok

What is BrainRotTok?

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.

What is brain rot?

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.

Urban Dictionary

Why did I make this?

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.

What can you do with this?

  • 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.

What technologies are used?

  • React (with TypeScript)
  • Python
  • FastAPI
  • Whisper (OpenAI)
  • FFmpeg
  • ImageMagick

How to run this?

All in one

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.

Server

Execute the following commands:

cd ./brain-rot-tok-server
pipenv install
pipenv shell
python server.py

Client

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.

Examples

Basic Example

Subway Surfers Example

Minecraft Reddit Example

Rumble Video Example

Video Cutter Example

Example video

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.

About

BrainRotTok allows you to create those iconic TikTok videos where one half of the screen is a random subway surfers video and the other half is another random video with subtitles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published