Video Recorder

Records a video flow in a file.

Settings

video in

Video input flow(s).

process time

Total time used for the calculation of the module.

width

Width of the recorded video, from 50 to 3840 pixels (default 720). The input is resized to width x height, keeping its aspect ratio.

H.264 records even sizes only: in the formats that record H.264 (see file name), an odd width is recorded one pixel wider, the last column of the image repeated. .hap records multiples of 4: its width is rounded up to the next one the same way. The other formats record the width as it is.

height

Height of the recorded video, from 50 to 2160 pixels (default 480).

As for the width: in H.264 an odd height is recorded one pixel higher, the last row of the image repeated, and in .hap a height that is not a multiple of 4 is rounded up to the next one.

framerate

Framerate of the recorded video, from 10 to 60 fps (default 25).

The input video flow framerate can vary depending on the Usine processing chain. To estimate the real incoming framerate take the real framerate value.

In other words, you must set the framerate to real framerate displayed on the module.

MPEG-1 (.mpg, .mpeg) records at 24, 25, 30, 50 and 60 fps only, and MPEG-2 (.vob, .m2ts, .ts, .m2t) at 10, 12, 15, 16, 18, 20, 24, 25, 30, 32, 36, 40, 45, 48, 50 and 60 fps only: at another framerate the recording does not start.

path

Path of the output video file.

file name

File name of the video, located in the path folder. Its extension, one of those below in lower or upper case, gives the format and the codec of the video; a name with another extension, or none, gets .mp4 (.mov on macOS) added.

  • .mp4, .mov, .m4v, .mkv: H.264, the recommended formats. .qt is recorded as a QuickTime movie (as .mov), .m4p as an MPEG-4 file (as .mp4).
  • .h264, .264: a raw H.264 stream.
  • .hap: HAP (DXT1 textures, without alpha) in a QuickTime movie.
  • .avi: MPEG-4 part 2. .wmv: Microsoft MPEG-4 v3. .flv: Sorenson H.263.
  • .mpg, .mpeg: MPEG-1. .vob, .m2ts, .ts, .m2t: MPEG-2.
  • .webm: VP9.
  • .mjpeg: a raw Motion JPEG stream.
  • .gif: an animated GIF of a fixed palette of 256 colors, dithered.

.mjpeg has no time stamps and does not keep the framerate: FFmpeg reads it at 25 images per second, whatever the framerate. .h264 has no time stamps either, but the H.264 encoder writes the framerate in its header: FFmpeg and the Video Player read it at that rate. GIF times its images in hundredths of a second, and most players (FFmpeg among them) show an image of less than 2 hundredths for 10: above 50 fps a GIF plays slower.

The other extensions do not choose a format: usine.jpeg, usine.jpg or usine.txt is recorded as usine.jpeg.mp4, usine.jpg.mp4 or usine.txt.mp4 (.mov on macOS).

The FFmpeg of Usine for Apple silicon has no libx264, libvpx or HAP encoder: there .mp4, .mov, .qt, .m4p and .mkv record MPEG-4 part 2, .m4v, .h264 and .264 record H.264 with the VideoToolbox encoder of macOS, and .webm and .hap do not record. On a Mac with an Intel processor every format records as listed above.

record

Starts the recording when ON, stops it and closes the file when OFF. The settings above are read when the recording starts and cannot be changed during it.

At the stop, the images that the encoder still holds are written, then the file is closed, in the background: the stop does not wait for them, and the file is complete a moment later, longer with H.264 and above all VP9 at large sizes, whose last images take a while to encode. The video lasts the number of recorded images divided by the framerate (for .mjpeg and GIF, see file name). Deleting the module while it records stops the recording too. When Usine quits, shuts down or restarts the computer, it waits for the files still being completed, a minute at most.

A recording that cannot start (an encoder that refuses the settings, a file that cannot be created) records nothing and writes the error in the trace panel. A recording started on the file of the previous one waits until that file is complete, a minute at most: when it takes longer (VP9 at large sizes), the recording does not start.

time

Current recording time in milliseconds.

real framerate

Real framerate of the incoming video flow. See remarks about framerate above.

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