MCPcopy Index your code
hub / github.com/ChetanXpro/short-video-automation

github.com/ChetanXpro/short-video-automation @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
41 symbols 126 edges 31 files 4 documented · 10% updated 6mo ago★ 180
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Short Video Automation

Automate the creation of short videos with text-to-speech, audio merging, image overlay, and background audio. - It takes average 40 second to create a 35 second short video.

Example videos

Here are some example videos created using Short Video Automation:

  1. A fact video about earth.

https://github.com/ChetanXpro/short-video-automation/assets/107798155/1220d3d7-46ac-4c6f-90ad-9f9529a1bca6

Overview

Short Video Automation is a tool that simplifies the process of creating short videos. It combines various multimedia elements to produce engaging videos quickly. The key features of this tool include:

  1. AI-Generated Scripts: Generate scripts with the help of artificial intelligence (AI). These scripts will form the basis of your short videos.

  2. Text-to-Speech: Convert the generated scripts into audio using text-to-speech technology.

  3. Audio Merging: Combine the generated audio with a sample video using FFmpeg to create the audio track for your short video.

  4. Image Overlay: For specific keywords in the script, automatically download images and overlay them on the video.

  5. Background Audio: Add a background audio track to enhance the video's appeal.

Usage

Prerequisites

  • Node.js and npm installed
  • FFmpeg installed

Installation

Clone the repository:

https://github.com/ChetanXpro/short-video-automation.git
cd short-video-automation

Download and paste a base video which you want to use in project root dir You can test with this video: https://drive.google.com/file/d/1ZNN3GX2iR74FxrTM_6adDEnl6BA8gKcc/view?usp=sharing

Then find any interesting quora question and answer and paste its link in tool

Run the tool

npm run start

Extension points exported contracts — how you extend this code

IQuery (Interface)
(no doc)
src/images/imagesProccessing.ts

Core symbols most depended-on inside this repo

createAudio
called by 2
src/audio/elevenAudio.ts
convertToWav
called by 2
src/audio/elevenAudio.ts
run
called by 1
createImage.js
scrapeQuora
called by 1
src/scrape.ts
generateQuoraShort
called by 1
src/index.ts
summarizeShortScript
called by 1
src/videoScript.ts
processVTTFile
called by 1
src/utils/utils.ts
whisper
called by 1
src/transcript/transcribe.ts

Shape

Function 40
Interface 1

Languages

TypeScript100%

Modules by API surface

src/upoad/upload.ts5 symbols
web-ui/app/pageHook.js4 symbols
web-ui/app/Header/page.jsx4 symbols
web-ui/app/api/email/route.js2 symbols
src/videoScript.ts2 symbols
src/promptTemplates/image.ts2 symbols
src/images/imagesProccessing.ts2 symbols
src/audio/elevenAudio.ts2 symbols
createImage.js2 symbols
web-ui/db/mongodb.js1 symbols
web-ui/app/page.js1 symbols
web-ui/app/layout.js1 symbols

Datastores touched

WaitlistCollection · 1 repos
(mongodb)Database · 1 repos

For agents

$ claude mcp add short-video-automation \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page