: Libraries like pygltflib allow you to manipulate glTF 2.0 objects programmatically before rendering.

: Use the command startmovie h264 to export directly to a video format, or export as a sequence of TGA images and WAV audio for higher quality.

If you are trying to turn a game recording (demo) into a video:

To "produce" the file generally refers to one of two things: exporting a Team Fortress 2 (TF2) demo as a video file or converting a glTF 2.0 3D model into an MP4 animation. 1. Converting TF2 Demos to MP4