Media and inputs

Export a video

Turn a shader or a pipeline into a video (MP4, ProRes): rendered frame by frame, or recorded live with the camera and the microphone.

Any shader or pipeline can become a video: File, Export Video…, or the red dot in the toolbar of the preview. The file is an MP4 (H.264, with AAC sound when there is some), which most players and editors can open, or, with ISF Studio Pro, a ProRes video in a .mov, for editing.

A ProRes from Studio is a 10-bit file of an 8-bit picture. Studio draws the picture in 8 bits per channel, as the preview shows it, so the ProRes has the format and the quick editing of a ProRes, but neither more tones than the preview, nor a high dynamic range, nor a transparency. A smooth gradient can show bands that a 10-bit picture would not. The 4444 profiles are 4:4:4, which spares the color of fine edges, nothing more.
Exporting a video is open to every edition up to 1280 × 720 and 10 seconds, as MP4. Any other size or length, and ProRes, need ISF Studio Pro, trial included. See Pricing.

The dialog

SettingWhat it is
FormatMP4 (H.264), or one of the six ProRes (Pro): 422 Proxy, 422 LT, 422, 422 HQ, 4444 and 4444 XQ.
SizeWhen rendering, the size of the preview, a usual size (1280 × 720, 1920 × 1080, 2560 × 1440, 4K, square, portrait) or your own, from 16 to 8192 px on a side. Sizes are even numbers: the formats ask for it. A live recording has the size of the preview.
Frame rate23.976, 24, 25, 29.97, 30, 48, 50, 59.94, 60, 120 or 240 fps. Always constant, never variable.
LengthWritten as HH:mm:ss, up to 24 hours. A shader has no end: you say how long to render. A live recording says how long it lasts at most: you stop it when you want.
DirectionForward, Reverse (from the end of the shader back to its start) or Ping-pong, also called a boomerang (forward to the middle of the video, then back). Only for a render: see Direction.
Warm-upOnly for a render forward of a shader that keeps its state: frames the shader runs first and leaves out of the video. See Warm-up.
LoopCheck loop draws a few small frames and tells whether the end of the video joins its start. Only for a render forward: see Loop check.
QualityFor an MP4: high, medium or low. A ProRes has no choice of quality: each profile has its own rate. The dialog says "up to N MB" before you start, and warns when the disk is too small.
HowRender (frame by frame, the default) or Record live: see below.
SoundRender: one box for each sound of the shader, tick the ones to put in the video. Record live: a Sound under the video menu, to pick a microphone or a sound file. It starts as the sound the shader is listening to.
Save asNext to the document by default (name 2.mp4 if the name is taken), or Choose….

The settings most renders leave alone (Direction, Warm-up, Loop) are folded in the dialog: each one is a line that says what it is set to, and opens when you click it.

Render: frame by frame

A render draws each frame for its own moment: frame 300 of a 30 fps video is what the shader shows at the tenth second, however long the computer took to draw it. A heavy shader makes a longer render, never a jerky video, and the same shader with the same settings gives the same video every time. It is usually faster than the video lasts.

While it renders, Studio stays usable: the frames are drawn a few at a time so the interface does not freeze, even at 4K.

  • Images and videos that feed the inputs are used as they are. A video plays from its start, at the pace of the video. Every image the shader reads is loaded before the first frame, so the first frames are not drawn without it.
  • Sounds are analysed for each frame, so a spectrum follows the music exactly. The sounds you ticked are mixed into the video.
  • There is no alpha in the file, ProRes 4444 included: a shader is drawn as the preview shows it without a background, so a transparency comes out opaque.

A render cannot replay what only happens once. A shader that listens to a camera or a microphone is not rendered: the dialog switches to Record live by itself.

Inputs bound to the mouse, to a MIDI control or to an OSC address do not force it: a render takes the values they have at that moment and holds them for the whole video. To film them move, choose Record live.

Direction

A render can run the shader the way it runs, backwards, or forward and back:

  • Forward is the shader as it runs.
  • Reverse draws the last frame first, and the first frame last.
  • Ping-pong goes forward until the middle of the video, then comes back. The length you choose is the length of the video: a ping-pong of ten seconds shows five seconds of the shader, forward, then back. The way back stops one frame before the start, so when the video plays again nothing is shown twice: it loops without a jump.

