Code Monkey home page Code Monkey logo

template-tiktok's Introduction

Remotion video

Animated Remotion Logo

Welcome to your Remotion project!

Commands

Install Dependencies

npm i

Start Preview

npm start

Render video

npm run build

Upgrade Remotion

npm run upgrade

Captioning

Replace the sample-video.mp4 with your video file. Caption all the videos in you public by running the following command:

node sub.mjs

Only caption a specific video:

node sub.mjs <path-to-video-file>

Only caption a specific folder:

node sub.mjs <path-to-folder>

Configure Whisper.cpp

Captioning will download Whisper.cpp and the 1.5GB big medium.en model. To configure which model is being used, you can configure the variables in whisper-config.mjs.

Non-English languages

To support non-English languages, you need to change the WHISPER_MODEL variable in whisper-config.mjs to a model that does not have a .en sufix.

Docs

Get started with Remotion by reading the fundamentals page.

Help

We provide help on our Discord server.

Issues

Found an issue with Remotion? File an issue here.

License

Note that for some entities a company license is needed. Read the terms here.

template-tiktok's People

Contributors

chetankarwa avatar jonnyburger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

template-tiktok's Issues

whisper not working - whisper.cpp not downloading correctly main.exe missing

Hey thanks for sharing this project, I'd really like to use this, but when I can't get whisper to download and work correctly:

I run this command as instructed in the README.md

node sub.mjs

it downloads but it seems like a main.exe is not there

it creates this, folder with just this one file whisper.cpp > ggml-medium.en.bin

image

but if I understand this error message correctly, there should be a main.exe that didn't download. I'm trying to find the .exe on Hugging Face or GitHub but I can't figure out how to download it from anywhere. I'm not sure what to do; I've been stuck on this for an hour lol.

Here's the error message I get when it downloads after using "node sub.mjs"

Downloaded 1521640597 of 1533774781 bytes (99.21%) Downloaded 1532139159 of 1533774781 bytes (99.89%) Downloaded 1533774781 of 1533774781 bytes (100.00%) Extracting audio from file sample-video-2.mp4 node:events:492 throw er; // Unhandled 'error' event ^

Error: spawn D:\Dropbox\Projects\code-2024\captions-v1\whisper.cpp\main.exe ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess._handle.onexit (node:internal/child_process:292:12)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn D:\Dropbox\Projects\code-2024\captions-v1\whisper.cpp\main.exe',
path: 'D:\Dropbox\Projects\code-2024\captions-v1\whisper.cpp\main.exe',
spawnargs: [
'-f',
'D:\Dropbox\Projects\code-2024\captions-v1\temp\sample-video-2.wav',
'--output-file',
'D:\Dropbox\Projects\code-2024\captions-v1\tmp',
'--output-json',
'--max-len',
1,
'-ojf',
'--dtw',
'medium.en',
'-m',
'D:\Dropbox\Projects\code-2024\captions-v1\whisper.cpp\ggml-medium.en.bin'
]
}

Node.js v20.9.0
PS D:\Dropbox\Projects\code-2024\captions-v1>

I'm in windows 11, please let me know if you need any more details. I'm trying to install this template from scratch so all I did before this is npx create-video@latest and then choose the tiktok template. I'm in Vs Code I tried to run this from VS code's terminal, as well as separately from window's powershell

Thank you, and thanks again for sharing this, can't wait to try it!

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.