Code Monkey home page Code Monkey logo

brainrot.js's Introduction

How to run locally ๐Ÿ‘‡

  1. go into generate (cd generate) and run python3 -m venv venv, then source venv/bin/activate, and then pip install -r requirements.txt
  2. now we can start the flask server. to do this run python3 transcribe.py
  3. set all environment variables in .env.example in .env with your own values.
  4. we should now install the js deps with npm i.
  5. inside generate/public/background, we must have the background video assets. At the bottom of this readme is the list of all the assets from a s3 bucket to download. Put all the videos in generate/public/background
  6. now, run node localBuild.mjs and boom, a video locally generated in no time (actually in some time, 5-7 minutes typically)!

note: you need to create your own eleven labs voices and copy their voice id's. If you want to use Joe Rogan, Jordan Peterson, Barack Obama, and Ben Shapiro's voice you can go into generate/voice_training_audio to find the mp3 files to train your eleven labs voices with.

how to get google credentials:

this is probably the most complex api to get set up, so if you want to be able to generate videos with ai images instead of google fetched images, you only need open ai api credentials, and not google credentials

how to get eleven labs credentials:

how to get open ai credentials:

how to get groq api credentials:

Video explaining how to run ๐Ÿ‘‡ locally

Thumbnail

assets to download

put these assets in public/generate/background with the same name they have: https://brainrotbackground.s3.amazonaws.com/GTA-1.mp4 https://brainrotbackground.s3.amazonaws.com/GTA-2.mp4 https://brainrotbackground.s3.amazonaws.com/GTA-3.mp4 https://brainrotbackground.s3.amazonaws.com/GTA-4.mp4 https://brainrotbackground.s3.amazonaws.com/GTA-5.mp4 https://brainrotbackground.s3.amazonaws.com/GTA-6.mp4 https://brainrotbackground.s3.amazonaws.com/GTA-7.mp4 https://brainrotbackground.s3.amazonaws.com/GTA-8.mp4 https://brainrotbackground.s3.amazonaws.com/GTA-9.mp4 https://brainrotbackground.s3.amazonaws.com/MINECRAFT-0.mp4 https://brainrotbackground.s3.amazonaws.com/MINECRAFT-1.mp4 https://brainrotbackground.s3.amazonaws.com/MINECRAFT-2.mp4 https://brainrotbackground.s3.amazonaws.com/MINECRAFT-3.mp4 https://brainrotbackground.s3.amazonaws.com/MINECRAFT-4.mp4 https://brainrotbackground.s3.amazonaws.com/MINECRAFT-5.mp4 https://brainrotbackground.s3.amazonaws.com/MINECRAFT-6.mp4 https://brainrotbackground.s3.amazonaws.com/MINECRAFT-7.mp4 https://brainrotbackground.s3.amazonaws.com/MINECRAFT-8.mp4 https://brainrotbackground.s3.amazonaws.com/MINECRAFT-9.mp4 https://brainrotbackground.s3.amazonaws.com/TRUCK-0.mp4 https://brainrotbackground.s3.amazonaws.com/TRUCK-1.mp4 https://brainrotbackground.s3.amazonaws.com/TRUCK-2.mp4 https://brainrotbackground.s3.amazonaws.com/TRUCK-3.mp4 https://brainrotbackground.s3.amazonaws.com/TRUCK-4.mp4 https://brainrotbackground.s3.amazonaws.com/TRUCK-5.mp4 https://brainrotbackground.s3.amazonaws.com/TRUCK-6.mp4 https://brainrotbackground.s3.amazonaws.com/TRUCK-7.mp4 https://brainrotbackground.s3.amazonaws.com/TRUCK-8.mp4 https://brainrotbackground.s3.amazonaws.com/TRUCK-9.mp4

common problems

  • FFMPEG is not installed.
  • You don't have the flask python server running (or not on port 5000)
  • Dalle 3 API rate limit exceeded: this is because each dialogue transition has an image, and it is prompted to have 7 dialogue transitions. However, typical tier 1 open ai accounts can only generate 5 images per minute.
  • You don't have folders public/srt and public/voice and src/tmp
  • You have concurrency set too high for your computer (check remotion.config.ts)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.