noahgsolomon / brainrot.js Goto Github PK
View Code? Open in Web Editor NEWText to video generator in the brainrot form. Learn about any topic from your favorite personalities.
Home Page: https://brainrotjs.com
License: MIT License
Text to video generator in the brainrot form. Learn about any topic from your favorite personalities.
Home Page: https://brainrotjs.com
License: MIT License
I think it would be great to have a way to run it with ollama
After running node localBuild.mjs
, I get the following output:
Adding file to ffmpeg: BARACK_OBAMA-0.mp3
Adding silence to ffmpeg
Adding file to ffmpeg: BEN_SHAPIRO-1.mp3
Adding silence to ffmpeg
Adding file to ffmpeg: BARACK_OBAMA-2.mp3
Adding silence to ffmpeg
Adding file to ffmpeg: BEN_SHAPIRO-3.mp3
Adding silence to ffmpeg
Adding file to ffmpeg: BARACK_OBAMA-4.mp3
Error: Cannot find ffprobe
Error transcribing audio (attempt 1): Error: HTTP error! status: 500
at transcribeAudio (file:///home/androtim/brainrot.js/generate/transcribe.mjs:23:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async transcribeFunction (file:///home/androtim/brainrot.js/generate/transcribe.mjs:105:31)
at async main (file:///home/androtim/brainrot.js/generate/localBuild.mjs:63:2)
at async file:///home/androtim/brainrot.js/generate/localBuild.mjs:90:2`
Retrying in 1 second(s)...
Error transcribing audio (attempt 2): Error: HTTP error! status: 500
at transcribeAudio (file:///home/androtim/brainrot.js/generate/transcribe.mjs:23:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async transcribeFunction (file:///home/androtim/brainrot.js/generate/transcribe.mjs:105:31)
at async main (file:///home/androtim/brainrot.js/generate/localBuild.mjs:63:2)
at async file:///home/androtim/brainrot.js/generate/localBuild.mjs:90:2
Retrying in 2 second(s)...
Error transcribing audio (attempt 3): Error: HTTP error! status: 500
at transcribeAudio (file:///home/androtim/brainrot.js/generate/transcribe.mjs:23:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async transcribeFunction (file:///home/androtim/brainrot.js/generate/transcribe.mjs:105:31)
at async main (file:///home/androtim/brainrot.js/generate/localBuild.mjs:63:2)
at async file:///home/androtim/brainrot.js/generate/localBuild.mjs:90:2
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
Error: HTTP error! status: 500
at transcribeAudio (file:///home/androtim/brainrot.js/generate/transcribe.mjs:23:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async transcribeFunction (file:///home/androtim/brainrot.js/generate/transcribe.mjs:105:31)
at async main (file:///home/androtim/brainrot.js/generate/localBuild.mjs:63:2)
at async file:///home/androtim/brainrot.js/generate/localBuild.mjs:90:2
I installed ffprobe
in a python venv and tried running node localBuild.mjs
again but I still get the same result.
I am not able to install ffprobe using pip on my system as a whole as my OS does not permit it for some odd reason.
Are the errors cause by me not having ffprobe installed or is it something else?
Note: I use Ubuntu 23.10 and run on an Intel i3
Hi this is very cool :)
If it had an open source license it could be fun to build upon it ๐
After running node localBuild.mjs, my machine gets to the transcription, or subtitle part, after consolidating the audio files, but when it gets to that part, it has an error I can't trace back and I dont know how to fix, any suggestions?(BTW don't really know how to code so be specific please)
error message i receive
Finished concatenating audio files!
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: ENOENT: no such file or directory, open 'public/srt/BARACK_OBAMA-0.srt'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'public/srt/BARACK_OBAMA-0.srt'
}
After running node localBuild.mjs
, I get the following error:
file:///home/androtim/brainrot.js/generate/node_modules/mysql2/promise.js:374
const localErr = new Error();
^
Error: connect ECONNREFUSED 127.0.0.1:3306
at PromisePool.execute (/home/androtim/brainrot.js/generate/node_modules/mysql2/promise.js:374:22)
at query (file:///home/androtim/brainrot.js/generate/dbClient.mjs:21:31)
at transcribeFunction (file:///home/androtim/brainrot.js/generate/transcribe.mjs:98:9)
at async main (file:///home/androtim/brainrot.js/generate/localBuild.mjs:61:2)
at async file:///home/androtim/brainrot.js/generate/localBuild.mjs:88:2 {
code: 'ECONNREFUSED',
errno: -111,
sql: undefined,
sqlState: undefined,
sqlMessage: undefined
}
Does it mean that the port is not open?
I do not understand what is happening.
Note: I am running on an i3 on Linux Ubuntu 23.10
I'm trying to generate using this, but it keeps saying my rate limit is exceeded for my openai account for the image generation, saying i need to have a rate limtit of at least 6 images per min but i only have 5 per min allowed i guess. Does this mean that I need to upgrade my usage tier from 1 to 2? Is there a way i can run this to where it only generates 5 of its images at a time? anyways, thank you for your help!
It will be cool for an option to buy a specific amount of credits (like 10 credits) in a one time purchase or a monthly ( / yearly) subscription
President voices(Donald, Joe, and Obama) arent working with eleven labs, any solutions? alternatives? workarounds?
Is it possible to remove/replace the watermarks present during and at the end of the video when generating locally?
It seems the videos are being output at 60.0x fps, which is just barely above Tiktok's limit of 60fps. I've tried a few videos and they're all just barely too much FPS. Works fine for Youtube though.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.