Gemini Lesson Video Pipeline

Turn a lesson plan into narrated videos and Shorts, then publish them to YouTube automatically.

Stars
★ 395
Last updated
1d ago
FARS reviewed
Nov 08, 2026
Primary language
Python

At a glance

How it runs
Self-hosted serviceCLI
Works with
Platform-specific
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
Python 3.11FFmpegImageMagickGoogle Gemini API keyPexels API keyYouTube Data API v3 OAuth credentialsGitHub ActionsShell / CLINetwork accessLocal filesystem
Typical use
An independent creator publishing a daily introductory AI course can use a lesson plan to drive video and Short production.
Not a fit if
  • Teams that do not use YouTube or want to avoid automatic publishing
  • Creators who require human review before each upload
Maintenance
Commits in the last 30 dayslast commit 2026-12-02+1.1 ★/day over 7 days

What does this agent do, and when should you use it?

This Python 3.11 pipeline creates educational videos from a course plan and uploads them to YouTube. A GitHub Actions schedule starts it daily at 7:00 AM UTC, selects the next pending lesson from content_plan.json, and asks Gemini 2.5 Flash for a slide script, Short copy, and metadata. MoviePy, PIL, and FFmpeg combine narration, Pexels imagery, and background music into a landscape lesson, a vertical Short, and thumbnails. Uploads use YouTube Data API v3; after success, the pipeline updates the plan and commits it back to the repository. The README also documents a local invocation, while scheduled publishing requires GitHub Actions, API keys, and YouTube OAuth credentials.

The run reads the next lesson marked pending in content_plan.json. Gemini 2.5 Flash generates a 7–8 slide lesson script, a one-sentence Short script, hashtags, and video metadata. The pipeline uses gTTS for per-slide narration and the Pexels API for background images, then renders a 1920×1080 landscape lesson and a 1080×1920 vertical Short with MoviePy, PIL, and FFmpeg, mixing in background music and creating thumbnails. It uploads both formats and their thumbnails through YouTube Data API v3, then marks the lesson complete and commits the updated content_plan.json.

  1. An independent creator publishing a daily introductory AI course can use a lesson plan to drive video and Short production.
  2. A small educational channel team can reduce manual scripting, narration, editing, and upload work for a list of planned topics.
  3. A channel operator who needs both landscape lessons and vertical Shorts can produce the two formats from one lesson.
  4. A developer already using GitHub Actions can run scheduled content production on a CI runner without setting up a separate always-on server.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • pip install -r requirements.txt
Environment variables
GOOGLE_API_KEY PEXELS_API_KEY
Config files
client_secrets.json credentials.json content_plan.json
Runtime
Python 3.11

How do you install or deploy this agent?

The README documents local installation and a GitHub Actions deployment. Clone the repository and install the requirements:

git clone https://github.com/ChaitanyaEswarRajeshJakki/gemini-youtube-automation.git
cd gemini-youtube-automation
pip install -r requirements.txt

For scheduled deployment, add these secrets under the repository's Settings → Secrets and variables → Actions:

GOOGLE_API_KEY
PEXELS_API_KEY
CLIENT_SECRET_B64
CREDENTIALS_B64

The README describes the last two as base64-encoded YouTube OAuth client_secrets.json and credentials.json files. The stated runtime is Python 3.11; rendering uses MoviePy, FFmpeg, PIL, and ImageMagick.

How do you use this agent?

Run locally with:

python main.py

Before running, provide GOOGLE_API_KEY and PEXELS_API_KEY, plus the YouTube OAuth client_secrets.json and credentials.json files (for GitHub Actions, supplied as CLIENT_SECRET_B64 and CREDENTIALS_B64). The documented scheduled job runs daily at 7:00 AM UTC, reads the next pending lesson in content_plan.json, and uploads the resulting videos. The README does not describe manual workflow triggers, retries, or a video review step.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

FARS trust-control audit

Not found in source — apply before daily use
  • confirmation before acting — Turn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
  • disclosed external effects — Establish which external systems it writes to, sends to or changes, and verify with test accounts or repos before production.
  • rollback or recovery path — Back up first, or work on a git branch or snapshot, so its changes can be undone.

What are this agent's strengths and limitations?

Pros
  • One lesson plan produces both a 16:9 lesson video and a 9:16 YouTube Short.
  • The scheduled pipeline connects script generation, gTTS narration, Pexels imagery, rendering, thumbnails, and YouTube upload.
  • After a successful run, it updates and commits content_plan.json to track completed lessons.
Limitations
  • Script generation depends on Google Gemini 2.5 Flash, imagery on Pexels, and publishing on YouTube Data API v3.
  • Setup requires several secrets and YouTube OAuth credentials; local execution also requires video-rendering dependencies.
  • The README describes unattended generation and publishing but does not explain content review, failure recovery, or least-privilege permissions.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Gemini Lesson Video Pipeline This agent 37 · Major gaps Self-hosted serviceFree + model costs ★ 395 1d ago Python —
