media-blocks-sdk-net-winforms

Integrate VisioForge Media Blocks SDK .NET into Windows Forms pipelines.

Updated May 29, 2025
One-click install
npx skills add https://github.com/visioforge/help --skill media-blocks-sdk-net-winforms
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: media-blocks-sdk-net-winforms
Source: https://github.com/visioforge/help/tree/main/dotnet/agent-skills/media-blocks-sdk-net-winforms
Command: npx skills add https://github.com/visioforge/help --skill media-blocks-sdk-net-winforms

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you integrate VisioForge Media Blocks SDK .NET into a Windows Forms app so you can build and control custom, graph-based media pipelines for capture, processing, and output.

Core Features & Use Cases

  • Graph-based pipeline integration: create and wire MediaBlocksPipeline with source, transform, and sink blocks using Connect() and pads.
  • Capture-to-preview and capture-to-file/stream: combine camera/mic sources with renderers and optional MP4 recording using tee + encoder + muxer blocks.
  • Real-world WinForms workflow guidance: covers SDK initialization, device enumeration, NuGet/runtime pinning, license registration per pipeline, and common deployment issues (missing DLLs/codecs, trial expiry, preview not rendering).
  • Example template references: provides a ready-to-copy WinForms MainForm pattern (with optional MP4 capture) showing device selection, format/frame-rate selection, branching, and OnError logging.

Quick Start

Follow the WinForms example in references/MainForm.cs to initialize the SDK, enumerate devices, wire a pipeline from video/audio sources through tees into preview renderers, and optionally add H.264/AAC encoding into an MP4 sink for recording.

Frequently Asked Questions about media-blocks-sdk-net-winforms

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a custom media pipeline in WinForms for webcam capture and MP4 recording?

To build a WinForms media pipeline, wire a MediaBlocksPipeline by connecting video and audio source blocks to tee blocks, then route them to preview renderers and an MP4 sink using H.264 and AAC encoders.

Why does my VisioForge Media Blocks pipeline fail to start in WinForms?

Your Media Blocks pipeline may fail to start if the SDK is not initialized correctly or if the required license certificate is not registered per pipeline before calling StartAsync.

Can I use graph-based media pipelines to branch a webcam stream to both preview and file simultaneously?

Yes, you can branch a webcam stream by connecting the source block to a tee block, then wiring the tee pads to separate renderers for real-time preview and encoder blocks for MP4 recording.

What's the best way to handle missing DLLs and codec errors when deploying a WinForms media pipeline application?

To handle missing DLLs and codec errors during deployment, ensure you pin the correct NuGet packages and include the necessary native runtime package references required by the Media Blocks SDK.

Does the Media Blocks SDK require a separate license registration for each pipeline instance?

Yes, the Media Blocks SDK requires per-pipeline license certificate registration before starting the pipeline, ensuring compliance and preventing trial expiry errors during graph execution.