Contents
Getting started
- Welcome to NyrexVJ
- Installing and first start
- The window at a glance
- Your first show in five minutes
Playing visuals
- The clip grid
- Decks and transitions
- Layers and blending
- The Clip window
- Effects
- The Library
- Presets and sessions
- The Master window
Music and motion
Your own content
- Video and image clips
- Your own shaders
- 3D models
- The Clip Creator
- Text, particles and effect chains
- The node effect editor
- Live sources: Spout, NDI and cameras
Output and recording
Live control and shows
- Control: MIDI, OSC and the web page
- Show sync and timecode
- The show timeline
- Stage: DMX, VRSL and VRChat
- Plugins
Reference and help
Manual / Your own content
Live sources: Spout, NDI and cameras
#Spout input
Four clips, Spout Input 1 to 4, show the picture another program sends through Spout, for example Unreal Engine, TouchDesigner or a game. Put one into a cell, select it and pick the sender in the Clip window. Automatic takes the first sender that is not the output of NyrexVJ itself.
The picture is fitted into the layer without stretching and goes through the layer effects like any clip. It reconnects when the sender comes back and shows a placeholder while there is none. If the image arrives upside down, tick Flip the image vertically. Spout works on Windows only.
#NDI input
Four clips, NDI Input 1 to 4, show the picture of another program or computer on the network. NDI senders are listed automatically. Automatic takes the first sender that is not the output of NyrexVJ. NDI needs the NDI runtime, which NyrexVJ does not ship. Install the free NDI Tools from ndi.video. The Clip window has a button for the download page.
#Cameras and capture cards
Four clips, Camera 1 to 4, show a webcam or a capture card. The Clip window lists the cameras with a Refresh button. Resolution and frame rate are requests to the device, and cameras answer with their closest mode. Cameras need the FFmpeg libraries including the device library.
#Network streams: RTSP, SRT and UDP
Four clips, Stream Input 1 to 4, show a video stream from the network, for example an IP camera (RTSP), an encoder or another computer (SRT) or a program that sends MPEG-TS packets (UDP). They are off by default. Select a Stream Input clip and tick Allow network stream inputs in the Clip window. As long as the box is off, no connection is made and no port is opened.
Type the address into the Address field and press Enter. NyrexVJ only accepts three kinds of address: rtsp:// (read over TCP, with user name and password in the address if the camera needs them), srt:// and udp://. Examples: rtsp://192.168.1.20:8554/live, srt://host:9000, srt://:9000?mode=listener and udp://@:5000. Anything else, such as a file, a web page or a command, is refused with a message. A password in the address is hidden in the window and in the log.
A UDP address and an SRT address with mode=listener open a port on this computer and wait for a sender. The Clip window shows the port in orange. Anyone who can reach the computer on that port can send a picture, so use it only on a network you trust and allow the port in the firewall on purpose. If you can, let NyrexVJ connect to the sender instead.
The Profile sets how much delay you accept. Low latency keeps almost no buffer and can stutter on a bad network. Balanced is the default. Smooth buffers about a second and rides out bursts. The state, the size, the codec, the frame rate, the delay from decoding to upload, the jitter and the number of catch-ups are shown in the Clip window. When the stream falls too far behind, NyrexVJ jumps to the next key frame and counts a catch-up. When the sender stops, the last picture or the placeholder stays and the input reconnects by itself.
A stream has no audio here, only the picture. HDR and 10 bit streams are shown as normal 8 bit video without tone mapping. Streams are limited on purpose: video only, the codecs H.264, H.265, AV1, MJPEG, MPEG-2, VP8 and VP9, and at most 8192 pixels per side. A stream outside these limits is refused with a message. The input needs the FFmpeg libraries, and the FFmpeg build must contain the protocol, for example SRT.
NyrexVJ was tested with generated senders (FFmpeg and a small test server) on one computer, not with real cameras, a real network, Windows or next to VRChat. Test your stream before the show. The NDI settings now show which version the NDI runtime reports, or that it reports none. The details, the numbers and the limits are in docs/STREAMS.md of the project.
#Finding people in the camera picture
Person detection looks at the picture of a camera, an NDI source or a stream and finds where people are. It gives you a mask for an effect and six numbers that can drive anything that reacts to music. It is experimental and off by default. While it is off nothing extra runs, nothing is created and the six numbers read 0.
There is no AI model in it. The method is a background difference: NyrexVJ learns what the empty scene looks like during the first moments (about 12 analysed pictures) and calls everything that differs from it a person. It does not know what a person is, so a carried chair, an opened door or a shadow counts too. It needs a camera that does not move and an empty scene while it learns. Nothing is downloaded, nothing is sent anywhere and no picture is saved.
To use it, open Settings, Performance, Person detection (experimental) and choose Background difference (no model). Then set:
- Picture source: the camera, NDI source or stream input to look at, for example Camera 1. Set that input on the Live page first.
- Quality: Fast, Balanced or Fine. The analysis works on a small copy of the picture (about 96, 160 or 256 pixels wide) on its own thread. If it cannot keep up it lowers the quality, then the rate, and switches itself off, with the reason on the page, instead of slowing the show down.
- Analysis rate (per second): how often a picture is analysed, 2 to 30. Between two analyses the last mask and values stay.
- Sensitivity, Softness and Stability: higher sensitivity finds weaker differences but also more noise and shadow, softness blurs the edge of the mask, and stability holds the mask longer between analyses so it flickers less.
- Learn background now: forgets the learned scene and learns again. Press it while nobody is in the picture, and again after the camera, the light or the stage changed.
The page shows the state (learning, watching, no picture from the source), how many people were found, the analysis time against its budget, the size, and a small preview of the mask: white is a person, black is the background.
To use the mask, add the effect Person Key to a layer or the master. Its Mode slider has four steps: the picture only where the person is, the picture only where the person is not, the person as a flat colour, and the outline of the person. Softness softens the edge, Backdrop chooses black or a dark tint for the area outside, and Color sets the tint. The area outside is not transparent, it is the backdrop. To put the person over other layers, give the layer the blend mode Add or Screen with a black backdrop.
To use the numbers, pick them as a source for a layer, an effect reaction or a master slot: Person present, Person X (from the left), Person Y (from the bottom), Person size (the height of the person), Person motion and Person count. They show up in the lists only while person detection is on. X, Y and size keep their last value when nobody is visible, so use Person present as well.
What to expect:
- A person who walks into an empty, steady scene is found within a second. Two people who cross keep their numbers.
- Whoever stands in the picture while the background is learned becomes part of the background. Press Learn background now when the stage is empty.
- A camera that sees changing projections or stage lights gets false people. Lock the exposure of the camera, aim it away from the projection and lower Sensitivity.
- The mask fits the camera picture as shown unscaled. If a layer scales or moves the camera clip, the mask does not follow.
- It was tested with computer-made pictures and software rendering only. Try it with your own camera, your own lights and your own graphics card before you rely on it in a show.
The details, the numbers and the limits are in docs/PERSON.md of the project.
#State and reconnecting
The Clip window shows the state of a live source: Searching, Connecting, Live, Signal lost or Reconnecting, together with the size, the frame rate, the dropped pictures and the latency from arrival to the end of the upload. A lost source is searched for again by itself, first after half a second and then with growing pauses up to 10 seconds. The last picture stays on the layer meanwhile.
A source is opened when a layer shows its clip and closed three seconds after the last use, so it costs nothing while unused. The details and what was not tested yet, such as real capture cards, are in docs/LIVE.md of the project.
Found a mistake or something missing? Tell us on GitHub. The same manual is built into the program, so you have it without internet. Open it with F1 or from the Help menu, then User manual.