Virtual Camera SDK
A Windows AVStream kernel camera driver and compact C++ SDK for sending your own pixels to camera applications.
Build a branded camera source, an automated video fixture, a generated teaching feed or a test integration. Your application supplies raw frames; Windows sees a camera capture stream. Contact titancsa on Discord for evaluation access, OEM distribution and integration support.
Microsoft-signed evaluation bundle for Windows x64. Application 0.1.1 includes the verified Microsoft-signed AVStream driver 0.1.0.0, self-contained UI and console installers, the native frame producer, C++ SDK and example sources. Public app/SDK source is MIT; the prebuilt driver has separate evaluation/commercial terms. See validation for the qualified boundary.
The current contract
- One explicit producer, with a standard AVStream/Kernel Streaming camera capture device.
- Fixed 640 x 480, BGR24, 30 fps; rows are bottom-up and tightly packed, stride 1,920 bytes.
- A persistent latest-frame buffer: a producer can send once or update continuously. Capture clients receive the latest image at the advertised cadence. There is no unbounded queue of stale frames.
- Administrator-only producer control and one owning file handle. Metadata-only and incomplete-access opens cannot claim the producer. Capture access follows Windows camera/device policy.
- Without an authorized producer, after its permission expires, or after it closes, consumers receive black frames. No physical webcam, microphone or desktop is captured.
- SDK errors include their stage and Windows error code. Network access occurs only for session authorization/renewal, never for each frame.
The driver uses documented Windows AVStream/KS facilities. It does not intercept an existing camera, hide devices, record video, install a browser extension or inject into capture applications. Resolution selection, multiple cameras, audio, GPU zero-copy and hardware encoding are not implemented in this preview.
Install and run
- Download and extract the complete Microsoft-signed evaluation ZIP from Releases. Ask
titancsafor a product-specific evaluation access key. - Run
VirtualCameraSetup.exeas administrator. Choose Install / reinstall. Restart Windows only if setup requests it. - Open
CameraStudio.exe, enter the access key and select Start color bars. - In your capture application, select Titan Virtual Camera. Camera privacy/device policy and capture-application format support still apply.
- Select Stop producer or close the application to release ownership and return output to black. Uninstall through the setup UI or
VirtualCameraSetupConsole.exe /uninstall.
Both setup executables embed the same signed INF, CAT and SYS; no separate driver download is required. Setup verifies the exact INF identity, the trusted Microsoft hardware-publisher catalog under Microsoft-root policy and INF/SYS catalog membership. It never enables test-signing, changes Secure Boot, restarts Windows automatically or touches another camera's package.
Minimal C++ integration
#include "Camera.h"
Camera camera;
if (auto error = camera.Activate(accessKey); !error.empty()) {
// Display this English error; do not log the access key.
return;
}
std::vector<unsigned char> pixels(CameraProtocol::FrameBytes, 0);
// Fill pixels with your own bottom-up BGR24 data.
if (DWORD error = camera.Send(pixels)) {
auto message = Camera::Error(error);
}
// Keep camera alive; destroying it releases the producer.Compile SDK/Camera.cpp and include SDK/Camera.h; the small protocol headers live beside them. C++20 and the Windows SDK are required. Link WinHTTP and Crypt32 (the source also supplies MSVC library pragmas). Camera::Query(state) reads submitted/delivered counters and the authorization state. Camera::Close() explicitly releases ownership.
Serialize frame sends on an object. Call the first Activate() before sending; subsequent Activate() calls can renew an established session while its producer continues to send. Keep the object alive until renewal has finished. The studio example renews after 45 minutes on a background thread, retains its key only in process memory while running, retries temporary transport failures after a minute, and stops if permission is refused. It stores no key or configuration file. The short console example authorizes one session and holds one generated image until Enter.
Product access and OEM distribution
Each product has independent application access keys in the shared administration portal. An enabled key with an evaluation, commercial or OEM entitlement can request a signed session permission over HTTPS. The driver generates a random challenge, verifies the P-256 signature and checks that the permission matches this product and the current producer session. Permissions last at most one hour from driver acceptance and can be renewed. This is a renewable session lease, not a one-hour total demo timer. Revoking a key blocks future grants; an already granted session can remain active until its permission expires.
Evaluation access, paid time-limited pilots, per-customer SDK integration, OEM deployment agreements and support can use the same installer. Commercial rights and deployment counts are contractual: this design does not implement a machine fingerprint, offline machine-count enforcement, per-EXE authorization or guaranteed resistance against an administrator/kernel attacker. Keys must not be embedded in public examples. No private signing key is shipped in the driver or SDK. Authorization sends the access key, product identifier and a random session challenge to the licensing service; the service also sees the connection IP. It receives no video frames or machine fingerprint from this SDK.
The business offering is deployment/integration support and a documented raw-frame SDK. Free alternatives already exist: OBS Virtual Camera and Windows 11 Media Foundation virtual cameras. A custom kernel driver is not necessary for every virtual-camera project. Windows 10/11 AVStream integration is the target of this implementation, subject to actual qualification.
Build
Demo/evaluation driver source is available; see driver/README.md for build instructions and separate evaluation-source terms. Those terms apply to Titan-authored driver code. Third-party source licenses and existing application/SDK licenses remain applicable. Full/commercial implementation and private signing or activation material are excluded.
The target platform is Windows 10 build 19041 or later, or Windows 11, x64; the live campaign currently covers Windows 10 build 19045 only. Use Visual Studio 2022 C++ desktop tools, CMake 3.20+ and the Windows SDK to build:
.\Build.ps1
.\Build.ps1 -AsanOutputs are in obj/Build/Release. Public source builds contain no driver payload and cannot install a driver. For authorized packaging of an already-signed return:
cmake -S . -B obj/Package -G "Visual Studio 17 2022" -A x64 -DDRIVER_PACKAGE_DIRECTORY="C:/Signed/TitanVirtualCamera"
cmake --build obj/Package --config ReleaseThat directory must contain the matching TitanVirtualCamera.inf, .cat and .sys. Both setup executables embed all three files. Console setup accepts /install and /uninstall; exit code 3010 requests a manual restart.
Validation and limits
The returned Microsoft-signed driver passed isolated Windows 10 build 19045 x64 campaigns normally and under standard Driver Verifier, with test-signing disabled. Each campaign passed 499 real-KS/frame/lifecycle checks and 67 two-second signed-permission expiry checks. They included 256 frame submissions, 16 capture open/close cycles, black fallback, producer ownership and restricted/incomplete-access refusal. The bundled console installer completed installation and exact device/package removal; the installed Driver Store SYS matched the signed return, the camera driver unloaded and no new minidump was observed. UI setup shares that core; its signed resources were separately compared byte for byte, rather than claiming automated UI interaction.
Offline checks cover 100,010 protocol cases, 11 basic identity/trust checks and 25 actual signed-package acceptance/tamper-refusal checks; protocol AddressSanitizer also passes. See validation for measured boundaries. Windows 11, representative capture applications/browser permission paths, GPU/camera-stack coexistence and long-duration operation remain unqualified. A signature and bounded tests do not establish universal compatibility, physical latency, WHQL certification or absence of defects.
License and responsible use
Public app, SDK, examples and installer source: MIT. The prebuilt driver has separate evaluation/OEM terms. Retained Microsoft sample notices and the MS-PL apply to the published driver/Driver/** source files, including Titan changes in those files; see the file-specific license map. Microsoft signing is not a product endorsement or WHQL certification.
Use only on systems you own or administer with authorization, for legitimate testing, accessibility, video production and integration. Follow applicable law and third-party terms. To the extent permitted by law, the author is not responsible for misuse, unlawful activity or resulting damage; software is supplied without warranty. Mandatory statutory rights and non-excludable liability remain unaffected.
Paquets et installation
Les sources, licences, guides API et exemples sont regroupes dans le depot SDK dedie. Choisis le paquet a installer puis execute sa commande dans son dossier.
| Registre | Paquet | Installation / utilisation |
|---|---|---|
| vcpkg | virtual-camera-sdk |
vcpkg install virtual-camera-sdk:x64-windows |
| Conan | virtual-camera-sdk |
conan install --requires=virtual-camera-sdk/0.1.1 -r titancsa --build=missing -s compiler.cppstd=20 |
| NuGet | Virtual-Camera-SDK.Native |
Install-Package Virtual-Camera-SDK.Native -Version 0.1.1 |
| NuGet | VirtualCameraSDK.SDK |
dotnet add package VirtualCameraSDK.SDK --version 1.0.0 |
| PyPI | virtual-camera-sdk |
Commande prevue apres publication : python -m pip install virtual-camera-sdk==1.0.0
|
| Conda | virtual-camera-sdk |
conda install --override-channels -c https://raw.githubusercontent.com/TitanCSA/sdk-packages/089bc73095aa8eda89bacbe10d0b9e58394b0207/conda-channel -c conda-forge virtual-camera-sdk (canal TitanCSA) |
| crates.io | virtual-camera-sdk |
cargo add virtual-camera-sdk@1.0.0 |
| npm | virtual-camera-sdk |
Commande prevue apres publication : npm install virtual-camera-sdk@1.0.0
|
| Maven Central | io.github.titancsa:virtual-camera-sdk |
io.github.titancsa:virtual-camera-sdk:1.0.0 (pom.xml / Gradle) |
| JitPack | com.github.titanfyre:Virtual-Camera-SDK |
com.github.titanfyre:Virtual-Camera-SDK:java-sdk-v1.0.0 (avec le depot JitPack) |
| Go Modules | github.com/titanfyre/Virtual-Camera-SDK/Virtual-Camera-SDK-Go-modules |
go get github.com/titanfyre/Virtual-Camera-SDK/Virtual-Camera-SDK-Go-modules@v1.0.0 |
| pkg.go.dev | github.com/titanfyre/Virtual-Camera-SDK/Virtual-Camera-SDK-Go-modules |
Documentation : https://pkg.go.dev/github.com/titanfyre/Virtual-Camera-SDK/Virtual-Camera-SDK-Go-modules@v1.0.0 |
| PowerShell Gallery | VirtualCameraSDK |
Install-Module VirtualCameraSDK -RequiredVersion 1.0.0 -Scope CurrentUser |
| pub.dev | virtual_camera_sdk |
Commande prevue apres publication : dart pub add virtual_camera_sdk:1.0.0
|
| RubyGems | virtual-camera-sdk |
gem install virtual-camera-sdk -v 1.0.0 |
| Packagist | titancsa/virtual-camera-sdk |
composer require titancsa/virtual-camera-sdk:1.0.0 |
Pour vcpkg et Conan, configure d abord le registre TitanCSA avec le guide complet. Le guide explique aussi Maven/Gradle, les prerequis et le chargement des DLL. Les pilotes/applications du produit sont installes separement. Les commandes marquees prevues ne sont pas encore disponibles.
Les anciens imports Go et versions JitPack gardent leurs tags. Pour les anciennes archives SDK, utilise les liens de remplacement.
Commercial integration and support
Important
Full version and commercial licensing
Discord username: titancsa
Open Discord, choose Friends > Add Friend, enter titancsa, then send a direct message. Mention Virtual Camera SDK and ask about the full / production version, commercial use or OEM redistribution.
Include your intended use and deployment size to discuss pricing, availability and the appropriate licensing / access instructions.