Skip to content
GUIDES#AI lecture summary#Gemini video#Google AI Studio

How to Summarize a Lecture Recording, Whiteboard, Equations and All, with Gemini: A Student's Guide

Screenshots miss what gets written between shots, and transcripts can't see the board. Gemini takes the entire video file, reads the whiteboard and hears the lecturer in the same request. Here is how to turn that into a summary with equations and diagrams, manually or automatically.

Yaakov Tzedek
Yaakov Tzedek · AI expert·9 min read
THE BOTTOM LINE
  • Upload a lecture video to Gemini, read the whiteboard and equations, and generate a structured summary, manually via AI Studio or automatically through the API.

The elegant approach is to skip both screenshots and transcription, and give Google's Gemini the full video file. Gemini processes the image and audio together, so it reads what is written on the board and connects it to what the lecturer is saying at that exact moment. You still need to download the recording once per lecture, because no model can log into a system that requires authentication on its own. But once you have the file, everything else can run automatically: compression, upload, a summary with LaTeX equations, and extraction of diagrams as images.

The question came from an engineering student in a Facebook AI group. He had tried Claude for Chrome, which takes screenshots at fixed intervals, and had tried transcription tools, which cannot see the board. Both approaches got stuck for the same reason: each one sees only half the lecture.

Why screenshots and transcription are not enough

In an engineering lecture, information is split across two channels, and any tool that sees only one of them will miss the point. The lecturer says "and now we substitute this here," and the meaning of "this" and "here" exists only on the board.

  • Interval screenshots capture the board, but miss everything written and erased between shots, and they carry none of the verbal explanation. More on the capabilities and limitations of that tool in the guide to Claude for Chrome.
  • Transcription captures every word, but an equation written silently on the board simply does not exist in it.
  • A model that receives a video sees both channels on the same timeline, which is exactly what the original question requires.

What Gemini actually does with a video file

Gemini does not "watch" a video the way a person does. It samples frames from it and aligns the audio to them. The figures below are taken from the official Gemini API video understanding documentation (checked 2026-10-20):

WhatValue per documentation
Image sampling rateOne frame per second, by default
AudioProcessed together with the image, single channel
Token costApproximately 100 tokens per second at low resolution, approximately 300 at high resolution
Maximum length per requestUp to approximately 3 hours at low resolution, up to approximately 1 hour at high resolution (on models with a 1-million-token context)
Reference to a moment in the videoTimestamp in MM:SS format
YouTubePublic videos only

Two rows in this table matter especially for an engineering student. The first is one frame per second: a board does not change that fast, so the sampling rate is more than adequate. The second is resolution: the media resolution documentation (checked 2026-10-20) recommends high resolution whenever you need to read dense text or small details in a frame. Equations on a board are exactly that case. The tradeoff is length: at high resolution, one hour fits in a single request, so a 90-minute lecture needs to be split in two.

The four approaches, side by side

ApproachSees the boardHears the lecturerAutomatedBest for
Browser screenshotsPartially, only at the moment of captureNoPartiallyA quick glance
Audio transcriptionNoYesYesCourses with no board
Gemini in AI StudioYesYesNo, manual uploadA single lecture, testing the method
Gemini API with a scriptYesYesYesThe entire semester

My recommendation: start with AI Studio on one lecture, fine-tune the prompt until the summary is good, and only then move to the script.

Step by step: one lecture in Google AI Studio

Google AI Studio is Google's browser interface for working directly with Gemini models. It is the fastest way to check whether the method works with your recordings.

  1. Download the recording from the course system, if your institution allows it (more on that below).
  2. Compress it. A smaller file uploads faster and fails less. The settings below keep the board readable:
ffmpeg -i lecture.mp4 -vf "scale=-2:720" -c:v libx264 -crf 28 -c:a aac -b:a 64k lecture_small.mp4
  1. Split a long lecture into 45-minute segments so each part fits at high resolution:
ffmpeg -i lecture_small.mp4 -c copy -f segment -segment_time 2700 -reset_timestamps 1 part_%02d.mp4
  1. Open a new chat in AI Studio, select a recent Flash model, and upload the first part.
  2. Paste the prompt from the next section and send.
  3. Verify one equation against the board. Pick an equation from the summary, jump to the timestamp Gemini cited, and compare. This is the step that builds confidence in the output.

The prompt that produces a summary with equations and diagrams

The difference between a generic summary and one you can actually study from before an exam is in the instructions. The principle, as in the guide How to write a good prompt, is to give precise instructions rather than ask an open-ended question:

You are a teaching assistant for an engineering course. You have a lecture recording in front of you, including the board and the lecturer's voice.

  1. Write a detailed summary in Hebrew, following the order of the lecture, with a heading for each topic and a MM:SS timestamp at the start of each topic.
  2. Copy every equation written on the board in LaTeX syntax, exactly as written. Do not complete or correct anything. If part of an equation is not legible, write [not legible] and note the timestamp.
  3. For each equation, explain in one sentence what the lecturer said about it.
  4. For every diagram, graph or schematic: describe what is shown, give a timestamp for the moment the diagram is complete on the board, and add a line in the format FIGURE MM:SS.
  5. At the end, a list of what the lecturer emphasized as important for the exam, only if he said so explicitly.
  6. Do not add knowledge that did not appear in the lecture.