A shader that keeps what it drew from one frame to the next (a persistent pass: a feedback, a trail, an accumulation) can only be rendered forward: each of its frames depends on all the ones before, so it cannot be drawn backwards. Reverse and Ping-pong are greyed out for it, and the dialog says why. Render it forward and turn the video round in an editor if you need to.

A sound the shader listens to is analysed once before the render, so a spectrum follows the music exactly in any direction.

The sound in the video. When the direction is not forward, a box under Sound says which way the sound goes. Ticked, the sound goes with the picture: backwards in a reverse, forward then back in a ping-pong, without a click at the turn. Not ticked (the default), the sound plays forward from the start of the video whatever the picture does.

Warm-up

A shader that keeps what it drew from one frame to the next (a persistent pass: a feedback, a trail, an accumulation, a smoothing of the sound) starts from empty buffers: its first frames are black, or without the trail or the smoothing that the following ones have. For such a shader, the dialog shows Warm-up (frames).

The shader runs that many frames before the video starts and leaves them out. The video starts that long into the shader, already running, and the sound starts there too. At 30 fps, 90 frames are three seconds. Try one to three seconds for a feedback or an accumulation; a smoothing of a few tenths of a second needs a few frames only.

  • The frames of the warm-up are drawn, so a render takes that much longer.
  • For a loop, make the length of the video the length of the loop: if the shader repeats over that length, the video repeats too, wherever it starts. A feedback that is not periodic cannot be made to join its end to its start by this alone.
  • It is not offered in a Reverse or a Ping-pong, nor in a live recording, which shows the preview as it plays.

Length that follows the loop

When something in the document comes back to where it began after a while, the dialog offers lengths that are whole turns of it, under Length: a line says what it found (Loop 10 s · Sound music 30 s) and the buttons are 1×, 2×, 3× and 4× the length at which everything has come back at once (the least common multiple, in frames at your frame rate). A click puts one in the field; nothing is set otherwise, and you can type any length. A length that is not a whole number of turns is flagged, because the end would not join the start.

It reads three things:

  • A float input marked as a loop length: tick Length of a loop, in seconds in the input's dialog (or write "LOOP": true in its header). Its value now is the length.
  • The snippets that make a loop (Loop Phase, Loop Crossfade, Ping-Pong): the number wired to their duration, an input (its value now) or a constant. A length that is computed from other nodes cannot be read.
  • Sounds and videos set to loop: their duration.

If the loops never line up within the longest video the edition allows, or one of them is not a whole number of frames at the frame rate (10 s at 29.97 fps is 299.7 frames), the line says so and gives the longest one.

Loop check

For a video that will play again and again, Check loop tells whether the end joins the start. It looks at one loop: the length the dialog found for the loop (see above), else the video. It draws a few small frames and compares them:

  • The jump is the change from the last frame to the first, which is what the eye sees where the video starts again. It is told in normal steps: the change from one frame to the next. About one step is a loop nobody sees.
  • One loop later is how far the shader is from showing its first frame again after the last one. 0 is the same picture.

The answer is one of four: nothing moves, it loops, it almost loops (the join can be seen if one looks for it), or it does not loop. Under it, the check says what in the shader decides it: a persistent pass (a state that has to be forgotten, see Warm-up), FRAMEINDEX, random numbers drawn from TIME, a sound or a video that has to loop over the same length. It cannot tell what a shader does with TIME; that is what the drawn frames are for.

A shader that keeps its state, or listens to a sound, has to be drawn from its first frame. When that would take more than a few seconds the check stops and says so, and tells only what the shader holds: set the length to one loop to check it. Stop ends a check.

Blend the end into the start is for a shader that cannot loop by itself (a feedback that never settles, a camera that travels, a sound that does not join). The last N frames of the video, and their sound, melt into the N frames that came right before the first one, so the last flows into it: no jump of the picture, and no click where the sound starts again (the two sounds are mixed at equal power, sample by sample). The video keeps its length. Those N frames are drawn after the warm-up, so a shader that keeps its state has settled when they are drawn: the render draws the warm-up, then N frames, then the video. Smoothness goes from a straight blend (0) to a soft curve (1). Each of the N frames is a picture kept until the end: in memory while they fit, in a scratch file of the app (removed when the render ends) for a very large video. The most depend on the size and on the room left on the disk: 240 at 1080p, about 190 at 4K, 40 at 8K.

