Skip to main content

NVIDIA Omniverse streaming library (ovstream + ovstream_utils Python packages)

Project description

NVIDIA ovstream

ovstream is a lightweight C and Python SDK for streaming application-rendered pixels, audio, messages, and input events from GPU applications to interactive clients.

Use ovstream when you have a renderer, CUDA producer, tensor producer, or pre-encoded video source and need to deliver an interactive live view to a browser, native client, RTSP client, or same-machine desktop process. Pair it with ovrtx, or any compatible CUDA-buffer producer, to ship interactive rendered content over WebRTC, RTSP, the low-latency native protocol, or local shared memory.

[!NOTE] ovstream is currently pre-release software.

Features

  • Five transports in one library — WebRTC (browser-friendly), RTSP (industry-standard), native (low-latency StreamSDK), SHM (same-machine host-resident zero-copy), and CUDASHM (same-host GPU-resident zero-copy over CUDA IPC). Pick one at runtime, run several simultaneously, no separate builds.
  • Zero-copy CUDA buffer streaming — push raw BGRA8 frames directly from CUDA memory; the SDK encodes on the GPU via NVENC.
  • Pre-encoded passthrough — stream existing H.264 / H.265 / AV1 bitstreams without re-encoding, for file replay or upstream-encoded sources.
  • Bidirectional messaging and input (WebRTC / native / SHM / CUDASHM) — receive keyboard, mouse, and Unicode events from connected clients; send messages back.
  • STUN / TURN for WebRTC NAT traversal — supply ICE servers via a single set_webrtc_ice_servers call before or after start; refresh time-limited TURN credentials live without dropping connected clients.
  • Self-contained — no Kit, no Carbonite, no Omniverse app required. The wheel bundles its native dependencies (StreamSDK, GStreamer, the bundled gstnvenc plugin); pip install ovstream is enough.

Supported inputs and outputs

The diagram below summarizes the current application inputs, SDK surfaces, transport backends, and consumers supported by ovstream.

ovstream supported inputs and outputs

For text readers, search, and AI coding agents, the same contract is summarized below:

What goes in ovstream surface What comes out
BGRA8 CUDA frames from a renderer or application stream_video WebRTC, RTSP, native, SHM, or CUDASHM video delivery
DLPack tensor frames from Warp, PyTorch, CuPy, JAX, or another producer stream_video Transport-selected frame stream
Pre-encoded H.264, H.265, AV1, or custom payloads stream_video Passthrough video stream without re-encoding
16-bit PCM audio stream_audio WebRTC or native audio stream
Application messages, metadata, keyboard, mouse, and Unicode input callbacks and messaging APIs Server-side application events and client responses

Getting Started in Python

Python 3.8 or newer is required.

Install the ovstream wheel, then fetch the example sources (they live in the public repo, not the wheel) and run the first example:

pip install ovstream
git clone https://github.com/NVIDIA-Omniverse/ovstream.git
cd ovstream/examples/python/basic_stream
python main.py

