Skip to content

One camera, many destinations

Apply a look and an overlay to your camera once, then use the result in video calls, send it to a WebRTC endpoint, and record it, without chaining apps that each grab the camera. For streamers, teachers and small productions.

You want your camera to look a certain way, then go to several places: a video call, a live service, a recording at better quality than the call. Usually that means a chain of apps, one applying the look, another capturing its window or a virtual camera, a third recording, and each one change away from breaking the others. And only one of them can open the camera.

With Tato, one stream owns the camera, the look and the overlay, and offers the result to everything else: as a camera other apps can pick (on Linux), as WebRTC to a live service, and as a file.

CameraSource ─▶ Grade ─▶ AlphaOverCompositor ─┬─▶ VirtualCameraSink ("My Camera") ─▶ Zoom, Meet, OBS
BrowserSource (overlay page) ────────┘ └─▶ H264Encoder ─┬─▶ WhipPublisher ─▶ your live service
MicrophoneSource ─▶ OpusEncoder ───────────────────────────────┘└─▶ H264File

Add the modules from File › Marketplace… in Tato Studio, or from a terminal:

Terminal window
uv add tatolab-camera tatolab-browser tatolab-compositor tatolab-virtualcamera tatolab-h264 tatolab-opus tatolab-webrtc tatolab-microphone
  • The look is a shader node of your own, such as SoftVignette from GPU effects, or a chain of core nodes from the Filters category. Each runs on the GPU, on every frame.
  • The overlay is a web page: BrowserSource renders its url offscreen with Chromium, at the size you give it, over transparency when transparent_background is set. Draw a lower third, a logo or a clock in HTML and CSS. A Records message on its data input reaches the page as a tatolab:data event, so another node can change what it shows.
  • AlphaOverCompositor layers up to eight pictures, back to front: the graded camera on layer_0, the overlay on layer_1.
  • The destinations read the composite: VirtualCameraSink presents it as a camera, H264Encoder encodes it once for both WhipPublisher and H264File.

The lower-third example in the streamlib repository is a complete version, with a Rive animation as a second overlay.

  1. Set up the virtual camera once, on Linux: Virtual camera explains the one command.
  2. Tune the look in Tato Studio, with the compositor’s video output open in the Node visualizer. Change a shader node’s inputs on the node and the picture follows, with nothing reloaded, so you can tune during a call.
  3. Leave it running. The project keeps playing after you close Studio’s window, as long as the runtime runs. Choose My Camera in your video app’s camera settings. While it plays, the webcam is in use and its light stays on; tatolab stop frees it.
  4. Go live by setting WhipPublisher’s endpoint from the runtime’s environment, as WebRTC shows.
  • Virtual cameras are Linux only. On a Mac, the processed picture can’t reach Zoom, Meet or OBS; you can still watch it, record it and send it over WebRTC.
  • USB webcam frame rates on Linux. CameraSource reads uncompressed video only, so most USB 2.0 webcams deliver HD at 5 to 10 frames per second; their faster modes are MJPEG, which isn’t read. Check yours with v4l2-ctl --list-formats-ext, lower the size, or use a USB 3 camera or an HDMI capture device.
  • No RTMP, SRT or NDI. For a live service that accepts WHIP, use WhipPublisher; it doesn’t reconnect if the session drops. Other transports need a node you write.
  • No switcher or background blur built in. A switcher is a node with several inputs that forwards one; blur needs a segmentation model in a node of yours.
  • The recording is raw H.264. Put it in a container afterwards with ffmpeg -i recording.h264 -c copy recording.mp4.