Code used to produce the videos for https://www.youtube.com/@SCOTUSOralArgument
The videos are made by rendering the data using HTML/CSS, saving the frames to image files using puppeteer by screenshotting, and encoding the video using ffmpeg.
Usage: Run
python preprocess.py https://www.oyez.org/cases/2023/22-915
to download the audio and transcript of a particular case.
Then run
./produce.sh
to build the video. Ensure that puppeteer is available. It will also attempt to upload to YouTube which will probably not work if you're not me.