Skip to content

Latest commit

 

History

History
107 lines (66 loc) · 9.73 KB

README.md

File metadata and controls

107 lines (66 loc) · 9.73 KB

Many-to-many WebRTC-based point cloud video conferencing

In this repository, all files related to a multi-party volumetric video-based system are made available. Five parts are considered:

  • A Unity project written in C#, used to create sessions and render point cloud video
  • A WebRTC framework written in Golang, used to interconnect peers through a selective forwarding unit (SFU)
  • A connector plugin written in C++, used to interconnect the Unity application to the WebRTC client
  • A point cloud capturer plugin written in C++, used by the Unity application for capturing (at the moment only realsense is supported)
  • An encoder plugin written in C++, used by the Unity application the captured point clouds using a MDC-based approach (uses Draco for encoding)

The system is currently under development by IDLab, Ghent University - imec. This README will be updated while development continues, with detailed instructions for each of these components.

Architecture

The developed system supports multi-party point cloud delivery using a multi-description coding (MDC) approach. In contrast to traditional approaches - which either compress point cloud frames as a whole or apply spatial segmentation in the form of tiles - our solution creates several distinct subsets (descriptions) of sampled points. Each of these descriptions can be encoded separately, resulting in lower processing times due to parallelization. Furthermore, multiple descriptions can be merged together after decoding, resulting in a representation of higher visual quality.

Architecture

As shown in the above illustration, our solution provides a fixed number of encoders per participant, corresponding to the number of descriptions. The number of local decoders for each client scales with the number of received descriptions. The SFU unit decides on what descriptions will be forwarded to each client, taking into account the user's field of view (FoV) and position in the sence, as well as the bandwidth that is available to the client (estimated through Google congestion control).

For a more detailed explanation of the system, we refer to our recent publications [1, 2].

[1] M. De Fré, J. van der Hooft, T. Wauters, and F De Turck. "Demonstrating Adaptive Many-to-Many Immersive Teleconferencing for Volumetric Video", Proceedings of the 15th ACM Multimedia Systems Conference, 2024 (available here)

[2] M. De Fré, J. van der Hooft, T. Wauters, and F De Turck. "Scalable MDC-Based Volumetric Video Delivery for Real-Time One-to-Many WebRTC Conferencing", Proceedings of the 15th ACM Multimedia Systems Conference, 2024 (available here)

Installation

In general, you will only need to build and run the SFU server and the Unity application.

To build the SFU you will need to make sure you have installed the latest version of Golang. If this is the case you will be able to simply do go build -o SFU_server.exe ./sfu in the root of the WebRTC directory to build the SFU. This process will automatically download any necessary dependencies.

Similarly, you can build the WebRTC client application if you need to make changes to it. However, you will to manually change the current version used by Unity. To do this you will have to the replace existing webRTC-peer-win.exe of the Unity application.

Building the Unity application follows a very similar flow. First you will have to open the Unity folder of this repository in Unity hub. Doing so will automatically download any dependencies. Once inside you are able to build the application like any other Unity application, the scene you want to build is called MainScene and is located in Assets/Scenes.

❗ When building the application, you will have to manually copy the config and peer directories from the Assets directory to the Unity application datapath (In Windows this is: spirit_unity_Data).

Realsense

Capturing is done with a custom Dll. If you plan to make changes to it, you will have to manually copy it into the Plugins directory after building it.

❗ Unity is unable to unload Dlls once they have been used, so if you plan to update a Dll you will also have to restart the editor.

Currently the application only supports Intel Realsense cameras as a means to capture the point clouds. Make sure your system has the necessary libraries and drivers installed. If this is not the case follow the instructions below:

For Windows, you can just download and run the latest SDK which automatically includes all necessities.

For Linux (currently untested), you will to follow the commands listed on this page, to properly install the SDK without having to manually build it.

WebRTC Connector

The Unity application uses a Dll to connect to the Golang WebRTC application via sockets. Normally you should never have to build this yourself as this repository contains the latest version.

However, if you do plan to make changes to it, you will have to manually copy it into the Plugins directory after building it.

For more information about the Dll you can visit the README of the WebRTC Connector.

Usage

The first step is to make sure that an instance of the SFU server is running. Assuming that you have build this you are able to start with the following command:

`./SFU-Server --addr 0.0.0.0:8000 -t 3`

You are allowed to use any valid address and port for the value of --addr. When you use 0.0.0.0 it will automatically listen on every interface. The value of t is the maximum number of video tracks a client is going to transmit, i.e., if you have three base descriptions this value will be three. In general, you should just use three as this is the value used by the MDC-based encoder.

The Unity clients can be started once the server is fully running. For these you need to make sure that their configuration file has the correct parameters, and that it's placed in a config directory in the Unity application datapath. You can find an example config file here. The most important parameter you will have to change is the sfuAddress, which needs to be changed to the address of your SFU server (note: you will have to change this even if you are using 0.0.0.0 for the server).

The second most important parameter is the peerUDPPort this parameter determines which local port will be used to communicate with the Golang WebRTC application. You will only need to change this if you are planning to run multiple clients on the same machine.

Finally, the clientID parameter determines the position at the table as follows:

Table

You can visit the README of the Unity application for more information about the other parameters.

The arrow keys can be used to move the camera when not using any headset. If you are using a headset, make sure that headset is fully connected to your pc (e.g., for Meta Quest, make sure you are fully linked before starting the application).

By using the SFU you also have access to a dashboard that shows which clients are connected, what clients they can see and what quality is send for each client. You can access this dashboard using the same address you used to start the SFU together with the /dashboard path. Additionally, if you started the SFU with the -d parameter (which disables GCC bandwidth estimation), you can impose bandwidth limitations by using the dashboard. For more information about the dashboard you can visit the README of the WebRTC directory.

Supported HMDs

In general every OpenXR compatible headset will work. However, below is a list of all headsets that have been tested and verified:

Tested

Potential Problems

If you are noticing packet loss (i.e. frames not being delivered), there is a high chance that this is related to your machine not being powerful enough to process the network buffer in time. You can solve this by increasing the default buffer as follows:

Linux

sudo sysctl -w net.core.rmem_max=<new_value>
sudo sysctl -w net.core.wmem_max=<new_value>
sudo sysctl -w net.core.rmem_default=<new_value>
sudo sysctl -w net.core.wmem_default=<new_value>

With <new_value> being a pretty high value such as 52428800. If you want these changes to be permanent you will also have to add them to /etc/sysctl.conf.

Windows

Open the Registry and go to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Parameters Once you are here you will need to add DefaultReceiveWindow and DefaultSendWindow as DWORD with a high value (e.g. 2097152 for receive and 64512 for send).

Funding

This work is funded by the European Union SPIRIT project, grant agreement 101070672.

Logo