Video Snapshot

Saves the incoming video frame as an image file (PNG, JPG or BMP), on a trigger or one frame out of N, and outputs the name of the file written. For photo booths, calibration captures and image sequences without a codec.

Example: a Test Pattern into Video Snapshot, a button on snap, and the outlets file name, written and count shown by a text fader, a led and a fader. On the right, the control panel of the patch after three snaps: the name of the last file and the count 3.

The files are written by a thread of the module, so the video never waits for the disk. When the module is deleted, the file being written is finished and the frames still waiting are dropped. At most 16 frames, and 256 MB (8 frames at 3840 x 2160), wait to be written: a frame taken while this queue is full is not saved and is counted in dropped. A 3840 x 2160 PNG takes about 0.75 s to write, so a PNG sequence of every frame at that size drops most of them: use JPG or a larger every.

Settings

video in

Video input flow(s).

process time

Total time used for the calculation of the module.

snap

Saves the next frame that arrives, the current one when the input is still. When no frame arrives (its source is OFF, or video in 1 is not connected), nothing is written: the snap waits for the next frame, saved as soon as the source is ON or connected.

sequence

When ON, saves the incoming frames: the first one after it is switched ON, then one frame out of every. It is not saved with the patch: it is OFF when the patch is loaded.

every

In sequence mode, saves one incoming frame out of N, from 1 (every frame, the default) to 1000 frames. It counts the frames that reach the module: with a video of 60 frames per second, every 10 saves 6 files per second.

folder

Destination folder. Empty (the default): the Usine Record sub-folder of the video folder of the computer, or of the first video library folder of the setup folders tab when it is set. The folder is created when it does not exist. When a file cannot be written, in a folder without write access for example, the error is written once in the trace panel and the frame is not counted.

prefix

Start of the file names (snapshot by default). The characters that a file name cannot hold, such as a colon, a star, a question mark or a slash, become an underscore. An empty prefix gives names without the dash.

prefix = a:b*c?
file   = a_b_c_-000001.png

naming

How the files are named (counter by default).

  • counter: the prefix, a dash and a number of 6 digits. The number starts at 1 for each series (folder, prefix and format) and skips the names that exist: a file is never overwritten.
  • date and time: the prefix, a dash, then the date and the time to the millisecond. -1, -2 ... are added to a name that exists.
counter       = snapshot-000001.png, snapshot-000002.png ...
date and time = snapshot-20261126-194605-952.png

format

File format (png by default).

  • png: lossless; keeps the transparency of a frame that has alpha.
  • jpg: compressed with quality: a 3840 x 2160 frame takes about 255 KB at quality 50, against 4.5 MB in PNG.
  • bmp: uncompressed, 33 MB at 3840 x 2160.

JPG and BMP files are opaque: the transparent parts of a frame are flattened onto black.

quality

Quality of the JPG files, from 1 to 100 % (default 90): a higher value gives a better image and a larger file.

reset

Sets the counter back to 1, and count and dropped back to 0. The next file still takes the first free name:

snap, snap  = snapshot-000001.png, snapshot-000002.png
reset, snap = snapshot-000003.png, count = 1

file name

Full path of the last file written.

written

Pulses once for each file written.

count

Number of files written since the last reset.

dropped

Number of frames not saved since the last reset, because the queue was full or the memory for their copy was missing.

pending

Number of frames waiting to be written, the one being written included, from 0 to 17 (9 at most at 3840 x 2160).

Common Settings

info

show manual

Button. Opens the manual page of the selected object (or of its parent module for a control) in the web browser. If no page exists for this object, an error is traced in the trace panel.

For more details about information/help creation, see create-help-file.

description

Free multi-line text attached to the module, saved with the patch. When it is not empty, it is shown as the hint of the module (mouse over the module header in the patch) in place of the default module hint, even when the module hints are disabled.

ID's

visible only in god mode, see setup-panel-tab-expert.

unique ID

Read-only, not saved. Current private numeric ID of the object, used internally to identify it (for example as the target of a bind ID).

preset ID

Read-only, not saved. Private ID used to store and recall the values of this control in presets.

recreate ID

Button. Generates a new unique ID, original ID and preset ID for the object. Use it if you experience difficulties in Polyphonic mode or if two objects share the same ID. Preset values and binds referring to the old IDs are lost.

Object Remote Address

absolute

Read-only, not saved. Absolute address of the object in the Usine objects tree, built from the workspace root. This is the address to use to reach the object from scripts, the objects panel or remote messages. Only shown for objects that are registered in the objects list. See objects-address.

local

Read-only, not saved. Address of the object relative to the current patch, valid inside that patch only. See objects-address.

user addr

Free user-defined address for the object (empty by default). When set, the object is also registered in the objects tree under this name, so it can be reached independently of its position in the workspace (the value is also reported in the mouse-over and mouse-down chunks). Changing it rebuilds the objects list. Only available on objects that support a user address. See objects-address.

See also

version 7.0.250921

Edit All Pages