• Stars
    star
    222
  • Rank 175,331 (Top 4 %)
  • Language
    Python
  • Created about 1 year ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Automatically generate youtube shorts easily with this simple script!

Auto Youtube-Shorts

🤖 Automatically generate YouTube shorts simply by running the script!

📝 Table of Contents

  1. About
  2. Demo
  3. How it works
  4. Getting Started
  5. Usage
  6. Built Using
  7. Note

🧐 About

From creation to editing and voiceover too for a YouTube short, this script automates it all. No more tedious tasks, endless hours, this script has you covered!

Absolutely free!

🎥 Demo

Working

  • NOTE : This video is trimmed but it shouldn't take more than 1 minute to generate your video.

💭 How it works

#1 Content

The script starts by taking the video name and asking if the user wants to generate content using AI (which can be edited later).

#2 Text-to-Speech

After the content is generated / entered by the user, it generates Text-to-Speech and saves the file as `speech.mp3`.

#3 Editing

The editing starts by selecting a gameplay, trimming a random part of it and adding speech on top of it. Next, it resizes the video to 9:16 aspect ratio and saves the final video.

🏁 Getting Started

Follow the instructions given below to get this script up and running on your device.

Prerequisites

  1. OpenAI API Key - Get it from the Open AI Website. It provides $18 of free credits by default and they are more than enough. [OPTIONAL]
  2. OpenAI - pip install openai
  3. gTTS - pip install gtts
  4. MoviePY - pip install moviepy
  5. Dotenv - pip install python-dotenv

Installing

  1. Download this repository as zip file / using git.
  2. Open the folder.
  3. Make sure the above mentioned modules are installed. (pip install -r requirements.txt)
  4. Add your OpenAI API key to .env.example file (OPENAI_API=<key>) and rename it to just .env [OPTIONAL]
  5. Now, download both the gameplay videos from Google Drive (as they were too large to upload to Github)
  6. Put both the videos in a folder named "gameplay" in the directory with shorts.py file.
  7. Run the shorts.py python file.

🎈 Usage

To use this script,

  1. Run the shorts.py python file.
  2. Enter the name of the video.
  3. Let AI generate video content for you / enter it yourself.
  • NOTE : (Make sure you have added your OpenAI API key in .env file if using AI to generate content)
  1. And that's it! Everything else will be handled automatically!
  2. You can find your video in generated/ directory.

<sup>Beep boop, boop beep. I am a script. If there are any issues, contact my Creator - BedrockGranny#8331 and/or bedrockgranny on Discord </sup>

⛏️ Built Using

  1. OpenAI API - For generating video content.
  2. gTTS - For Text-to-Speech.
  3. MoviePY - For video editing.

🗒️ Note

Note that this script is very basic as of now and does not generate any graphics like images or even subtitles. These are some things that I MAY add in the future. If you want to contribute, you are free to do so and you may even fork and improve this repository.

Due to school, exams and irl stuff I don't get much time to work on this project. When I do, I would like to add the above mentioned features. Maybe even a REDDIT video maker but not sure yet.

More Repositories

1

Python-Spy

A Python script that can be used to spy on someone's computer.
Python
6
star
2

Quizizz-Hack

Quizizz Bot to Get All the Answers Correct and 100% Accuracy
JavaScript
6
star
3

Passwordss

Easily Generate, Manage and Store Your Passwords Safely and Securely
JavaScript
3
star
4

The-Gruffalo

A small website made for a school competition. Inspired by The Boat (https://www.sbs.com.au/theboat/) and The Gruffalo story.
JavaScript
3
star
5

BedrockGranny

JavaScript
2
star
6

About-Dungeon-Maths

About My Game : Dungeon Maths
CSS
2
star
7

Binary-Bytes

Meet Me, Binary Bytes
2
star
8

Happy-New-Year

A Cool Website To Wish Someone Happy New Year !!
CSS
2
star
9

Dungeon-Maths

A Game About Dungeons, Monsters and ...Maths ?
JavaScript
1
star
10

vibgyor

JavaScript
1
star
11

AI-Detection-JS

This Project Detects All Faces, Hand, etc using Webcam
JavaScript
1
star
12

Editor-Pad

JavaScript
1
star
13

Clock-Design

CSS
1
star
14

Responsive-Parallax-Website

My attempt to make a responsive parallax website (for a school competition). Inspired by "The Boat".
JavaScript
1
star
15

High-Low

A really small game made using python for fun
Python
1
star
16

Odd-Even-True-False

My Very First NPM Package That Is Odd-Even. You Can Get True / False Or Odd / Even Depending On Your Number
JavaScript
1
star
17

Binary-Bytes.github.io

CSS
1
star
18

Snippets-2

Snippets 2 Is A Visual Studio Code Extension By Me That Adds A Lot Of Snippets In VS Code To Make It Easier And Faster To Write Code
1
star
19

Google-Sheets-Database-Test

HTML
1
star
20

Text-2-Beluga-Discord-Bot

Ezily convert a text file in to a Beluga-like for FREEEE now in DISCORD!
JavaScript
1
star
21

Wump.js

An advanced api wrapper for discord.js v13
1
star
22

CodeBreaker-Client

CodeBreaker client tries to give you the best MCPE experience you can have with a ton of features like no lag and FPS boost.
CSS
1
star
23

Clock

A Realtime Clock Using Pure JS
CSS
1
star