Quiz video builder for a YouTube quiz channel
An Electron desktop app that turns a spreadsheet of quiz questions into a finished 1080p quiz video with AI voice-over, music, a countdown bar, thumbnails and an end screen.
The problem
The channel owner produced multiple-choice quiz videos and an earlier attempt at a tool had not been completed. Every video had to match the look of his existing ones, and rendering had to be fast.
How I built it
The app reads questions from a local spreadsheet or a public Google Sheet, draws each question as a 1920x1080 frame with an animated countdown bar, voices it with Gemini text-to-speech and mixes sound effects and background music. Each segment is rendered with FFmpeg directly and the segments are joined with stream copy, so nothing is re-encoded at assembly, and a branded end screen closes the video. Thumbnails come from the same template with the key words highlighted in yellow.
What got hard
- Matching the channel's existing look closely enough that viewers would not notice a new tool.
I compared my renders against frames cut from the client's reference video, version by version (four versions saved as side-by-side frames), until the layout, answer pills, countdown bar and end screen sat very close to the reference.
- Question text of very different lengths has to fit the frame, and thumbnails need the right words emphasised.
A text-fitting module sizes each question to its frame, and thumbnail keywords are picked automatically using multilingual stop-word lists.
- Assembling a long video quickly.
Segments are rendered separately and concatenated with stream copy instead of a second full encode.
The result
A full test render produced a 65 second 1920x1080 quiz video (three questions plus a 20 second end screen) with real Gemini voice-over, built from a spreadsheet, plus a matching thumbnail and end screen.
The ← and → keys turn the page too.