Skip to content
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
6 changes: 6 additions & 0 deletions .changeset/capture-source-gstreamer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
livekit-capture: minor
livekit-ffi: minor
---

Add a capture source that ingests encoded video from a GStreamer pipeline.
220 changes: 209 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions livekit-capture/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ repository.workspace = true
[dependencies]
bytes = { workspace = true }
chrono = { version = "0.4", default-features = false, features = ["clock"], optional = true }
gstreamer = { version = "0.25.2", optional = true }
gstreamer-app = { version = "0.25.2", optional = true }
livekit = { workspace = true }
log = { workspace = true }
pollster = { version = "0.4", optional = true }
Expand All @@ -32,3 +34,6 @@ schemars = ["dep:schemars", "serde"]
# Pixel sources
source-clock = ["dep:chrono", "dep:pollster", "dep:wgpu", "dep:yuv-sys"]
source-pattern = ["dep:pollster", "dep:wgpu", "dep:yuv-sys"]

# Encoded sources
source-gstreamer = ["dep:gstreamer", "dep:gstreamer-app"]
1 change: 1 addition & 0 deletions livekit-capture/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ named `source-<module>`. Each module documents its source.

| Feature | Source | Kind |
| ------------------ | ---------------------- | ------- |
| `source-gstreamer` | `GStreamerVideoSource` | encoded |
| `source-pattern` | `PatternVideoSource` | pixel |
| `source-clock` | `ClockVideoSource` | pixel |

Expand Down
Loading
Loading