Playing the loop. The file is exact: the sound starts with the first picture and ends with the last one, to the sample (the delay an AAC encoder puts before a sound is measured on your computer and cut off, and what it adds after is dropped). Studio's own player, Loop on, plays it with no gap. Most other players restart the file when it ends, which leaves a gap of some milliseconds (about 13 ms in the browser's <video loop>); that is the player's, not the file's. To loop it for good elsewhere, use an editor that loops a clip on its timeline.

To make a shader loop, give it a phase that goes round over the length of the video: Loop Phase for movements, Loop Value Noise 2D and Loop FBM 2D for noise, Loop Crossfade for a movement that does not repeat.

Record live

Record live films the preview as it plays, in step with the clock: the video lasts as long as the recording. What happens in Studio meanwhile is in the video: a camera, a microphone, a slider you move, an input driven by the mouse, by a MIDI control or by OSC, a video that plays. It is the mode for anything that cannot be replayed.

  1. Open the shader or pipeline, and press the red dot of the preview, or File, Export Video….
  2. Choose Record live, the frame rate and the quality. There is no length to choose: the recording goes until you stop it.
  3. Check the Sound under the video: it starts as the sound your shader is listening to (the source of its audio input), and you can change it or choose None. Then Start recording.

The dialog closes, the preview plays, and a small bar appears at the foot of the window with the time recorded, the file's weight, Pause and Stop. The bar covers nothing you need: play with the controls while it records. The recording goes on until you press Stop, and it writes to the disk all along. The dialog tells about how much a minute weighs and how long the disk could take it; the bar says Recording live with the room left on the disk, in amber under half an hour of recording and in red under ten minutes. It also stops by itself, and keeps what it recorded, if the disk is left with less than 1 GB: the list says so ("the disk was almost full"). The Free edition stops at the longest length it makes.

What to know:

  • The size is the preview's, fixed when the recording starts. To record at another size, change the resolution of the preview first. A size that changes meanwhile is scaled to the first.
  • The camera is in the picture, as the preview shows it.
  • A microphone is recorded as it is heard. Expect a slight delay between picture and sound: the microphone has its own latency. A sound file is laid from the first frame. It starts again at its end until the video ends, as a sound of the preview does; untick Repeat the sound until the end of the video to hear it once.
  • The audio input of the shader is not recorded as such: the Sound under the video is. It starts as the source of that input, so the video holds what the shader listens to.
  • The recording is of the preview that is shown: if you leave its tab so that the preview disappears, the recording ends there and the video is kept.
  • There is no alpha.
  • A ProRes is encoded as you record, straight into a .mov: nothing is recorded as an MP4 first, and there is no conversion at the end. A ProRes takes more work than an H.264, so a computer that cannot keep up repeats some pictures to keep the length right; the Renders section then says some pictures were repeated. Lower the size or the profile, or Render the video when the shader allows it. A ProRes from Studio is a 10-bit file of an 8-bit picture.
  • One live recording at a time, and none while a render goes.

Pause and stop

A render and a recording can both be paused and stopped, from the Renders section or, for a recording, from its bar.

  • Pause holds the render or the recording. The time held is not in the video: a recording paused for a minute resumes right after the last frame.
  • Stop ends it there and keeps the video as far as it went: the file is closed properly and plays everywhere. The line then reads Stopped at 00:00:45.
  • × cancels: the file is not kept. A stop before the first picture keeps nothing either.

The Renders section

At the foot of the right bar, whatever file is open, the Renders section lists the renders. It is framed in amber while one is running. Each line shows a small picture of the frame being drawn, the percentage and the time left (or the time recorded, for a live recording), and what to do: pause, stop, cancel or take it out of the list, play the finished video, or show it in the file manager. Clear finished is in the header of the section.

Renders go one at a time: the others wait their turn. The tab of the document being rendered carries a red dot. The record button pulses while any render goes, and cannot be pressed again for the document that is being rendered.

The file is written as it goes, under a hidden name, and takes its real name only when it is complete. Quitting Studio while a render goes asks you first: quitting cancels it, so stop it first if you want to keep what is done.

Limits

  • One shader or pipeline at a time, as it is in front of you.
  • The formats are MP4 and ProRes. No other format is planned yet.
  • A live recording has the size of the preview and keeps what the computer can draw in time: a heavy shader or a big size makes it repeat frames, never lose sync.
  • In the free edition, a video is an MP4 of 1280 × 720 and 10 seconds at most: a size or a profile that needs Pro is marked Pro in the dialog, and cannot be chosen.
  • The image limit in Preferences, Limits applies to the images that go in a render.