Meatcorps.Engine.RayLib.Stream 0.1.17-preview.55

This is a prerelease version of Meatcorps.Engine.RayLib.Stream.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Meatcorps.Engine.RayLib.Stream --version 0.1.17-preview.55
                    
NuGet\Install-Package Meatcorps.Engine.RayLib.Stream -Version 0.1.17-preview.55
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Meatcorps.Engine.RayLib.Stream" Version="0.1.17-preview.55" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Meatcorps.Engine.RayLib.Stream" Version="0.1.17-preview.55" />
                    
Directory.Packages.props
<PackageReference Include="Meatcorps.Engine.RayLib.Stream" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Meatcorps.Engine.RayLib.Stream --version 0.1.17-preview.55
                    
#r "nuget: Meatcorps.Engine.RayLib.Stream, 0.1.17-preview.55"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Meatcorps.Engine.RayLib.Stream@0.1.17-preview.55
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Meatcorps.Engine.RayLib.Stream&version=0.1.17-preview.55&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Meatcorps.Engine.RayLib.Stream&version=0.1.17-preview.55&prerelease
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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