8000 GitHub - gavink97/reddit-shorts-generator: Generate YouTube Shorts from UGC on Reddit
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gavink97/reddit-shorts-generator

Repository files navigation

Reddit Shorts Generator - Generate Short-form media from UGC content

Features

  • Upload videos directly to YouTube via the YouTube API

  • Automatically generate captions for your videos using Open AI Whisper

  • Videos are highly customizable and render blazingly fast with FFMPEG

  • Utilizes SQLite to avoid creating duplicate content

Getting Started

RSG (Reddit Shorts Generator) is designed to be modular, with extensions built in to upload to YouTube or TikTok.

Installation

Install the reddit shorts repo in the root directory of the project as shown in the file tree.

Build from source

Because OpenAi’s Whisper is only compatible with Python 3.8 - 3.11 only use those versions of python.

mkdir reddit-shorts
gh repo clone gavink97/reddit-shorts-generator reddit-shorts
pip install -e reddit-shorts

File Tree

├── client_secrets.json
├── cookies.txt
├── [reddit-shorts]
├── resources
│   ├── footage
│   └── music
├── tiktok-uploader
├── tiktok_tts.txt
└── youtube_tts.txt

Extensions

Dependencies

This package requires ffmpeg fonts-liberation to be installed.

This repository utilizes pillow to create reddit images, so make sure to uninstall PIL if you have it installed

Getting your TikTok Session ID

You will need your tiktok session id in order to use tiktok generated text to speech

Google Chrome

For Google Chrome: open the inspector, Application tab, in the side bar under Storage click the Cookies drop down and select tiktok. Then filter for sessionid

Firefox

For Firefox: open the inspector, Storage tab then click the Cookies drop down and select tiktok. Then filter for sessionid

Commands

Platform

Upload to a platform via -p or --platform

shorts -p platform

options are: youtube tiktok video (stand alone video) all (except standalone)

Input

Custom input text or path to custom input text via -i or --input

shorts -i "hello world"

Video

Custom video input via -v or --video

shorts -v path/to/your/video

Split

Split video inputs via -s or --split

shorts --split

Split will automatically take effect if two or more videos are inputed via --video

shorts --video path/to/video/one --video path/to/video/two

Music

Custom music input via -m or --music

shorts -v path/to/your/music

Profanity Filter

Keep your content clean via -pf or --filter

shorts -pf

Strategy

Choose a strategy for gathering content via --strategy

shorts --strategy hot

options are: hot random

Title

Custom title for video via -t or --title

shorts -p youtube -t "Hello Youtube!"

only an option when uploading to a platform

Keywords

Custom keywords or hashtags for video via -k or `--keywords

shorts -p youtube -k "funny fyp reddit"

only an option when uploading to a platform

Contributing

I’m open to contributions.

Support

If you’re feeling generous you can support this project and others I make on Ko-fi :)

Roadmap

Planned additions

  • ✓ Split Screen Video

Feature ideas

  • ❏ AI Generated Titles / Tags

  • ✓ Automating volumes for music / tts

Star

If you’ve found this useful please give it a star ⭐️ as it helps other developers find my repos.

Star History Chart

About

Generate YouTube Shorts from UGC on Reddit

Topics

Resources

License

Stars

Watchers

Forks

0