⚠️ DISCLAIMER: This project is a working prototype ("brouillon") and is highly specific to a particular environment and workflow. It was developed for personal use and is shared here for inspiration, reference, or adaptation. Expect hardcoded paths, specific folder structures, and a "raw" coding style.
This project is an end-to-end automated pipeline designed to create and publish short-form video content (TikToks, Instagram Reels, YouTube Shorts). It leverages AI for scriptwriting and metadata, Remotion for programmatic video editing, and Telegram for final delivery.
The pipeline is orchestrated by a main shell script (automate.sh) that connects several specialized modules:
creator/): Uses the Google Gemini API to generate scripts based on specific "angles" (e.g., Stoic, Cynical, Wise) and themes.selector/): Python scripts that select appropriate video backgrounds and assets based on the content type.assembler/): A Remotion project that renders the base video by sequencing selected clips and adding background audio.captioner/):
deliver/):
deliver/): Automatically sends the final MP4, description, and thumbnail to a designated Telegram chat via a Bot.To run this pipeline, you will need:
Environment Variables:
Create a .env file in the root directory. Use the provided code structure as a reference for required variables:
GEMINI_API_KEY: Your Google AI Studio key.TOKEN: Your Telegram Bot token.URL: Your Telegram Bot API URL (or standard API).PYTHON_PATH, YT_DLP_PATH, etc.: Paths to your local executables.PROJECT_BASE_PATH: The absolute path to the project root.Dependencies:
# Install Python deps
pip install google-genai requests python-dotenv Pillow
# Install Node.js deps in assembler and captioner folders
cd assembler && npm install
cd ../captioner && npm install
automate.sh: The main entry point script.assembler/: Remotion source code for the raw video composition.captioner/: Remotion source code for subtitling logic.creator/: Python logic for Gemini-powered scriptwriting.deliver/: Python scripts for thumbnail generation and Telegram uploading.selector/: Logic for picking video background clips.trigger/: Daily automation triggers and theme pools..env is perfectly configured.Lora-SemiBold.ttf) and template images to exist in the deliver/ and captioner/public/ folders.system_instruction in script-creator.py and the prompts in deliver.py to match your specific niche.tree.txt file.106 commits
Rust
75.8%
Python
14.0%
Shell
4.5%
JavaScript
2.7%
TypeScript
1.6%
⚠️ DISCLAIMER: This project is a working prototype ("brouillon") and is highly specific to a particular environment and workflow. It was developed for personal use and is shared here for inspiration, reference, or adaptation. Expect hardcoded paths, specific folder structures, and a "raw" coding style.
This project is an end-to-end automated pipeline designed to create and publish short-form video content (TikToks, Instagram Reels, YouTube Shorts). It leverages AI for scriptwriting and metadata, Remotion for programmatic video editing, and Telegram for final delivery.
The pipeline is orchestrated by a main shell script (automate.sh) that connects several specialized modules:
creator/): Uses the Google Gemini API to generate scripts based on specific "angles" (e.g., Stoic, Cynical, Wise) and themes.selector/): Python scripts that select appropriate video backgrounds and assets based on the content type.assembler/): A Remotion project that renders the base video by sequencing selected clips and adding background audio.captioner/):
deliver/):
deliver/): Automatically sends the final MP4, description, and thumbnail to a designated Telegram chat via a Bot.To run this pipeline, you will need:
Environment Variables:
Create a .env file in the root directory. Use the provided code structure as a reference for required variables:
GEMINI_API_KEY: Your Google AI Studio key.TOKEN: Your Telegram Bot token.URL: Your Telegram Bot API URL (or standard API).PYTHON_PATH, YT_DLP_PATH, etc.: Paths to your local executables.PROJECT_BASE_PATH: The absolute path to the project root.Dependencies:
# Install Python deps
pip install google-genai requests python-dotenv Pillow
# Install Node.js deps in assembler and captioner folders
cd assembler && npm install
cd ../captioner && npm install
automate.sh: The main entry point script.assembler/: Remotion source code for the raw video composition.captioner/: Remotion source code for subtitling logic.creator/: Python logic for Gemini-powered scriptwriting.deliver/: Python scripts for thumbnail generation and Telegram uploading.selector/: Logic for picking video background clips.trigger/: Daily automation triggers and theme pools..env is perfectly configured.Lora-SemiBold.ttf) and template images to exist in the deliver/ and captioner/public/ folders.system_instruction in script-creator.py and the prompts in deliver.py to match your specific niche.tree.txt file.106 commits
Rust
75.8%
Python
14.0%
Shell
4.5%
JavaScript
2.7%
TypeScript
1.6%