ODS Private AI Server 71 · Some gaps CLIFree ★ 8k 3d ago Python OpenAI API · Claude API
GitHub Agentic Workflows 68 · Some gaps CLIFree + model costs ★ 5.8k today Go Claude Code · OpenAI API · Claude API
Xiaobei 64 · Some gaps CLIFree + model costs ★ 8.8k 13d ago Python —

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
37/ 100 5-point scale 1.9 / 5
Trust 6/29
Reliability 5/14
Adaptability 9/18
Convention 7/18
Effectiveness 7/13
Verifiability 3/8
Why each dimension lost points
Trust6 / 29 · 1.0/5

The README and workflow describe data flows involving Gemini, Pexels, YouTube, output files, and repository commits, but say little about data retention or access boundaries, so transparency is only partial. The workflow requests only contents:write, which shows some permission scoping; however, it uploads both video formats, writes back the content plan, and pushes commits without user confirmation, and no external-effect controls or rollback process are shown. Secrets are configured through GitHub Secrets and decoded into files, but their scope, cleanup, and leak response are undocumented. The requirements include unpinned packages and provide no security review evidence. The README says generated videos are published to a channel but does not explain source attribution or verification for source materials or generated content.

Reliability5 / 14 · 1.8/5

The code handles an invalid or unreadable content plan by regenerating it and creates a new plan when no lessons are pending. The workflow serializes runs and retries failed pushes. These measures support ordinary operation, but the supplied code is incomplete, and recovery from upload failures or partial success is unclear. MoviePy and Pillow are pinned, while other Python dependencies and system packages are not, so dependency availability is only partly addressed. The README's zero-input claim is consistent with automatic uploads in the code, but the process still depends on external APIs and credentials; the evidence does not establish end-to-end stability.

Adaptability9 / 18 · 2.5/5

The use case is clear: daily long-form and short AI lessons for developers. The README names the series topics, audience, and main outputs. Capability boundaries, content review, failure recovery, and limitations are not documented. The workflow has a clear daily 7:00 UTC schedule and manual trigger, but local setup notes are brief and omit complete preparation for FFmpeg, ImageMagick, and OAuth files.

Convention7 / 18 · 1.9/5

The README organizes features, workflow, technology, setup, and contribution information, while dependencies and tests are in separate files, giving the project an adequate basic structure and setup guide. Examples are mainly a workflow diagram and commands; there is no FAQ or substantial troubleshooting guide, and the automatic-operation claims lack corresponding operational detail. The repository displays an MIT badge and the README points to LICENSE, adequately identifying the license. The sample shows some naming and output conventions but does not establish their stability. There is no changelog or version policy, and no clear maintainer or support channel beyond a general invitation to contribute.

Effectiveness7 / 13 · 2.7/5

The pipeline connects script generation, narration, imagery, rendering, thumbnails, YouTube uploads, and course-progress updates. Producing both long-form and short-form videos gives the automation a clear practical purpose. The sample does not discuss costs, quotas, or benefits from reduced review work. Daily generation, multiple external services, two uploads, and GitHub Actions may incur ongoing API, storage, and runner costs; the README's claim of no hosting cost does not account for all costs.

Verifiability3 / 8 · 1.9/5

The README makes specific claims about pipeline steps and technology, and the code sample demonstrates parts of production and uploading. However, claims about daily operation and all channel videos being made by this pipeline are not independently verified by the supplied materials. The test sample covers only title sanitization and does not corroborate the full pipeline. The README, code, workflow, and test partly support the described feature set, but do not establish generated-content correctness or provide end-to-end evidence. The materials do not clearly distinguish implemented behavior from promotional claims, so traceability and separation of fact from inference are partial.

Risks and how to mitigate them
  • Not found in source: confirmation before actingTurn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
  • Not found in source: disclosed external effectsEstablish which external systems it writes to, sends to or changes, and verify with test accounts or repos before production.
  • Not found in source: rollback or recovery pathBack up first, or work on a git branch or snapshot, so its changes can be undone.
  • The workflow automatically uploads generated videos to YouTube and pushes the content plan and demo GIF with contents:write permission; the supplied material shows no pre-publication confirmation or rollback process.
  • Operation depends on API keys, YouTube OAuth credentials, external services, and partly unpinned dependencies. The README does not adequately describe costs, secret cleanup, or failure recovery.
  • The supplied test covers only title sanitization; it does not establish correctness of full video generation, uploading, or lesson content.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 620aa359fda0 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/gemini-youtube-automation.svg)](https://followagents.com/en/agents/gemini-youtube-automation)
<a href="https://followagents.com/en/agents/gemini-youtube-automation"><img src="https://followagents.com/badge/gemini-youtube-automation.svg" alt="FARS review"></a>

FAQ

What does it cost to run?
The README gives no API pricing or total cost. Users supply Gemini and Pexels API keys and YouTube OAuth credentials. GitHub Actions is described as using free CI runners, but quotas and any actual charges are not specified.
Will it publish directly to my channel?
Yes. The documented flow uploads videos and thumbnails through YouTube Data API v3, so it needs OAuth client_secrets.json and credentials.json for the channel.
Can I review videos before they are uploaded?
The README describes automatic generation and upload but does not document a human review or approval step. If review is required, inspect and change the workflow first.
What kind of content does it produce?
The README describes educational lessons and gives “AI for Developers” as the current example series. Each lesson produces a landscape video and a YouTube Short based on the same lesson.
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts