Skip to content

An AI-powered tool that transforms long videos into engaging YouTube Shorts, Instagram Reels, and other social media clips with maximum impact and virality.

Notifications You must be signed in to change notification settings

kashyapprajapat/ShortReelX

Repository files navigation

ShortReelX

ShortReelX is an AI-powered tool that transforms long videos into engaging YouTube Shorts, Instagram Reels, and other social media clips with maximum impact and virality.

Features

  • Upload long-form videos
  • Extract transcripts using AI
  • Generate short clips from key moments
  • Ideal for content repurposing

ShortReelX

is a fusion of three powerful words:

Short → Represents YouTube Shorts and short-form video content.
Reel → Represents Instagram Reels, TikTok videos, and other short video formats.
X → Symbolizes AI, innovation, and limitless possibilities (like SpaceX, OpenAI, etc.).


Installation & Setup

Prerequisites

Ensure you have the following installed:

Clone the Repository

git clone https://github.com/kashyapprajapat/ShortReelX.git
cd ShortReelX

Install Dependencies

npm install

Configure Environment Variables

Create a .env file in the project root and configure it as needed:

PORT=7777
# Add other necessary configurations

Start the Server

npm start

The server will start at http://localhost:7777/.


API Endpoints

1. Upload a Video

Endpoint: POST /upload

Request:

  • FormData (video file)

Response:

{
  "videoId": "unique-id",
  "transcript": "Extracted text from video"
}

// Upload endpoint response Alt Text

2. Generate Shorts

Endpoint: POST /generate-shorts

Request Body:

{
  "videoId": "unique-id",
  "numShorts": 3
}

Response:

{
  "videoId": "unique-id",
  "shorts": ["path-to-short1.mp4", "path-to-short2.mp4"]
}

// Generate shorts response Alt Text

3. Generate Exciting Thumbnails

Endpoint: POST /getexcitingthumbnails Request: FormData with:

video (file): Video to extract thumbnails from
numThumbnails (number): Number of thumbnails to generate (1-3)

Process:

AI analyzes video content to find visually compelling moments
Applies enhancement filters (brightness, contrast, sharpening)

// Generated thumnaials pick Alt Text


Get Enhanced Thumbnails api

Alt Text


Hashtag Generator api

Alt Text

Forking the Project

If you want to contribute or customize the project, follow these steps:

  1. Fork the Repository

  2. Clone Your Fork

    git clone https://github.com/kashyapprajapat/ShortReelX.git
    cd ShortReelX
  3. Create a New Branch

    git checkout -b feature-branch
  4. Make Your Changes & Commit

    git add .
    git commit -m "Your changes"
  5. Push Changes to Your Fork

    git push origin feature-branch
  6. Submit a Pull Request

    • Go to your forked repo on GitHub
    • Click on Pull Request > New Pull Request
    • Select your branch and submit the PR for review

Contributing

Contributions are welcome! Feel free to fork, improve, and submit a PR.


Health Route

Approach 1 👨🏻‍💻

Taking url download it but tenserflow not compatible and have meemoory leack use so now try v2
in v1 my pov based on yt video sfter downloding it we capature high anaging movement on yt video using tenserflow but it have node22 support so i degrded to node 16/18 still not working and give smae npm error memmory leak issue .. so now trying v2


Approach 2 👨🏻‍💻

my approch is thaat first download the video and generate the caption of it and now give that caption to gemai or any llm model based on that it will give use high chanses of that more views on ytshorts according youtube shorts rules like (verticall,must be a 9:16 aspect ratio etc) to that it will retunt the time stemp and based on that time step we will crop that part using ffmpeg and give it tot he user

About

An AI-powered tool that transforms long videos into engaging YouTube Shorts, Instagram Reels, and other social media clips with maximum impact and virality.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published