Skip to main content

Install walkthrough video: recipe

This folder makes the install walkthrough video from a real screen capture. The capture comes from one automated test run of the installer in a virtual machine. Nobody stages a screen. The test harness drives the installer, and the capture shows each screen as it happens.

Files​

  • segments.yaml: the storyboard. It lists the cuts, speeds, captions and chapters.
  • build.py: cuts the capture, adds the captions, and writes the video, the subtitles, the chapters and the thumbnail.
  • marks/: the index of each capture. It gives the time of each stage screenshot that the harness took. The storyboard cuts by these names, not by fixed times.
  • recording/: the downloaded captures. Git ignores this folder.
  • SOURCES.md: the test run that the footage comes from.
  • out/: the built files for the upload.

Capture a new run​

  1. Start the Image installer workflow in tuna-os/tunaOS. Set record to true and publish to false:

    gh workflow run image-installer.yml -R tuna-os/tunaOS \
    -f cell=albacore:gnome -f boot=usb -f publish=false -f record=true
  2. Wait for a green run. Download the capture in 3 days or less. After 3 days, GitHub deletes it.

    gh run download RUN_ID -R tuna-os/tunaOS \
    -n image-installer-albacore-gnome-recording -D recording
    cp recording/*.json marks/
  3. Put the new run ID in SOURCES.md and in meta.footer of segments.yaml.

Build​

python3 build.py --check # print the cut list only
python3 build.py # write out/

You need Python 3 with Pillow and PyYAML, the DejaVu fonts, and ffmpeg 6.

Change the video​

  • To change a caption, a speed or a chapter, edit its row in segments.yaml.
  • A new run has new times, but the mark names stay the same. Run --check and make sure that each cut starts and stops on the correct screen.
  • If the installer gets a new page, the harness adds a new mark. Add a row for it.
  • Watch the full mp4 before you upload it.

Upload checklist​

Upload out/tunaos-install-walkthrough.mp4 to YouTube. Add out/walkthrough.srt as subtitles and out/thumbnail.png as the thumbnail. Put out/chapters.txt in the description. In the description, say that the video shows a virtual machine during an automated test run.