- Go 90.4%
- HTML 4.5%
- Nix 3.3%
- HCL 0.9%
- Makefile 0.6%
- Other 0.3%
Co-authored-by: notarock-s-renovate[bot] <265181468+notarock-s-renovate[bot]@users.noreply.github.com> |
||
|---|---|---|
| .github/workflows | ||
| cmd | ||
| database/migrations | ||
| pkg | ||
| terraform | ||
| testing_resources | ||
| .air.toml | ||
| .env.sample | ||
| .gitignore | ||
| .tuyauterie.yaml | ||
| CLAUDE.md | ||
| docker-compose.yaml | ||
| Dockerfile | ||
| flake.lock | ||
| flake.nix | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| Makefile | ||
| README.fr.md | ||
| README.md | ||
| renovate.json | ||
Slopify
Note
I created this project "For Science!". The goal was to find out how hard it is to completely automate low-effort content creation... Turns out it's really not that hard.
Introduction
Slopify is an innovative tool designed to transform Reddit comment threads into short, engaging videos. By leveraging natural language processing and video generation technologies, Slopify offers users a unique way to consume and share glimpses, jokes, stories, and discussions from Reddit in a visually appealing format
Thanks you chatGPT, bery cool.
What it can actually do
- Create brainrot short-fort content videos : Automatically converts Reddit comment threads into short videos with text and narration.
- Customizable video background : Offers customizable backgrounds to make each video unique using
--footage - Easy upload : Built-in sharing options to easily distribute your generated videos on platforms like YouTube.
- Built-in title generation : Prompt ChatGPT for SEO title and description to turn the Dead Internet Theory into a real thing!
Usage
go run main.go reddit <permalink to comment / thread> --footage <path to background content folder>
Project Setup
Requirements
- Go 1.18
- ffmpeg
- terraform/opentofu
- A GCP project.
- OpenAPI key and some credits
1. Clone repository
git clone https://github.com/notarock/slopify
2. Configure GCP project
gcloud auth login
gcloud config set project slopify
gcloud auth application-default login
3. Create GCS storage bucket using provided terraform code
cd terraform
terraform init
terraform apply
GCS storage is only used temporarily during the execution of the program. To use the transcription API to obtain subtitles, the video passed as a parameter must be in GCS...
The video is deleted in all cases using a defer, so it should not incur additional costs related to storage usage.
4. Activate GCP API
Activate these required APIS:
- Cloud Text-To-Speech API : https://console.cloud.google.com/apis/api/texttospeech.googleapis.com
- Cloud Video Intelligence https://console.cloud.google.com/apis/api/videointelligence.googleapis.com
- Youtube Data API v3
5. Add yourself as a developer in the project's users and create an OAuth application for YouTube.
6. Authorize YouTube through the OAuth app. The CLI will ask for the code found in the app's callback URL.
Download the JSON configuration file for the OAuth app and run the program, which will initiate the authentication flow for YouTube. Then, copy the code from the callback URL and paste it into the terminal.