A commercial GStreamer SDK for .NET and C#
Media Blocks SDK .NET is a commercial .NET SDK built on GStreamer. You build pipelines in C# from typed blocks — sources, encoders, effects and sinks — instead of string pipelines and raw elements, and you can still wrap any GStreamer element as a block when you need one.
From €500/year · Lifetime from €1,800
Is there a commercial GStreamer SDK for .NET?
Yes. VisioForge Media Blocks SDK .NET runs its media pipelines on GStreamer and is sold with a commercial license and VisioForge support. It is not a one-to-one copy of the GStreamer API: each block wraps one or more GStreamer elements behind a C# class with a settings object, and MediaBlocksPipeline.Connect links the blocks. When the SDK has no block for an element you need, CustomMediaBlock wraps it by its factory name or a bin description, and hands you the raw Gst.Element.
GStreamer bindings vs Media Blocks SDK .NET
| gstreamer-sharp bindings (GstSharp NuGet package) | Media Blocks SDK .NET | |
|---|---|---|
| What you program against | The GStreamer API itself, generated from GObject introspection: elements, pads, caps and bus messages | Typed blocks with settings classes, connected with MediaBlocksPipeline.Connect; raw elements through CustomMediaBlock |
| GStreamer runtime | Not in the package; you install or bundle GStreamer for every target platform | Windows, macOS, Android and iOS: native libraries in the VisioForge.CrossPlatform.Core.* NuGet packages, plus a Java bindings project on Android. Linux: the distribution's GStreamer 1.22 or later (Ubuntu 24.04 ships 1.24) from its package manager, plus VisioForge.CrossPlatform.Core.Linux.x64 or VisioForge.CrossPlatform.Core.Linux.arm64 |
| Latest NuGet release | GstSharp 1.18.0, published in September 2020, with .NET Framework 4.5 assemblies | VisioForge.DotNet.MediaBlocks, released with every SDK version |
| Elements without a wrapper | Every element is used raw | CustomMediaBlock wraps any element or bin description as a block |
| UI and platforms | Video output and UI integration are yours to build | Video views for WinForms, WPF, WinUI 3, MAUI, Uno Platform and Avalonia across Windows, macOS, Linux, Android and iOS; a Unity package for Windows, macOS, Android and iOS |
| License and support | Open-source bindings | Commercial license, royalty-free distribution, support from VisioForge |
What Media Blocks SDK .NET adds on top of GStreamer
The SDK ships in the VisioForge.DotNet.MediaBlocks NuGet package. GStreamer does the media work; the SDK gives it a C# shape.
- Typed blocks instead of string pipelines: RTSPSourceBlock, H264EncoderBlock or MP4SinkBlock take a settings object, so a typo in an element or property name is a compile error rather than a runtime failure
- Encoder selection: the parameterless H264EncoderBlock picks a hardware encoder when one is available and falls back to a software encoder
- The runtime comes with the NuGet packages on Windows, macOS, Android and iOS; on Linux the SDK uses the distribution's GStreamer
- Any GStreamer element when you need it: CustomMediaBlock takes a factory name or a bin description, sets properties from a dictionary and raises OnElementAdded with the raw Gst.Element
- Your own typed blocks: subclass MediaBlock to wrap an element with a settings class and an IsAvailable() check, the same way the built-in blocks are written
- The same engine in the higher-level SDKs: VideoCaptureCoreX in Video Capture SDK .NET and MediaPlayerCoreX in Media Player SDK .NET run on the same GStreamer-based pipeline
Where it is used
From a gst-launch prototype to a C# application
Rebuild a pipeline you tried on the command line from typed blocks, and keep the element the SDK does not wrap in a CustomMediaBlock.
IP camera recording and restreaming
Record RTSP and ONVIF cameras to MP4 or MPEG-TS and restream them over HLS, RTMP, RTSP or SRT from one pipeline.
Cross-platform media apps
Write the pipeline once in C# and run it on Windows, macOS, Linux, Android and iOS, with video views for WPF, MAUI, Avalonia and the other supported UI frameworks.
Third-party and custom GStreamer plugins
Use a vendor's camera plugin, an element from gst-plugins-bad or a plugin you wrote yourself inside a Media Blocks pipeline.
Code Examples
The first example uses only typed blocks; the second wraps a GStreamer element with CustomMediaBlock, as in the CustomGrayscaleBlock console sample.
Record an RTSP camera to MP4 with typed blocks
C#Wrap any GStreamer element as a block
C#Where GStreamer sits
Your code works with blocks. Each block builds its GStreamer elements when the pipeline starts, and the native GStreamer libraries come from the VisioForge NuGet packages or, on Linux, from the system.
Frequently Asked Questions
Does a commercial .NET SDK for GStreamer exist?▼
Is Media Blocks SDK .NET a one-to-one wrapper of the GStreamer API?▼
Can I use a GStreamer element the SDK does not wrap?▼
Can I use a gst-launch pipeline description?▼
Do I need to install GStreamer separately?▼
Which platforms and UI frameworks are supported?▼
How do I try it?▼
Documentation and samples
Build a MediaBlock from a GStreamer element
CustomMediaBlock and a typed MediaBlock subclass, step by step: pads, properties, dynamic pads and lifecycle.
CustomGrayscaleBlock sample
Console sample that wraps videobalance both ways — with CustomMediaBlock and with a typed subclass — and records each to MP4.
Getting started with pipelines
Create a MediaBlocksPipeline, add and connect blocks, start and stop it.
Special blocks reference
CustomMediaBlock, CustomMediaBlockSettings and CustomMediaBlockPad, with every property.
Deployment guide
Deployment overview for Windows, macOS, Linux, Android and iOS, with a link to the detailed guide for each platform.
Ubuntu deployment
Installing GStreamer 1.22 or later with apt and adding the VisioForge Linux core package.
Start building GStreamer pipelines in C#
Download the fully functional 30-day trial and run the Media Blocks samples. Depending on the output, a watermark or unregistered notice may appear.
SDKs built on GStreamer
Media Blocks SDK .NET
Pipeline SDK: assemble sources, processing blocks and sinks yourself, and wrap any GStreamer element with CustomMediaBlock.
Learn more →Video Capture SDK .NET
Capture SDK: VideoCaptureCoreX records and streams cameras, screens and audio devices on the same GStreamer-based pipeline.
Learn more →Media Player SDK .NET
Player SDK: MediaPlayerCoreX plays files and network streams on the same GStreamer-based pipeline.
Learn more →From €500/year · Lifetime from €1,800
