Media and inputs

Videos and sounds

Play the videos and sounds of your library, and see what a sound holds.

Videos and sounds of the opened folder show in the explorer with their own colours (blue for a video, violet for a sound), and open in a tab like an image does.

Videos: mp4, webm, mov, m4v, ogv. Sounds: wav, mp3, ogg, flac, m4a, aac, opus.

The player

The video fills the viewer. The toolbar has Play / Pause, Mute, a slider along the whole width to move through the file, and the time. Space plays and pauses while the viewer has the focus (click it first).

Loop (on by default) plays the file again from its start with no gap: the sound of the next turn is handed to the audio clock before the end of this one and the pictures are decoded ahead, so a video made to loop (see Loop check) loops seamlessly. A video the computer cannot decode itself is left to the browser's own player, whose loop restarts the file and leaves a gap of some milliseconds of sound.

For a sound, the viewer draws the waveform; click or drag on it to go to that moment.

The Info section of the inspector tells what the file holds: the duration and the size of the picture for a video; the duration, channels, peak and average level (in dB) for a sound, and its sample rate when it is a WAV file.

Under the explorer, the Gallery lists the Videos and the Sounds of the folder after the images. Click one to open it.

Using them

A sound of the library is offered by the audio and audioFFT inputs, in the Library group of the choice, next to the sounds Studio brings and the microphones. A video or a sound is never imported into a shader, and is not counted as unused: only images are.

Large files

Images have no size limit. A picture is read whole, however large (a 4K picture of 32-bit floats weighs 130 MB), and what it takes is kept in check instead:

  • A TIFF, an OpenEXR or a Photoshop file is decoded apart, in a worker that ends with the job: what the decoding took goes back to the system at once, and the window does not freeze meanwhile. One picture at a time.
  • The pictures the viewer, the previews and the shaders hold are kept within a budget, Preferences, Limits, Image cache (512 MB by default). When it is exceeded, the pictures not used for the longest are let go and read again when needed. The picture of an open tab is never let go, and closing a tab lets its picture go at once.
  • A picture that would take more than about a third of the memory of the computer to open (the size in its header tells) is not opened until you click Open anyway.
  • A picture the computer has not the memory for says so; it never takes the window down with it.

A video is read as it plays, bit by bit, whatever its size. Sounds are read whole, so they have limits. Preferences, Limits sets them:

LimitDefaultFor
Image cache512 MBWhat the pictures kept for the viewer, the previews and the shaders may hold together. Not a limit on a picture.
Largest sound to play256 MBThe viewer. A video has no limit: it is played as it is read.
Largest sound for an input64 MBAn audio input, and the waveform: a sound is decoded, and takes many times its size in memory.
Largest file to save64 MBA save, a snapshot or a new file: a pipeline carries the images it holds.

The limits go from 1 to 1024 MB (the image cache up to 32 GB). A sound over its limit is not opened, and the viewer says so; a sound too large for the waveform still plays.