Video page

The Video page

The page has four groups:

  • Picture - Fit (Stretch, Keep ratio or Integer scale), Border, Side fill, Display with the button for the look’s settings, Bezel, Palette with the button for the Palette Editor, and on the right the window scale (Scale x1 to Scale x6), Fullscreen, VSync, Flat screen, Frame skip and Grayscale. The scale, Fullscreen, Fit, Side fill, the bezel, the palette, the look and Flat screen are the same settings as in the View menu, where Fit is Keep Aspect Ratio and Integer Scale. See View menu, and Display for the looks and their settings. For VSync see VSync, and for Frame skip see Frame skip.

  • Anti-flicker - see Anti-flicker.

  • Screenshots - see Screenshots.

  • Recording - video recording through FFmpeg. See Recording.

Side fill

Side fill sets what fills the room that the picture leaves free in fullscreen or in a maximized window: Border + black, Border + stretched edges, Border + mirror, Border + letterbox, Black, Stretched edges, Mirror or Letterbox. It is the same choice as View > Side Fill (see Fullscreen). The button beside it opens five sliders. The window shows every change at once. Defaults puts every slider back where it starts, and Cancel puts back what was there before.

The side fill settings

  • Blur - how soft the fill is, from crisp to a wide glow. At Off, the slider’s left end, Stretched edges is sharp: every row of the picture’s edge dots runs on to the window’s edge unchanged. Mirror and Letterbox treat Off as the first step. Stretched edges continues the screen itself: the look draws it, so its scanlines and mask run on past the picture with no seam, at any blur. A shader of your own draws there whatever it draws past the picture’s edge (see config/shaders/README.md);

  • Brightness - how bright it is beside the picture;

  • Fade - how much darker it gets towards the screen’s edge;

  • Edge - how gently the picture runs into the fill. With Letterbox, it also sets how wide the carried-out edges run into the blown-up screen (at 0 the two meet in a hard line);

  • Stretch - for Mirror only: it draws the reflection out like pulled rubber. Next to the picture the reflection is as it is, and it gets wider and wider towards the screen’s edge, with its far part going off the screen. At the left end of the slider it is a plain reflection.

The button is grayed out with Black and Border + black. Without OpenGL, you can pick only these two.

With a look on, the fill is as bright as the picture: Mirror and Letterbox take the picture as it is shown, including a bent screen and its round corners.

Bezel

Bezel draws a monitor’s cabinet around the picture: None; Frame - a slope around the screen and a narrow dark frame; Themed Frame - the same in the window’s own color, in the style chosen on the Appearance page; Dark Monitor or Beige Monitor - a whole cabinet with a dark insert around the screen. It is the same choice as View > Display > Bezel. The slope shows the picture’s reflection, and with a curved look its opening bends as the screen does.

As soon as the bezel is on, the whole cabinet is in the window. A window at a scale’s own size grows to make room for it. In fullscreen, or in a window of another size, the picture gets smaller.

The bezel settings

The button beside the list, and View > Display > Bezel > Settings…, open its settings. The window shows every change at once.

  • Depth - how deep the screen sits behind the cabinet’s face: the slope’s width;

  • Black rim - how wide the black rim between the picture and the slope is. At first it is a thin line of shadow. At 0 there is none, and the slope starts at the picture;

  • Glass corners, Slope corners - how round the corners of the glass and the outer corners of the slope are. At the same value the two run side by side, the slope’s width apart. A lower Slope corners makes the outer corners sharper, down to square at 0. If both are small, the slope’s sides meet in a sharp line, as on later monitors. The picture’s corners are rounded with the glass’s, whatever the look;

  • Cabinet corners - how round the cabinet’s own corners are;

  • Reflection - how much of the picture’s light the cabinet shows;

  • Zoom - brings you closer to the screen: the cabinet runs past the window’s edges, up to the point where the picture is as big as without a bezel;

  • Fill inside - the cabinet is as wide as the window, its glass takes all the room the cabinet leaves, and the side fill goes inside the glass around the picture. It is off at first, so the cabinet fits the picture and the side fill is around the cabinet.

Without OpenGL there is no bezel. A shader file kept under Legacy shaders does not get one either. Cabinets of your own are small text files: see res/bezels/README.md.

VSync

VSync in the Picture group waits for the screen’s refresh, so the picture never tears. It is off by default.

If the machine’s frame rate is close to the screen’s - within 4.5 % of it, or of a half or a third of it - the machine runs at the screen’s rate, and every frame stays on the screen for the same number of refreshes. The motion is then even: a ZX Spectrum Next at 58.15 Hz on a 60 Hz screen scrolls without the jerk it otherwise shows once or twice a second. The machine then runs a few percent faster or slower than the real one, and its sound is higher or lower by as much. While this is so, the status bar says VSync beside the frame rate. When it starts, a note on the picture gives the rate.

