Meatcorps.Engine.RayLib.Stream
0.1.17-preview.54
See the version list below for details.
dotnet add package Meatcorps.Engine.RayLib.Stream --version 0.1.17-preview.54
NuGet\Install-Package Meatcorps.Engine.RayLib.Stream -Version 0.1.17-preview.54
<PackageReference Include="Meatcorps.Engine.RayLib.Stream" Version="0.1.17-preview.54" />
<PackageVersion Include="Meatcorps.Engine.RayLib.Stream" Version="0.1.17-preview.54" />
<PackageReference Include="Meatcorps.Engine.RayLib.Stream" />
paket add Meatcorps.Engine.RayLib.Stream --version 0.1.17-preview.54
#r "nuget: Meatcorps.Engine.RayLib.Stream, 0.1.17-preview.54"
#:package Meatcorps.Engine.RayLib.Stream@0.1.17-preview.54
#addin nuget:?package=Meatcorps.Engine.RayLib.Stream&version=0.1.17-preview.54&prerelease
#tool nuget:?package=Meatcorps.Engine.RayLib.Stream&version=0.1.17-preview.54&prerelease
Meatcorps.Engine.RayLib.Stream — RTSP + H.264/H.265 (macOS experimental)
C# owns a Raylib RenderTexture2D; the native wrapper receives only the texture ID.
The macOS backend performs an OpenGL GPU blit into four private IOSurface-backed
CVPixelBuffers, encodes with hardware-only VideoToolbox (H.264 or H.265), and
passes compressed Annex-B access units to shared GStreamer output code.
The build system selects exactly one platform implementation. Windows and Linux are explicit placeholder backends. C# has no platform setting.
Build (macOS, Homebrew)
brew install cmake pkg-config gstreamer
pkg-config --modversion gstreamer-1.0 gstreamer-app-1.0 gstreamer-rtsp-server-1.0
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
cmake --build build -j
Copy build/libmeatcorps_stream.dylib alongside the .NET executable or configure
the native library search path. Keep Homebrew GStreamer available at runtime.
Live endpoint (default)
using var stream = new Meatcorps.VideoStreaming.VideoStream(new()
{
Width = 1920, Height = 1080, Fps = 60, BitrateKbps = 8000,
Codec = Meatcorps.VideoStreaming.VideoCodec.H265,
Output = Meatcorps.VideoStreaming.VideoOutput.Rtsp,
Port = 8554, RtspPath = "/meatcorps"
});
stream.Start(); // after Raylib.InitWindow
// RenderTexture filled independently by the application:
stream.Update(streamTarget.Texture.Id); // after EndTextureMode
stream.Stop(); // before Raylib.CloseWindow
VLC on the streaming host: rtsp://127.0.0.1:8554/meatcorps.
A remote Pi connects to rtsp://<HOST_IP>:8554/meatcorps.
One shared RTSP media factory serves multiple clients; encode once.
RTSP stops publishing until a client connects; the encoder keeps running.
Switch to MP4 by setting Output = VideoOutput.Mp4 and FilePath = "recording.mp4".
Both codecs use the same mp4mux output and platform encoder.
License
MIT License
See LICENSE for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Meatcorps.Engine.RayLib (>= 0.1.17-preview.54)
-
net8.0
- Meatcorps.Engine.RayLib (>= 0.1.17-preview.54)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.17-preview.57 | 74 | 10/25/2026 |
| 0.1.17-preview.56 | 76 | 10/24/2026 |
| 0.1.17-preview.55 | 80 | 10/20/2026 |
| 0.1.17-preview.54 | 77 | 10/20/2026 |