Skip to Content
GuidesThe EmulatorRecording the screen

Recording the screen

Klive records the emulator’s screen and sound as a video file, for gameplay clips, tutorials or a demonstration of your program. It can also record the IDE and the emulator side by side.

💡

FFmpeg is bundled with Klive, so there is nothing to install. On a platform for which no FFmpeg build is bundled (such as Windows on ARM), the record button and the video items are hidden.

Record in three steps

Choose the format

Machine › Record › Recording Settings… opens the Recording page of the Settings. Choose the format, quality and frame rate there: they are locked while a recording runs.

Arm the recorder

Click Start video recording on the emulator toolbar, or choose Machine › Record › Start Video Recording. If the machine is not running, the recorder is now armed: the button’s tooltip says Ready – waiting for machine to run.

Run the machine

Start or continue the machine. Recording begins with its first frame, and the tooltip says Recording… (click to stop).

To finish, click the button again (or choose Machine › Record › Stop Video Recording). The file is written at once.

The record button’s states

StateTooltipWhat happens
IdleStart video recordingA click arms the recorder, or starts recording if the machine runs.
ArmedReady – waiting for machine to runRecording starts when the machine runs. A click cancels.
RecordingRecording… (click to stop)Frames and sound are captured. A click stops and saves.
PausedRecording paused (click to stop)The machine is paused (for example at a breakpoint), or you paused the recording.

The button’s arrow (Recordings) starts the IDE + Emulator recording and opens the recording settings.

Pausing

  • When the machine pauses (a breakpoint, a step, Pause), the recording pauses with it and continues when the machine runs again.
  • Machine › Record › Pause Video Recording and Continue Video Recording pause the capture while the machine keeps running, to leave out a part you do not want.

The file stays open during a pause, so the video continues without a break.

Recording options

These are on the Recording page of the Settings and can be changed only while no recording runs.

OptionChoices
FormatMP4 (H.264 + AAC, the default): plays everywhere. WebM (VP9 + Opus): for the web. MKV (H.265 + AAC): the smallest files, for modern players.
QualityBest compression (the default, FFmpeg CRF 18): near-lossless, moderate files. High (CRF 10). Highest (lossless) (CRF 0): very large files, for editing later.
Frame rateThe machine’s own (the default: 50 fps on a PAL machine, 60 on NTSC), or Half, which keeps sound and picture in step at half the size.
⚠️

Lossless recordings are enormous: a minute of a ZX Spectrum can take several hundred megabytes.

The machine’s sound (beeper, AY chips and the rest) goes into the same file. A machine that makes no sound gives a silent video.

Recording the IDE and the emulator together

To show your code and the running machine in one video, record both windows side by side: choose Machine › Record › Start IDE + Emulator recording, or press Ctrl+Shift+F7 (the Control key on macOS too). Both window titles show ● REC. The same command or shortcut stops it. The IDE window must be visible to start.

This recording runs on the clock, not on the machine: it starts at once and keeps recording while the machine is stopped or paused, carrying silence while the machine makes no sound.

The two windows are placed next to each other in the video, wherever they are on your screen. The IDE + Emulator recording group of the Recording settings has:

OptionDefaultWhat it does
IDE positionLeftWhere the IDE goes: Left, Right, Top or Bottom of the emulator. The smaller window is centred along the shared side, on your theme’s background.
Include the pointerOnDraws the mouse pointer while it is over either window.
Show mouse clicksOnDraws a ring around the pointer while a button is held, in the accent colour for the left button and the secondary accent for the right. Needs Include the pointer.
Full resolution (HiDPI)OffRecords at the display’s full pixel density: larger files and more work for the encoder.

The format and quality apply here too; the frame rate is 30 fps (15 with Half). A window resized during the recording is scaled to the space it had at the start.

Only one recording runs at a time: while one runs, the other’s start item is unavailable.

To change the shortcut, set shortcuts.recordIdeEmu with the set command, for example set -u shortcuts.recordIdeEmu "CmdOrCtrl+Shift+R". See Keyboard shortcuts.

Where the files go

Each recording is written to KliveExports/video in your home folder, named after the time it started:

~/KliveExports/video/recording_YYYYMMDD_HHMMSS.mp4

Tips

  • Arm before you start. The recording then has the machine’s very first frame.
  • Keep long recordings small with Half and Best compression.
  • Editing later? Record lossless, in MKV for the smallest lossless file.
Last updated on