Screen

Pentagon, 48.83 Hz

48K, 50.08 Hz

Next in 60 Hz mode, 58.15 Hz

50 Hz

50 Hz, +2.4 %

50 Hz, -0.2 %

own rate

60 Hz

own rate

own rate

60 Hz, +3.2 %

100 Hz

50 Hz, each frame twice

50 Hz, each frame twice

own rate

120 Hz

own rate

own rate

60 Hz, each frame twice

144 Hz

48 Hz, each frame three times, -1.7 %

48 Hz, each frame three times, -4.2 %

own rate

At its own rate, a machine is shown as it would be without VSync, only without tearing: a 50 Hz machine on a 60 Hz screen moves as unevenly as it would on a 60 Hz television.

  • Fast forward, slow motion and rewind run at their own speed, and the screen’s rate comes back after them.

  • A video recording is the same with VSync and without it: the Next above is recorded at its own 58.15 frames a second and its own pitch, or as the 50/60 FPS and Keep pitch settings in Recording say.

  • On Windows, fullscreen with VSync goes through the desktop’s compositor, which adds the frame of delay that Low latency saves otherwise (see Input lag).

  • A screen with a variable refresh rate (G-Sync, FreeSync, Adaptive-Sync, ProMotion) shows each frame when it is ready, so VSync adds nothing there. Leave it off. On macOS the machine keeps its own rate on such a screen.

  • On Linux VSync needs OpenGL and takes effect after a restart.

Frame skip

Frame skip in the Picture group is for a computer that is too slow for the machine it runs. While the machine falls behind its own speed, a frame is now and then left undrawn. The machine still runs that frame, but the picture is not made, which takes much less time. The machine and its sound keep their speed, and the picture changes a little less often. It is off by default.

  • At most one frame in three is left undrawn, so a sprite that flickers on every other frame still shows both of its pictures.

  • While the computer keeps up, every frame is drawn.

  • Every frame is drawn at a speed other than normal, while a video is recorded, with run-ahead (see Input lag), in the debugger, and while a breakpoint may stop the machine.

  • While frames are being left undrawn, Anti-flicker is off, because the computer is already short of time. It comes back a few seconds after the last frame left out.

If the machine runs well under its frame rate for a few seconds at normal speed and Frame skip is off, Xpeccy+ offers to turn it on. It does not offer this where Frame skip would draw every frame anyway (the cases above). With Not Now it asks again on the next start, and with Don’t Ask Again never.

Anti-flicker

Some programs show more colors than the machine has by switching between two or three pictures every frame. On a CRT television this looked like one steady picture, but on a modern screen it flickers. Anti-flicker blends the frames together again. Its settings are in the Anti-flicker group of Options > Video:

  • Intensity - how much of the previous frames is mixed into the picture. 0% (off) turns anti-flicker off; it is off by default.

  • Mode - which pixels are blended, and how many frames; see the table below.

  • Gamma - how the colors are mixed. 2.2 is close to a CRT; 1.0 mixes them linearly. Values from 1.8 to 2.4 are usual.

  • Look ahead - only for the adaptive modes: the machine runs two frames ahead in the background, so a flicker is recognized sooner after it starts. It costs some extra CPU time.

“Fullscreen” in the names of the modes means the whole picture, not fullscreen view:

Mode

What it does

2-frames (fullscreen)

Every pixel that changed since the last frame is mixed with its color in that frame, all over the picture. Good for a still two-frame picture; a moving picture gets trails.

2-frames (adaptive)

Only the pixels that keep alternating between the same two colors for several frames are mixed. Moving parts stay sharp.

3-frames (fullscreen)

The last three frames are mixed everywhere, for pictures made of three frames in turn (red, green and blue).

2-/3-frames (adaptive)

Finds both kinds by itself - three-frame pictures and two-frame flicker - and leaves everything else alone. The default.

The Anti-flicker action switches the intensity in turn between 50%, 100% and off, and the picture shows which one. You set its key on the Hotkeys page of Options.

Anti-flicker is not applied in fast mode. Anti-flicker in Under the Hood tells what the modes look for, and where anti-flicker is better left off.

Screenshots