Two lines here do most of the work. The instruction to mark "not legible" instead of guessing prevents the most dangerous failure mode in an engineering summary: an equation that looks correct but is not. And the FIGURE line sets up the next step.

The diagrams themselves, not just a description

A verbal description of an electrical circuit does not replace the circuit. So rather than asking Gemini to redraw it, you ask it to report when the diagram appears, and then extract the original frame from the video:

ffmpeg -ss 00:34:12 -i part_01.mp4 -frames:v 1 fig_34-12.png

You embed the image in the summary next to the description. That way you get the diagram exactly as the lecturer drew it, with the explanation alongside it. Worth keeping in mind: the frame comes from the compressed file or the original, whichever you choose. If the board is blurry in the compressed version, extract from the source.

Automation for the entire semester with the API

Once the prompt is dialed in, there is no reason to keep dragging files into a browser. A short Python script does the same thing for every lecture that lands in a folder. The code is based on the example in the official documentation, which uses the Interactions API (according to the documentation, this interface is still in beta):

import sys, time, pathlib
from google import genai

client = genai.Client()  # reads GEMINI_API_KEY from the environment
prompt = pathlib.Path("prompt.txt").read_text(encoding="utf-8")

video = client.files.upload(file=sys.argv[1])
while not video.state or video.state.name != "ACTIVE":
    time.sleep(5)
    video = client.files.get(name=video.name)

interaction = client.interactions.create(
    model="gemini-3.8-flash",
    input=[
        {"type": "video", "uri": video.uri, "mime_type": video.mime_type, "resolution": "high"},
        {"type": "text", "text": prompt},
    ],
)

out = pathlib.Path(sys.argv[1]).with_suffix(".md")
out.write_text(interaction.output_text, encoding="utf-8")
client.files.delete(name=video.name)

What happens here:

  1. The file is uploaded to the Files API. According to the Files API documentation (checked 2026-10-20), the service is free, files are stored for 48 hours and deleted automatically, and there is a 20GB limit per project. The script deletes the file immediately on completion to avoid accumulation.
  2. We wait until the video is processed (ACTIVE state), and only then send the request.
  3. The summary is saved as a Markdown file next to the recording, so the LaTeX equations render nicely in any editor that supports it.
  4. FIGURE lines in the file are the input for the diagram extraction step. A short loop that runs the ffmpeg command from the previous section against each of them completes the process.

A cost-saving mode worth knowing about. The documentation also describes a processing mode called agentic, where the model reads the transcript first and loads only the visual segments the request actually needs. According to Google, for long content this can save up to 88% of tokens. For a full board summary, where almost every segment is relevant, my recommendation is to stay in the standard mode with high resolution, and try agentic mode for focused questions like "where did the lecturer solve exercise 3."

What about recordings behind a password?

This is the part of the question that has no shortcut, and it is worth saying so plainly. Gemini does not log into the course website or watch an in-browser player. According to the file input methods documentation (checked 2026-10-20), an external link must be public or signed, and is limited to 15MB per file, far less than a lecture. YouTube links are supported only for public videos, and uploading a course recording to a public YouTube channel is a bad idea from every angle.

So "without downloading every time" translates in practice to "download once, never touch it again":

  • One download per lecture, manually or via whatever button the system provides, into an "incoming" folder.
  • The script handles the rest: compression, splitting, upload, summary, diagrams and deletion.
  • The summary is the artifact that stays. You can delete the video file from your computer once you have verified the summary.

Before you start, two checks you cannot skip. The first: whether your institution permits downloading recordings. If there is no download button, that is usually a deliberate decision, and the right response is to ask the lecturer or the teaching center, not to work around it. The second: privacy. According to the official pricing page (checked 2026-10-20), content sent on the free tier is used by Google to improve its products; on the paid tier it is not. A recording contains the lecturer's voice and sometimes student questions, so it is worth taking this seriously.

What It Costs

According to the Gemini API pricing page (checked 2026-10-20):

ModelFree tierInput, per million tokensOutput, per million tokens
Gemini 3.8 FlashYes$0.75 until 31.12.2026, then $1.50$3.75 until 31.12.2026, then $7.50
Gemini 3.5 Flash-LiteYes$0.30$2.50

A rough estimate based on documentation figures: one hour of high-resolution video is roughly 300 tokens per second, which comes to about one million tokens per hour. At the current Gemini 3.8 Flash price, that works out to under one dollar of input cost per hour of lecture, before output. A broader look at the models themselves is in the complete Gemini guide.

The Bottom Line

The problem with the original question was not that the tools were weak. Every tool tested saw only one channel of the lecture. Gemini receives both channels together, which is exactly why it fits here. The single download per lecture is the price of a password-protected recording, and three things make the output reliable: high resolution, a prompt that forbids guessing, and extracting the original diagrams instead of describing them.

Anyone who wants to learn AI Studio properly, from the first prompt through to the API key the script here requires, can use the Google AI Studio 2026 course. It costs 9.90 ILS.

Sources

Frequently asked questions

Was this article helpful?
Share:WhatsAppLinkedInX
Yaakov Tzedek
WRITTEN BY

Yaakov Tzedek

An Israeli AI lecturer, consultant and implementer who has supported 100+ organizations in AI implementation and lectured for 200+. Official content partner of Meta, Google, Canva and TikTok, featured on Israel's Channel 13.

More about Yaakov →