Git Product home page Git Product logo

ai-gen-storie's Introduction

Automated generation of TikTok fact videos

Introduction

This NodeJS project is designed to create engaging TikTok-style videos with subtitles by combining random videos, music, and facts from a JSON file. The project takes inspiration from a JSON file called fatos.json, which contains interesting facts and information. It selects a random video from a folder named videos and a random music track from a folder named sounds to create a visually appealing video. The subtitles for the video are generated based on the facts provided in fatos.json. This project is a fun way to generate educational and entertaining content.

How to Use

To use this project, follow these steps:

  1. Clone the Git repository to your local machine:

    git clone <repository_url>
    
  2. Install the required NodeJS dependencies:

    npm install
    
  3. Place your video files in the videos folder and your music tracks in the sounds folder.

  4. Update the fatos.json file with your own facts or keep the existing ones.

  5. Run the NodeJS script to generate a TikTok-style video:

    node generateVideo.js
    
  6. Once the script is complete, you will find the output video in the output folder.

Example video

video-10.mp4

How It Works

The project works by selecting a random video from the videos folder and a random music track from the sounds folder. It then reads the fatos.json file to extract facts and information. These facts are used to generate subtitles for the video.

Here's a brief overview of how the script works:

  1. Load the fatos.json file to retrieve facts and titles.

  2. Select a random video and music track from their respective folders.

  3. Combine the video, music, and subtitles to create a TikTok-style video.

  4. Save the generated video in the output folder.

  5. The subtitles are displayed at appropriate intervals in the video to provide information about the selected facts.

This project allows you to create engaging and informative videos with ease, making it a fun way to share interesting facts with your audience.

ai-gen-storie's People

Contributors

matheustavarestrindade avatar

Watchers

 avatar

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.