@@ -201,6 +201,7 @@ cmake --build build
201201| ` LIVEKIT_USE_SYSTEM_PROTOBUF ` | OFF | Use system Protobuf instead of vcpkg's |
202202| ` LIVEKIT_LOG_LEVEL ` | ` TRACE ` | Compile-time log threshold (see [ logging.md] ( logging.md ) ) |
203203| ` LIVEKIT_VERSION ` | repo-derived | SDK version string baked into the binary |
204+ | ` LIVEKIT_BUILD_CAPTURE ` | preset-dependent | Enable GStreamer, pattern, and clock capture sources in the Rust FFI |
204205
205206## Build output
206207
@@ -361,22 +362,42 @@ separately when it is no longer needed.
361362
362363## Capture sources
363364
364- Standard ` debug ` , ` release ` , and ` *-examples ` builds disable capture. The
365- ` *-tests ` and ` *-all ` presets enable it by default. Both build scripts accept
366- ` --capture ` and ` --no-capture ` to override the preset:
365+ Only the repository's ` *-tests ` and ` *-all ` presets enable capture by default.
366+ The ` debug ` , ` release ` , and ` *-examples ` presets disable it. Use ` --capture `
367+ with any build command to enable all three sources (GStreamer, GPU pattern, and
368+ GPU wall clock), or ` --no-capture ` to disable them explicitly:
367369
368370``` bash
369371./build.sh release --capture --bundle --prefix sdk-out/livekit-sdk-capture
372+ ./build.sh debug-tests --no-capture
370373```
371374
372- The build scripts set ` LIVEKIT_BUILD_CAPTURE ` . The generated
373- ` LIVEKIT_CAPTURE_ENABLED ` macro is 0 or 1 and supports ` #if ` checks in consumers.
374-
375375On Windows, use ` build.cmd release --capture --bundle --prefix sdk-out\livekit-sdk-capture ` .
376- Capture builds enable GStreamer, GPU test patterns, and the GPU wall clock.
377- They require GStreamer development libraries at build time and its runtime
378- libraries when the SDK is loaded. Release artifacts with ` -capture ` in their
379- names include capture; standard artifacts disable it.
376+ Custom CMake configurations can set ` LIVEKIT_BUILD_CAPTURE=ON ` . The build
377+ enables ` capture-gstreamer ` , ` capture-pattern ` , and ` capture-clock ` in the
378+ Rust FFI.
379+
380+ The build scripts set ` LIVEKIT_BUILD_CAPTURE ` . The generated numeric
381+ ` LIVEKIT_CAPTURE_ENABLED ` macro (0 or 1) supports ` #if ` checks in consumers.
382+ ` share/livekit/build-info.json ` in an installed bundle describes the same build
383+ features; neither value tests whether a GPU or a requested GStreamer plugin is
384+ available at runtime.
385+
386+ Release downloads with ` -capture ` in their names include these features, for
387+ example ` livekit-sdk-macos-arm64-capture-<version>.tar.gz ` . Standard release
388+ bundles have capture disabled.
389+
390+ Building a capture-enabled SDK requires GStreamer development libraries
391+ accessible to ` pkg-config ` . On macOS, install ` gstreamer ` with Homebrew. On
392+ Ubuntu, install ` libgstreamer1.0-dev ` and
393+ ` libgstreamer-plugins-base1.0-dev ` , plus the runtime plugins your pipeline
394+ uses. On Windows, install the MSVC runtime and development packages from the
395+ [ GStreamer downloads page] ( https://gstreamer.freedesktop.org/download/ ) and put
396+ the installation's ` bin ` directory on ` PATH ` and ` lib/pkgconfig ` directory on
397+ ` PKG_CONFIG_PATH ` .
398+
399+ Capture bundles require GStreamer at runtime, including when using pattern or
400+ clock sources. The SDK does not redistribute GStreamer libraries or plugins.
380401
381402CI builds both variants in one job per platform. It first builds and bundles
382403the standard SDK, then runs the build script with ` --capture ` in the same CMake
0 commit comments