Giter Site home page Giter Site logo

samuraipolix / shorts-maker Goto Github PK

View Code? Open in Web Editor NEW
46.0 3.0 15.0 3.57 GB

Create high-quality vertical quotes videos (1920x1080 - Perfect for all social medias) in about 15seconds per video!

License: GNU General Public License v3.0

Python 100.00%
bible-verse bibledata ffmpeg moviepy pillow reels shorts social-media tiktok video-generator

shorts-maker's Introduction

Python PayPal

Quote Video Maker for Shorts/Reels/TikTok

This script creates high-quality vertical quotes videos (1920x1080) in about 15secs per video!

๐Ÿ“ Table of Contents

  1. About
  2. Demo
  3. How it works
  4. How To Run
  5. Built Using
  6. Final Results
  7. Note

๐ŸŽฅ Demo

promotion_video.mp4

๐Ÿง About

This is my first big Python project, which I put a lot of effort into, hope you get the most out of it :)

I used it to sell bible verse videos on Fiverr for a while.

๐Ÿ’ญ How it works

#1 Content

I got a 50+ stock background video (of mainly nature), 40 audio files and 10 fonts.

#2 Editing

The script works by taking a background video from '/videos', an audio file from '/audios', a random font, and a quote (a bible verse) from the JSON file, and combining them all into 1 video.

I am using PILLOW to generate the text in different fonts and FFMPEG to combine them all as fast as possible (I used MoviePy at the beginning but it was too slow).

All the video files and audio files are copyright-free from stock footage websites (Pexels, Pixabay, etc.), and the fonts are copyright-free as well.

๐Ÿ How to run

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

  1. Download this repository as zip file / using git.
  2. Open the folder.
  3. Make sure all the required modules are installed. (pip install -r requirements.txt)
  4. Open main.py
  5. set the number of videos you want, your logo, and choose a quote file from '/sources/verses_data' (you can also use the topical bible verses scraper I developed)
number_of_videos = 99
customer_name = "your_name"
image_file = f"{project_dir}/sources/logo.png"
json_file = f"{project_dir}/sources/verses_data/love_data.json"
  1. RUN!
  2. And that's it! Everything else will be handled automatically!
  3. You can find your video in the customers/your-name/ directory.

โ›๏ธ Built Using

  1. PILLOW - For generating text images.
  2. FFMPEG - For video editing.

๐ŸŽฅ Final Results

After running the script you will get these 3 files:

  1. The edited video file.

    61-Hebrews1211_23_35_3.mp4
  2. A spreadsheet containing all the File names, verses, and references, to make it easier to find the video you want.

    image

  3. The generated text image (for the quote in the video).

๐Ÿ—’๏ธ Note

Note that this script is very basic as of now. I added Text-to-Speak in a later version which I will hopefully post soon. If you want to contribute, you are free to do so and you may even fork and improve this repository.

shorts-maker's People

Contributors

samuraipolix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

shorts-maker's Issues

fix fonts

  • font 6 cant display "'"
  • font 18 (SillyHandScriptRegular.otf) can't display "-" and "โ€œ"
  • font 5 is a a bit off screen with verse 88 in love and with 96
  • font 17 in 99 love

No such file or directory: 'ffmpeg -loglevel error -stats -y -loop 1 -i "/Users/labba.kumar/PycharmProjects/ShortsMaker/sources/logo.png" -i "/Users/labba.kumar/PycharmProjects/ShortsMaker/audio/always-with-you-by-prabajithk-121040.mp3" -i "/Users/labba.kumar/PycharmProjects/ShortsMaker/videos/18.mp4" -i "/Users/labba.kumar/PycharmProjects/ShortsMaker/customers/phani/verse_images/1 Corinthians 1614-2.png" -r 24 -filter_complex "[2:v][0:v]overlay=(W-w)/2:0[v1]; [v1]drawtext=fontfile=\'/Users/labba.kumar/PycharmProjects/ShortsMaker/sources/MouldyCheeseRegular-WyMWG.ttf\':text=\'1 Corinthians 16\\:14\':x=(w-text_w)/2:y=978:fontsize=42:fontcolor=white:enable=\'between(t,1,13.6)\'[v2]; [v2][3:v]overlay=(W-w)/2:800:enable=\'between(t,1,13.6)\'[v3]" -t 13.6 -map "[v3]" -map 1 -c:v libx264 -preset veryfast -crf 18 "/Users/labba.kumar/PycharmProjects/ShortsMaker/customers/phani//0-1Corinthians1614_31_36_1.mp4"'

Although i havent modified anything.. Im getting this error. can u help me

No such file or directory

No such file or directory: 'ffmpeg -loglevel error -stats -y -loop 1 -i "/Users/labba.kumar/PycharmProjects/ShortsMaker/sources/logo.png" -i "/Users/labba.kumar/PycharmProjects/ShortsMaker/audio/always-with-you-by-prabajithk-121040.mp3" -i "/Users/labba.kumar/PycharmProjects/ShortsMaker/videos/18.mp4" -i "/Users/labba.kumar/PycharmProjects/ShortsMaker/customers/phani/verse_images/1 Corinthians 1614-2.png" -r 24 -filter_complex "[2:v][0:v]overlay=(W-w)/2:0[v1]; [v1]drawtext=fontfile='/Users/labba.kumar/PycharmProjects/ShortsMaker/sources/MouldyCheeseRegular-WyMWG.ttf':text='1 Corinthians 16\:14':x=(w-text_w)/2:y=978:fontsize=42:fontcolor=white:enable='between(t,1,13.6)'[v2]; [v2][3:v]overlay=(W-w)/2:800:enable='between(t,1,13.6)'[v3]" -t 13.6 -map "[v3]" -map 1 -c:v libx264 -preset veryfast -crf 18 "/Users/labba.kumar/PycharmProjects/ShortsMaker/customers/phani//0-1Corinthians1614_31_36_1.mp4"'

I havent changed anything.. but im getting this error.

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.