Skip to content

Commit 8a0981c

Browse files
authored
[VID-344]: Add metadata to rtmp ingress (software, location etc) (#964)
2 parents dba2378 + 3e8127e commit 8a0981c

File tree

8 files changed

+1148
-561
lines changed

8 files changed

+1148
-561
lines changed

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@ CURRENT_VERSION_BUG = 0
1313
GIT_DESCRIBE := $(shell git describe)
1414
GITHUB_HEAD_REF ?= $(shell git branch --show-current)
1515

16+
.PHONY: install-proto-tools
17+
install-proto-tools:
18+
@echo "Installing protobuf tools..."
19+
./install.sh
20+
21+
.PHONY: generate-proto
22+
generate-proto:
23+
@echo "Generating protocol buffers..."
24+
REALPATH=grealpath ./generate.sh
25+
26+
.PHONY: proto
27+
proto: install-proto-tools generate-proto
28+
1629
update-main:
1730
git checkout main
1831
git pull

protobuf/video/sfu/models/models.pb.go

Lines changed: 398 additions & 274 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protobuf/video/sfu/models/models.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,21 @@ message Browser {
269269
string version = 2;
270270
}
271271

272+
message RTMPIngress {
273+
// Video dimensions and frame rate
274+
uint32 width = 1;
275+
uint32 height = 2;
276+
double frame_rate = 3;
277+
278+
// Client info
279+
string software = 4; // e.g. "obs-studio"
280+
string version = 5; // e.g. "29.1.3"
281+
string encoder = 6; // e.g. "x264" or "NVIDIA NVENC"
282+
283+
// Connection info
284+
string remote_addr = 7;
285+
}
286+
272287
message Device {
273288
string name = 1;
274289
string version = 2;

0 commit comments

Comments
 (0)