Skip to content
urdidourdidoDocs

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.

  • Python 3.12 or newer.
  • ffmpeg and ffprobe on your PATH.
  • A clone of the repository, which holds the example:
Terminal window
git clone https://github.com/alegauss/urdido
cd urdido
Terminal window
pip install urdido

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.

Terminal window
python examples/first-video/make_media.py

This writes narration/en/intro.mp3, narration/en/outro.mp3 and footage/src/pattern.mp4 inside examples/first-video/.

Terminal window
urdido check examples/first-video/video.toml

It prints passes. A misspelled key would be named here, with the nearest valid one.

Terminal window
urdido build examples/first-video/video.toml --language en

The 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.

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.

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/.