Build a first video
In this tutorial you build examples/first-video: two lines of narration over footage,
with a title, a closing card and captions. Nothing is bought or recorded. The media is
generated with ffmpeg, so you see the whole build before you write a video of your own.
What you need
Section titled “What you need”- Python 3.12 or newer.
- ffmpeg and ffprobe on your PATH.
- A clone of the repository, which holds the example:
git clone https://github.com/alegauss/urdidocd urdido1. Install urdido
Section titled “1. Install urdido”pip install urdido2. Make the example’s media
Section titled “2. Make the example’s media”urdido never keeps media in git, so the example makes its own: a tone in place of each narration take, and a test pattern in place of the footage.
python examples/first-video/make_media.pyThis writes narration/en/intro.mp3, narration/en/outro.mp3 and
footage/src/pattern.mp4 inside examples/first-video/.
3. Check the declaration
Section titled “3. Check the declaration”urdido check examples/first-video/video.tomlIt prints passes. A misspelled key would be named here, with the nearest valid one.
4. Build it
Section titled “4. Build it”urdido build examples/first-video/video.toml --language enThe build writes into examples/first-video/video/:
first-video.en.mp4, the video;first-video.en.srt, its captions;first-video.en.qa.json, what the final check measured.
What the declaration says
Section titled “What the declaration says”video.toml names the video and its language, says it is an explainer (narration over
shots), and points at three things:
script.json: each line of narration, by take (intro, chapters,outro);shots.json: what plays under each take, by source and start second;narration/: the takes, one folder per language.
Next steps
Section titled “Next steps”To make it your own, change the lines in script.json, buy real takes (see
Narrate a video), and put your footage under
footage/src/.
- Declare and build a video gives the order of work.
- The declaration lists every key.
- Source kinds explains the other kinds of video.