Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit bc0840e

Browse files
committed
[WebRTC-Sample] Update files and docs for WebRTC360 components
- Upload necessary scripts and files for WebRTC360 install. - Update WebRTC360 deploy scripts and Dockerfiles. - Update related documentation.
1 parent 5adf1b8 commit bc0840e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+15902
-4693
lines changed

WebRTC-Sample/README.md

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -44,38 +44,10 @@ The OWT-SERVER is provided as CentOS 7.6 dockerfile in this sample.
4444
|VP8|
4545
|VP9|
4646

47-
## Install docker engine:
47+
## Build owt-server components:
4848

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

51-
(2) Install [docker compose](https://docs.docker.com/compose/install).
52-
53-
## Build docker images:
54-
55-
```bash
56-
cd WebRTC-Sample/owt-server
57-
mkdir build
58-
cd build
59-
cmake ..
60-
make
61-
```
62-
63-
## Start/stop services:
64-
65-
Use the following commands to start or stop services via docker compose:
66-
67-
```bash
68-
cd WebRTC-Sample/owt-server/build
69-
70-
# start 4k service
71-
make start_owt_immersive_4k
72-
73-
# start 8k service
74-
make start_owt_immersive_8k
75-
76-
# stop service
77-
make stop
78-
```
7951

8052
# OWT-LINUX-PLAYER
8153
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.

WebRTC-Sample/owt-server/CMakeLists.txt

Lines changed: 0 additions & 16 deletions
This file was deleted.

WebRTC-Sample/owt-server/LICENSE

Lines changed: 0 additions & 202 deletions
This file was deleted.

WebRTC-Sample/owt-server/README.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# WebRTC360
2+
It's a webrtc server for 360 video use case.<br>
3+
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.
4+
5+
To build and run on a bare-metal machine, following steps below.
6+
As to deploy a docker image, go to `deploy` for details.
7+
8+
## Install
9+
10+
1. Install owt-server
11+
```
12+
./scripts/install_owt_server.sh
13+
```
14+
15+
2. Install deps
16+
```
17+
./scripts/install_deps.sh
18+
```
19+
20+
3. Build immersive video mixer node
21+
```
22+
./scripts/build.js -t all
23+
```
24+
25+
4. Pack IM video DIST
26+
```
27+
./scripts/pack.sh
28+
```
29+
30+
## Run Server
31+
32+
```bash
33+
cd dist
34+
35+
# init owt-server, only init once after reboot
36+
./bin/init-all.sh
37+
# Update RabbitMQ/MongoDB Account? [No/yes]
38+
# Press "Enter" to use default RabbitMQ/MongoDB account
39+
40+
# start owt-server
41+
./bin/start-all.sh
42+
43+
# stop owt-server
44+
./bin/stop-all.sh
45+
killall -9 node
46+
47+
# check logs for debug
48+
ls logs/
49+
50+
# restart owt-server = stop + rm logs + start
51+
./bin/stop-all.sh
52+
killall -9 node
53+
54+
rm logs/* -v
55+
56+
./bin/start-all.sh
57+
```
58+
59+
## Start 360 video streaming
60+
61+
```bash
62+
cd ../rest/
63+
. "$HOME/.nvm/nvm.sh"
64+
npm install mongojs
65+
npm install .
66+
67+
# start owt-server
68+
# configure owt-server, 4k or 8k
69+
./control.js -s 4k
70+
# restart owt-server to take into effect
71+
72+
# start input, 4k or 8k
73+
# it is ready for connction from clients
74+
./control.js -c /home/WebRTC360/test1_h265_3840x2048_30fps_30M_200frames.mp4
75+
# check logs
76+
# dist/logs/streaming-xxx-x.log
77+
# dist/logs/video-xxx-x.log
78+
# dist/logs/webrtc-xxx-x.log
79+
```

0 commit comments

Comments
 (0)