(Or download a release source archive from https://github.com/NVIDIA-Omniverse/ovstream/releases if you don't have git.)

The basic example creates a WebRTC server with signaling port 49100 (the media stream port defaults to 47998), allocates a CUDA buffer, animates a gradient fill, and pushes frames at 60 FPS. Open examples/webrtc_client/index.html in a browser and enter 127.0.0.1:49100 to view the stream.

Pass rtsp, native, shm, or cudashm as arguments to switch transport — see the examples README for the full menu.

Getting Started in C

The C/C++ examples require CMake and a development environment. On Windows this is provided by Visual Studio 2019 or newer. On Linux (Ubuntu):

sudo apt-get install build-essential cmake

Clone the public repo for the example sources (they're not in the wheel), then build and run the first example using CMake:

git clone https://github.com/NVIDIA-Omniverse/ovstream.git
cd ovstream/examples/c/basic_stream
cmake -B build -DCMAKE_BUILD_TYPE=Release

Then, on Windows:

cmake --build build --config Release
.\build\Release\basic_stream.exe

On Linux:

cmake --build build --config Release
./build/basic_stream

CMake's ovstream_fetch() macro downloads the matching ovstream binary archive from GitHub Releases at configure time. No manual install step is required.

Examples

Further examples using both the C and Python APIs are available in the examples directory. See the individual examples for building and usage instructions.

The Python ovrtx_stream example is the headline "composing two libraries into an app" demo — it loads a USD scene with ovrtx and streams the rendered output through ovstream, end-to-end, with auto-orbiting camera and client input handling.

Releases

The Releases page of this repository contains binary builds for the official releases of the ovstream C library and the corresponding Python wheels. These binaries are provided for the supported platforms:

  • Windows x86_64
  • Linux x86_64
  • Linux aarch64

The libraries require a compatible NVIDIA RTX-capable GPU with a compatible NVIDIA driver on the system. More detailed system requirements can be found at https://docs.omniverse.nvidia.com/dev-guide/latest/common/technical-requirements.html

Documentation

The public C API is fully documented inline in the header files (ovstream.h, ovstream_types.h, ovstream_client.h) shipped under include/ovstream/ inside every release archive — each function carries its argument types, return semantics, thread-safety rules, and lifetime contracts as Doxygen-style comments. The Python API mirrors the C API and is documented via docstrings on the wheel-installed ovstream package (run help(ovstream) after pip install ovstream).

For runnable code, see examples. For AI-coding-agent-friendly task recipes, see skills.

AI Coding Agents

The skills directory contains a series of skills to help AI coding agents understand how to use the API (and they're useful for humans too). Copy this directory to your project and point your agent at it.

Support

https://forums.developer.nvidia.com/c/omniverse/300

Roadmap

To be announced.

Contributing

At this time this project is not open to external contributions. Please use the Support channels above for questions and bug reports.

Authors and acknowledgment

NVIDIA Corporation.

License

The software and materials are governed by the NVIDIA Software License Agreement and the Product-Specific Terms for NVIDIA Omniverse.

This project will download and install additional third-party open source software projects — see THIRD_PARTY_NOTICES.md. Review the license terms of these open source projects before use.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ovstream-0.4.5-py3-none-win_amd64.whl (28.2 MB view details)

Uploaded Python 3Windows x86-64

ovstream-0.4.5-py3-none-manylinux_2_35_x86_64.whl (49.9 MB view details)

Uploaded Python 3manylinux: glibc 2.35+ x86-64

ovstream-0.4.5-py3-none-manylinux_2_35_aarch64.whl (218.9 MB view details)

Uploaded Python 3manylinux: glibc 2.35+ ARM64

File details

Details for the file ovstream-0.4.5-py3-none-win_amd64.whl.

File metadata

  • Download URL: ovstream-0.4.5-py3-none-win_amd64.whl
  • Upload date:
  • Size: 28.2 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for ovstream-0.4.5-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ba20f19bd7288bedf0c51c2b60ef7624c9d1a146fe7e66afddaac717abb5fb84
MD5 97623db9edb77acc529097d8ab2ef7e0
BLAKE2b-256 b4885cafae9ed2f36715725eab77870a1a5cade6e1747b942ba787695da4968d

See more details on using hashes here.

File details

Details for the file ovstream-0.4.5-py3-none-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for ovstream-0.4.5-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 b531e68fc8d8fb5adab749c123e2d49cb4d4d17eadb6f9172a0c599f64765949
MD5 982fbe772dec194353a615eddcbf6abd
BLAKE2b-256 b2345af88cab9abcd5704a86ac806eab9e2b069c39ec0e2dc5f2daae0f2c9a22

See more details on using hashes here.

File details

Details for the file ovstream-0.4.5-py3-none-manylinux_2_35_aarch64.whl.

File metadata

File hashes

Hashes for ovstream-0.4.5-py3-none-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 f83bbff3767c257fdea9bfdc4cda4984862a1392e90db8d08da00a72c78820ec
MD5 2acd200093c1302a58ec4477bc2ab8ab
BLAKE2b-256 a79c7a2c1656d92992c9155a81f5b135295010344fab902a39868cd412aaae70

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page