Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 2 additions & 30 deletions WebRTC-Sample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,38 +44,10 @@ The OWT-SERVER is provided as CentOS 7.6 dockerfile in this sample.
|VP8|
|VP9|

## Install docker engine:
## Build owt-server components:

(1) Install [docker engine](https://docs.docker.com/install).
View `owt-server/README.md` for more details.

(2) Install [docker compose](https://docs.docker.com/compose/install).

## Build docker images:

```bash
cd WebRTC-Sample/owt-server
mkdir build
cd build
cmake ..
make
```

## Start/stop services:

Use the following commands to start or stop services via docker compose:

```bash
cd WebRTC-Sample/owt-server/build

# start 4k service
make start_owt_immersive_4k

# start 8k service
make start_owt_immersive_8k

# stop service
make stop
```

# OWT-LINUX-PLAYER
The OWT-LINIX-PLAYER is an immersive 360 video player on linux, with WebRTC backend. It supports HEVC tile decoding, ERP video rendering, and FoV feedback.
Expand Down
16 changes: 0 additions & 16 deletions WebRTC-Sample/owt-server/CMakeLists.txt

This file was deleted.

202 changes: 0 additions & 202 deletions WebRTC-Sample/owt-server/LICENSE

This file was deleted.

79 changes: 79 additions & 0 deletions WebRTC-Sample/owt-server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# WebRTC360
It's a webrtc server for 360 video use case.<br>
Download, build and pack a official owt-server-5.0.x DIST in third-party. Then it will build a immersive video mixer node to replace VideoMixer in DIST, and a WebRTC node for tiles selection and FOV feedback.

To build and run on a bare-metal machine, following steps below.
As to deploy a docker image, go to `deploy` for details.

## Install

1. Install owt-server
```
./scripts/install_owt_server.sh
```

2. Install deps
```
./scripts/install_deps.sh
```

3. Build immersive video mixer node
```
./scripts/build.js -t all
```

4. Pack IM video DIST
```
./scripts/pack.sh
```

## Run Server

```bash
cd dist

# init owt-server, only init once after reboot
./bin/init-all.sh
# Update RabbitMQ/MongoDB Account? [No/yes]
# Press "Enter" to use default RabbitMQ/MongoDB account

# start owt-server
./bin/start-all.sh

# stop owt-server
./bin/stop-all.sh
killall -9 node

# check logs for debug
ls logs/

# restart owt-server = stop + rm logs + start
./bin/stop-all.sh
killall -9 node

rm logs/* -v

./bin/start-all.sh
```

## Start 360 video streaming

```bash
cd ../rest/
. "$HOME/.nvm/nvm.sh"
npm install mongojs
npm install .

# start owt-server
# configure owt-server, 4k or 8k
./control.js -s 4k
# restart owt-server to take into effect

# start input, 4k or 8k
# it is ready for connction from clients
./control.js -c /home/WebRTC360/test1_h265_3840x2048_30fps_30M_200frames.mp4
# check logs
# dist/logs/streaming-xxx-x.log
# dist/logs/video-xxx-x.log
# dist/logs/webrtc-xxx-x.log
```
Loading