Code Monkey home page Code Monkey logo

youtube-shorts-generator's Introduction

youtube-shorts-generator

This code is a Python script for generating motivational videos with random backgrounds and audio. It uses the library to manipulate video and audio files, and the library to read data from a CSV file.

Random Short Video Generator

I was bored on a beautiful summer day so I wrote some code. A Python script for generating motivational videos with random backgrounds and audio.

Requirements

  • Python 3.7 or higher
  • moviepy library
  • csv library

Usage

  1. Install the required packages by running pip install moviepy.
  2. Prepare a CSV file with the following columns:
    • row_number: The row number in the CSV file.
    • header_text: The text to be displayed at the top of the video.
    • quote_part1: The first part of the motivational quote.
    • quote_part2: The second part of the motivational quote.
  3. Place the CSV file in the same directory as the script.
  4. Update the video_folder, audio_folder, and output_folder variables in the script with the paths to your video, audio, and output directories.
  5. Run the script using python motivational_video_generator.py.
  6. The script will generate a video for each row in the CSV file and save it to the output folder.

Notes

  • The script uses the moviepy library to manipulate video and audio files.
  • The csv library is used to read data from the CSV file.
  • Put your background audios and videos in the folder '/background/audios' & '/background/videos'
  • The script selects a random background video and audio file for each video.
  • The text overlays are added to the video using the moviepy library.
  • The script can be customized to use different data sources or video/audio files.

youtube-shorts-generator's People

Contributors

notchavanaditya 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.