Emulating a Depthkit Livestream for testing in Unity

For those interested in evaluating Depthkit’s livestreaming functionality inside a Unity project, it is possible to emulate Depthkit livestreams using the prerecorded Depthkit samples and free software.

:warning: Caution: Pre-recorded Depthkit assets undergo some degree of automatic “cleanup” when edited and exported out of Depthkit; Livestream data from Depthkit does not undergo the same processes, so this emulation does not represent the final quality of Depthkit Livestreams.

To get started:

  • In your OBS scene, create a new Media Source.
  • Under local file, select the video of the Depthkit Combined Per Pixel you downloaded.
  • Check the Loop box.
  • Click OK to complete setting up the source object.
  • Optionally press Ctrl/Cmd + F to fit the entire video in the OBS canvas so you can see the whole thing, but this step is not required.

  • Right click the Media Source and select Filters.

  • Click the + under Effect Filters and add Spout Filter.

  • Optionally change the name of the Spout stream, and that’s all that’s needed to generate a Spout stream similar to that generated by the Depthkit application.

Follow the instructions for setting up Unity in the Depthkit Local Livestreaming documentation to receive and render the stream on the same computer, or the other livestreaming workflows to test the stream over LAN, WebRTC, or a CDN.