The Screenshots group on the Video page of Options:

  • Source - RAW frame takes the machine’s picture alone, with no shader. Screen takes the picture as the window shows it, with the shader, at the size it has there, and with the Side fill beside it if there is one (black around the picture is left out). The indicators and messages over the picture are left out too. Screen needs the OpenGL view. The default is RAW frame.

  • Scale x1 … Scale x4 - the size of a RAW frame picture. Scale x1 gives one pixel for each dot of the machine: 256×192 for the screen alone, and more with as much border as the Border slider shows. A picture in a high-resolution mode (Profi, ATM and ZX Evo text and hi-res modes, the ZX Spectrum Next’s 640-dot Layer 2) keeps all its dots, with every line doubled so that the picture is not squashed: 512×384 for a 512-dot screen. The default is Scale x1.

  • Combo … each … frames - how many pictures Screenshot Series takes, and how many of the machine’s frames apart.

  • Output - the kind of file (see below) and the folder for the files. The button picks the folder; by default it is your home folder.

  • Name - the file name template, the same as the video’s (File name template) with one more key, %n: a number, 001, 002 and so on, the first one not yet taken in the folder. If the field is empty, the template is xpeccy-plus_%d_%t_%image_%n. With %image %n, the shots of a game are named after it and numbered: Tetris GB 001.png, Tetris GB 002.png.

  • No border - the screen only, without the border around it.

Under No border, the page shows the format and the size a picture gets with these settings, such as PNG, 352×288. A high-resolution picture comes out twice as big.

Format

What is saved

PNG, BMP, JPG

the picture, as Source and the size say

SCR

the 6912 bytes of the machine’s screen memory, to load back on a Spectrum

Hobeta

the same screen memory as a Hobeta file (.$C), which goes onto a TR-DOS disk as screen and loads back with LOAD "screen" CODE

SCR and Hobeta hold only the standard Spectrum screen. In another video mode (Profi, ATM, ZX Evo and TSConf modes of their own, the ZX Spectrum Next), no file is saved, and the message says not the ZX screen: no SCR.

Recording

The Recording group on the Video page of Options:

  • Source - RAW frame records the machine’s picture alone, with no shader and no indicators. Screen records the window as you see it, with the shader.

  • Scale - how many times bigger the video is than the machine’s picture, from Scale x1 to Scale x8 (for RAW frame only).

  • Real FPS, 50 FPS, 60 FPS or 50/60 FPS - Real FPS records at the machine’s own frame rate, which on most machines is a little different from 50. 50 FPS and 60 FPS record at exactly 50 or 60 frames per second, and the sound is adjusted to match. 50/60 FPS uses 60 for a Next in its 60 Hz modes and 50 for everything else. If a Next switches between 50 and 60 Hz during a recording, the video keeps the rate it started with.

  • Output - the folder for the videos. By default it is your system’s videos folder.

  • FFmpeg - see Getting FFmpeg.

The size and frame rate of the video are shown beside these settings. The Border setting of the Picture group changes the size too.

Advanced settings opens Recording: Advanced Settings:

  • Video - Container (MP4 or MKV), Codec, Preset (slower makes a smaller file, but can slow the machine down), Quality (CRF) (lower is better; 18 looks lossless), Color, and Blend up to 60 fps. The codecs are H.264 and H.265, AV1 and the graphics card encoders (NVENC, AMF, QSV) when your FFmpeg and computer can use them, and FFV1, lossless, which is always saved as MKV.

  • Sound - Codec (Auto, AAC or Opus) and its bit rate. Keep pitch at 50/60 FPS keeps the notes in tune when the sound is sped up or slowed down to match.

  • File name template - the name of the video file. The name it would give right now is shown under it.

  • Auto recording - see below.

  • FFmpeg - Extra options for the encoder, Video override and Sound override to replace the options Xpeccy+ sets, and the whole FFmpeg command as it will run.

The file name template can contain these keys:

Key

Becomes

%d

the date, 20260929

%t

the time, 153012

%image

the name of the file in use (snapshot, tape, disk or divMMC card), or the machine’s name when there is none

%machine

the machine’s name

The default is xpeccy-plus_%d_%t_%image. The name is made when the recording stops, so %image is the last file that was in use.

Auto recording

Auto recording starts and stops a video by itself, to catch a demo or a game from its first frame.

  • Autostart at - starts a video when the condition is met: Code in RAM (the first program code the machine runs from RAM, which is where a loaded program starts), or the CPU reaching an address: PC ==, PC >= or PC <=, with the address beside it (#8000, $8000, 0x8000 or 32768). A video is started this way once after each reset. If you turn this on in Options, it waits for the next reset.

  • Autostop at - stops any video, including one started by hand: at a Reset, or when the CPU reaches an address as above.

Record Video, used by hand, always overrides these settings: after you start or stop a video by hand, auto recording does not start one again until the next reset.

The ? button lists the command-line switches for recording:

  • --video-out <file> - record from the start into this file. .mp4 or .mkv picks the container.

  • --video-auto, --no-video-auto - turn auto recording on or off for this run, with the conditions set in Options.

  • --video-autostart <at>, --video-autostop <at> - the conditions for this run: ram, reset, or an address such as ==#6000 or ">=#8000".

They apply to that run only. See Command line.