# VisioForge Documentation and Website Content > This file is very large and may be truncated. For an index of this content, please refer to https://www.visioforge.com/llms.txt instead. > Full text of the most important English help and website pages, most important first: product pages, pricing and licensing, getting started and installation, then the pages people search for and assistants cite most, then deployment and how-to guides, then reference. Every page starts with its URL; the pages left out are on the website and the help site. **Author:** VisioForge **License:** CC-BY-4.0 (https://creativecommons.org/licenses/by/4.0/) **Generated:** 2026-11-28 19:34:58 UTC (ff1943ae30b) **MCP Server:** https://mcp.visioforge.com/mcp (public, no auth — prefer for structured queries) **Content:** 153 of 510 pages **Order:** Google Search clicks 2026-07..2026-10 (MARKETING/seo-reports-2026-11-05/gsc-page-monthly-baseline.csv); AI-answer citations (1 tracker run, newest MARKETING/archive/ai-answers/monthly/2026-11/answers-20261110T112715Z.csv.gz) --- ## VisioForge — Video Capture, Edit & Playback SDKs for .NET **URL:** https://www.visioforge.com/ **Description:** Video and audio SDKs for C#, VB.NET, Delphi. Capture, edit, and play video on Windows, macOS, Linux, iOS, Android. 30-day free trial. # Video recording, capture, editing and playback SDKs VisioForge .NET SDKs capture, play, edit and stream video on Windows, macOS, Linux, iOS and Android, with royalty-free distribution, from €250 per developer per year. [Download Trial](https://files.visioforge.com/trials/visioforge_sdks_installer_dotnet_setup.exe)[Also for macOS (.pkg)](https://files.visioforge.com/trials/visioforge_sdks_installer_dotnet_setup.pkg) [Get the Trial](/download) [View Pricing](/buy)[NuGet](/help/docs/dotnet/install/)[Code Samples on GitHub](https://github.com/visioforge/.Net-SDK-s-samples) Capture, playback and editing from cameras, IP streams, screens and files — for C#, VB.NET and Delphi. Live camera preview with Media Blocks SDK .NETC# ``` // Call from the UI thread once your window exists await VisioForgeX.InitSDKAsync(); var device = (await DeviceEnumerator.Shared.VideoSourcesAsync())[0]; var pipeline = new MediaBlocksPipeline(); var settings = new VideoCaptureDeviceSourceSettings(device); var source = new SystemVideoSourceBlock(settings); // videoView is a control that implements IVideoView var renderer = new VideoRendererBlock(pipeline, videoView); pipeline.AddBlock(source); pipeline.AddBlock(renderer); pipeline.Connect(source.Output, renderer.Input); await pipeline.StartAsync(); // Keep the pipeline in a field; StopAsync() and Dispose() when the window closes ``` ## Advanced tools for video capture VisioForge Video Capture SDK .NET is a C# library for recording video from webcams, IP cameras, desktop screens and capture cards inside your own application. - It connects to USB cameras, to IP cameras over RTSP and ONVIF, and to Blackmagic DeckLink cards on Windows, macOS and Linux. - Recordings are saved to MP4, WebM, MKV or AVI, with hardware encoding on NVIDIA, Intel and AMD GPUs. - One session can preview the picture, record it to a file and stream it over RTMP or SRT at the same time. - The cross-platform engine runs on Windows, macOS, Linux, Android and iOS, and the classic Windows engine adds DV camcorders and TV tuners. For example, a surveillance app can record an IP camera around the clock, while a tutorial tool records the desktop together with microphone audio. Delphi and ActiveX developers get capture through the All-in-One Media Framework. Media Player SDK and Video Edit SDK, shown below, cover playback and editing in the same API style. ## Professional SDK Products Choose the right SDK for your media development needs ### Video Capture SDK .NET High-performance video capture from webcams, IP cameras, DeckLink devices, and screens. Perfect for surveillance and broadcasting. [Product Page](/video-capture-sdk-net) ### Media Player SDK .NET Comprehensive video playback with hardware acceleration, frame-by-frame navigation, and custom overlays. [Product Page](/media-player-sdk-net) ### Media Blocks SDK .NET Modular pipeline SDK for C#: combine 200+ source, processing and output blocks into capture, recording, playback and streaming pipelines. [Product Page](/media-blocks-sdk-net) ### Video Edit SDK .NET Powerful video editing capabilities including trimming, effects, overlays, mixing, and format conversion. [Product Page](/video-edit-sdk-net) ## Build faster apps with our video SDK A video SDK helps developers integrate multi-source video recording into custom apps efficiently. It simplifies capturing from webcams, screens, or IP cameras, providing reliable performance and reducing development time across various multimedia application types. Not sure which SDK fits your project? Compare them in the [SDK Selection Guide](/which-dotnet-sdk). ## Frequently Asked Questions What platforms do VisioForge SDKs support? Our SDKs support Windows, macOS, Linux, iOS, and Android. For .NET developers, we support Unity, WinForms, WPF, MAUI, Uno Platform, and Avalonia. Delphi developers get native VCL components, and ActiveX controls work with VB6 and other COM-compatible environments. Which programming languages can I use? The .NET SDKs work with C# and VB.NET on .NET Framework 4.6.1+ and .NET Core 3.1+ (.NET 5–11). The All-in-One Framework supports Delphi (RAD Studio) and any ActiveX-compatible language including VB6 and C++ Builder. Is there a free trial available? Yes. All VisioForge SDKs include a fully functional 30-day trial. Depending on the SDK engine and output, the trial may display a watermark or an unregistered notice. Internal commercial development is allowed; production use and distribution require a paid license. Can I use the SDKs in commercial applications? Yes. All paid licenses include royalty-free distribution rights for your commercial applications. Features and terms differ by product — check the product page for detailed comparison tables. Do the SDKs support cross-platform development? Yes. The .NET SDKs support cross-platform development with a single codebase for Windows, macOS, Linux, iOS, and Android. Use MAUI for mobile apps, Avalonia for desktop, or platform-specific frameworks like WPF and WinForms. What can I build with VisioForge video recording SDKs? Typical applications include camera and screen recorders, video surveillance and NVR software, webinar and tutorial capture tools, and media processing pipelines. The SDKs handle multiple simultaneous sources, hardware-accelerated encoding, motion detection, and network streaming, so the same components cover both simple recorders and complex multi-camera systems. Can one application combine video capture, playback, and editing? Yes. The SDKs are designed to work together in a single application — for example, recording from a webcam while previewing live video, then playing back or editing the captured files. Bundle licenses cover multiple SDKs, and the shared VisioForge.Core foundation keeps the APIs consistent across products. ## Cross-Platform Support Build applications for any platform with our comprehensive SDK support ### Operating Systems Windows macOS Linux ios iOS Android ### Programming Languages C# C# VB.NET VB.NET C++ C++ Delphi ## Trusted By Industry Leaders Join thousands of companies using VisioForge SDKs to power their applications ...and many more organizations worldwide rely on VisioForge for their media processing needs ## Possible Use Cases Leveraging VisioForge's multimedia SDKs can enable the development of various innovative applications. Here are some ideas: ### [Video conferencing software](/video-capture-sdk-net) Create a state-of-the-art video conferencing application with VisioForge video and audio frameworks for developers, offering high-definition video and crystal-clear audio capabilities. Incorporate features like customizable virtual backgrounds, noise cancellation, and augmented reality filters for a more engaging meeting experience. Allow for interactive elements such as real-time screen sharing, collaborative whiteboards, and session recording. Design the interface for ease of use, ensuring smooth setup and connection even for users with minimal technical expertise. Include advanced security protocols to ensure confidential meetings remain private, making it an ideal solution for corporate, educational, and personal use. ### [Security surveillance systems](/solutions/surveillance) Develop a comprehensive security surveillance system using VisioForge frameworks. This system could feature real-time video processing with support for multiple camera inputs, offering comprehensive coverage and high-resolution footage. Implement advanced AI algorithms for facial recognition, motion detection, and anomaly alerts to enhance security measures. The system could also include features like night vision compatibility, automatic incident recording, and instant alerts to security personnel or law enforcement. Ensure easy scalability to accommodate varying sizes of premises, from small retail stores to large industrial complexes. ### [Live streaming platforms](/solutions/broadcasting) Utilize VisioForge SDKs to build a robust live streaming platform, capable of handling high-quality video and audio streams. This platform could support multi-camera setups, allowing for dynamic angle switching during live events. Integrate real-time video effects and transitions for a professional broadcast feel. Implement adaptive bitrate streaming to ensure optimal viewing experience across different devices and internet speeds. Include features for viewer interaction like live chats, polls, and Q&A sessions. Offer monetization options such as pay-per-view, subscriptions, or advertising. Provide detailed analytics for content creators to track viewer engagement and optimize their broadcasts. ### [Video editing suites](/video-edit-sdk-net) Develop a comprehensive video editing suite with video and audio frameworks for developers, catering to both amateur and professional editors. This suite could offer multi-track editing, various video effects, color correction, and audio mixing tools. Includes advanced features like chroma keying, motion tracking, and 3D editing capabilities. Ensure support for various file formats and high-resolution video output. Design the interface intuitive yet powerful, with customizable workflows and shortcuts for efficient editing. ### [Custom media players](/media-player-sdk-net) Build specialized media players with adaptive streaming, support for niche formats, and customizable interfaces. Tailor features for specific user needs in various contexts like education, entertainment, or professional use. Offer unique functionalities like enhanced accessibility options, playlist management, and integration with content libraries. ## What Our Clients Say Trusted by thousands of developers worldwide "We are a call center and use the VisioForge control to record 100% of our agents while they are in call. This product is easier to use, works better, and with Roman providing both responsive and amazing support it has changed our recording solution for the better. Thanks!!" Andrew Parisio - Senior I.T. Systems Engineer "I really liked your Video Edit SDK .NET, the wonderful features it supports like the audio mixing. And yes the client support is another excellent thing considering the fact that extreme development like video processing will need good support where you meet all the needs." Santhosh V. - .NET developer, Xminds Solutions "Video Capture SDK .NET is an outstanding package for developing video-centric applications in Visual Studio. VisioForge's framework far surpassed the features available in other third-party SDK's. VF has managed to provide an extremely robust solution, that integrates perfectly with current and emerging video standards." Jeremy Littler - UniteCast Lead Developer "The cross-platform support is fantastic. We deployed our application on Windows, macOS, and Linux with minimal code changes. The SDKs handle platform differences seamlessly." Emily Watson - Software Architect "Video Edit SDK saved us months of development time. The built-in effects, transitions, and format conversion work perfectly. It's been rock-solid in production for over two years." James Liu - Full Stack Developer "The GStreamer integration provides incredible flexibility. We can leverage the entire GStreamer ecosystem while enjoying the simplicity of the .NET wrapper. Best of both worlds." Anna Martinez - Technical Lead "Hardware acceleration support across different platforms is superb. NVENC on Windows, VideoToolbox on macOS - everything just works. Our rendering times dropped by 70%." Robert Taylor - Principal Engineer "Deployment is straightforward with clear documentation. The licensing model is flexible, and the fully functional 30-day trial gave us enough time to properly evaluate the SDKs." Lisa Anderson - DevOps Engineer "MAUI and Avalonia support made our cross-platform development much easier. The same codebase works beautifully on desktop and mobile platforms. Truly impressive engineering." Thomas Brown - Mobile Developer ## Ready to Add Video to Your App? Download the fully functional 30-day trial and see how quickly you can build video capture, playback, and editing features. Production use and distribution require a paid license. [Download Trial](https://files.visioforge.com/trials/visioforge_sdks_installer_dotnet_setup.exe)[Also for macOS (.pkg)](https://files.visioforge.com/trials/visioforge_sdks_installer_dotnet_setup.pkg) [Get the Trial](/download) [View Pricing](/buy)[Code Samples on GitHub](https://github.com/visioforge/.Net-SDK-s-samples) ---END OF PAGE--- ## Initialize and Configure VisioForge .NET Video SDKs **URL:** https://www.visioforge.com/help/docs/dotnet/init/ **Description:** Initialize and deinitialize .NET SDKs for video capture, editing, and playback with DirectShow and cross-platform X-engines. **Tags:** Video Capture SDK, Media Player SDK, Media Blocks SDK, Video Edit SDK, .NET, DirectShow, MediaPlayerCoreX, MediaBlocksPipeline, VideoCaptureCoreX, VideoEditCoreX, Windows, macOS, Linux, Android, iOS, Capture, Playback, Editing # Initialization [Video Capture SDK .NET](https://www.visioforge.com/video-capture-sdk-net) [Video Edit SDK .NET](https://www.visioforge.com/video-edit-sdk-net) [Media Blocks SDK .NET](https://www.visioforge.com/media-blocks-sdk-net) [Media Player SDK .NET](https://www.visioforge.com/media-player-sdk-net) ## Type of SDK engines All SDKs contain Windows-only DirectShow-based engines and cross-platform X-engines. ### Windows-only engines - VideoCaptureCore - VideoEditCore - MediaPlayerCore ### X-engines - VideoCaptureCoreX - VideoEditCoreX - MediaPlayerCoreX - MediaBlocksPipeline X-engines require additional initialization and de-initialization steps. ## SDK initialization and de-initialization for X-engines All X-engines (`VideoCaptureCoreX`, `VideoEditCoreX`, `MediaPlayerCoreX`, `MediaBlocksPipeline`) use one shared initialization step. You must initialize the SDK before any SDK class usage and de-initialize the SDK before the application exits. The Windows-only DirectShow cores (`VideoCaptureCore`, `VideoEditCore`, `MediaPlayerCore`) need no initialization step. ### Calling InitSDKAsync The recommended way is asynchronous, so a cold GStreamer startup (native library resolution, plugin registry scan) does not freeze the calling thread: ``` await VisioForge.Core.VisioForgeX.InitSDKAsync(); ``` The blocking form is equivalent and may be called from any thread. Use it directly when initialization must run on a specific thread (see the note below): ``` VisioForge.Core.VisioForgeX.InitSDK(); ``` `InitSDKAsync` offloads `InitSDK` to a thread-pool thread via `Task.Run`. GStreamer / GLib unhandled-exception handlers are bound to whichever thread first triggered initialization, so if your application relies on init running on a particular thread (for thread-static GLib state), call `InitSDK()` on that thread directly. Call `InitSDK` before any availability check as well. Until it has run, an `IsAvailable()` that looks up a GStreamer element throws an exception asking you to call `InitSDK`; it does not return `false`. Some constructors that pick a default encoder or decoder throw as well: on every platform `new HEVCEncoderBlock()`, `new UniversalDecoderBlock(...)` and the parameterless `H264DecoderBlock`, `HEVCDecoderBlock`, `VP8DecoderBlock` and `VP9DecoderBlock` constructors; on Windows and Linux `new H264EncoderBlock()`. ### De-initialization ``` VisioForge.Core.VisioForgeX.DestroySDK(); ``` `DestroySDK` has no asynchronous variant and may be called from any thread. If the SDK is not properly deinitialized, the application may experience a hang-on exit due to the inability to finalize one of its threads. This issue arises because the SDK continues to operate, preventing the application from closing smoothly. To ensure a clean exit, it is crucial to deinitialize the SDK appropriately based on the UI framework you are using. For applications developed using different UI frameworks, you can deinitialize the SDK in the `FormClosing` event or another relevant event handler. This approach ensures that the SDK is properly destroyed before the application closes, allowing for all threads to terminate correctly. Moreover, the SDK can be destroyed from any thread, providing flexibility in how you manage the deinitialization process. Because `DestroySDK` is synchronous, if you want to keep the user interface responsive call it on a background thread (for example via `Task.Run`) — there is no asynchronous `DestroySDK` overload. Implementing these practices ensures that your application exits smoothly without hanging, providing a seamless experience for the users. Properly managing the SDK deinitialization is crucial for maintaining the stability and performance of your application. --- Visit our [GitHub](https://github.com/visioforge/.Net-SDK-s-samples) page to get more code samples. ---END OF PAGE--- ## VisioForge .NET SDK Cross-Platform Deployment Guide **URL:** https://www.visioforge.com/help/docs/dotnet/deployment-x/ **Description:** Deploy .NET applications on Windows, macOS, iOS, Android, and Linux with native libraries, platform dependencies, and UI framework integration. **Tags:** Video Capture SDK, Media Player SDK, Media Blocks SDK, Video Edit SDK, .NET, Windows, macOS, Linux, Android, iOS # Cross-Platform Deployment Guide for VisioForge .NET SDK [Video Capture SDK .NET](https://www.visioforge.com/video-capture-sdk-net) [Video Edit SDK .NET](https://www.visioforge.com/video-edit-sdk-net) [Media Player SDK .NET](https://www.visioforge.com/media-player-sdk-net) [Media Blocks SDK .NET](https://www.visioforge.com/media-blocks-sdk-net) ## Introduction to VisioForge SDK Deployment The VisioForge SDK suite provides powerful multimedia capabilities for .NET applications, supporting video capture, editing, playback, and advanced media processing across multiple platforms. Proper deployment is critical to ensure your applications function correctly and leverage the full potential of these SDKs. This comprehensive guide outlines the deployment process for applications built with VisioForge's cross-platform .NET SDKs, helping you navigate the specific requirements of each supported operating system. ## Deployment Overview Deploying applications built with VisioForge SDKs requires careful consideration of platform-specific dependencies and configurations. The deployment process varies significantly depending on your target platform due to differences in: - Native library requirements - Media framework dependencies - Hardware access mechanisms - Package distribution methods ### Key Deployment Considerations Before beginning the deployment process, consider these critical factors: 1. **Target Platform Architecture**: Ensure you select the appropriate architecture (x86, x64, ARM64) for your deployment platform 2. **Required Dependencies**: Some platforms require additional libraries that aren't included in NuGet packages 3. **Framework Compatibility**: Verify compatibility between your .NET version and the target operating system 4. **Native Library Integration**: Understand how native libraries are integrated and loaded on each platform 5. **UI Framework Selection**: Choose the appropriate UI integration package for your selected framework ## Platform-Specific Deployment ### Windows Deployment Windows deployment is the most straightforward, with comprehensive NuGet package support covering all dependencies: - **Package Distribution**: All components available via NuGet - **Architecture Support**: Both x86 and x64 architectures fully supported; ARM64 (Windows on Arm) too, where MP3 playback needs `VisioForge.CrossPlatform.Libav.Windows.arm64` and NDI is not available - **Native Libraries**: Automatically deployed alongside your application - **UI Framework Options**: Windows Forms, WPF, WinUI, Avalonia, Uno, and MAUI supported For detailed Windows deployment instructions, see the [Windows deployment guide](Windows/). ### Android Deployment Android deployment requires specific configuration for native library extraction and permissions: - **Package Distribution**: Core components available via NuGet - **Architecture Support**: ARM64, ARMv7, and x86\_64 architectures supported - **Native Libraries**: Requires proper configuration for extraction to the correct location - **Permissions**: Camera, microphone, and storage permissions must be explicitly requested - **UI Integration**: Android-specific video view controls required Android applications use a single native library that must be correctly deployed. Review the [Android deployment guide](Android/) for complete instructions. ### macOS Deployment On macOS the native libraries, GStreamer included, come in a NuGet package: - **Package Distribution**: Core components and the GStreamer libraries available via NuGet (`VisioForge.CrossPlatform.Core.macOS`, plus `VisioForge.CrossPlatform.Core.macOS.Adds` for additional plugins such as SRT); no separate GStreamer installation is needed - **Architecture Support**: Intel (x64) and Apple Silicon (ARM64) architectures supported - **Native Libraries**: Multiple unmanaged libraries required - **Framework Options**: Native macOS, MAUI, and Avalonia supported - **Bundle Integration**: Special attention needed for proper app bundle structure macOS deployments may require specific entitlements and permissions configurations. See the [macOS deployment guide](macOS/) for detailed instructions. ### iOS Deployment iOS deployment involves unique challenges related to Apple's platform restrictions: - **Package Distribution**: Core components available via NuGet - **Architecture Support**: ARM64 architecture supported - **App Store Guidelines**: Special considerations for App Store submissions - **Native Libraries**: Single unmanaged binary library to deploy - **UI Integration**: iOS-specific video view controls required iOS applications require proper provisioning profiles and entitlements. The [iOS deployment guide](iOS/) provides comprehensive instructions. ### Ubuntu/Linux Deployment Linux deployment requires manual installation of GStreamer dependencies: - **Package Distribution**: Core components available via NuGet (`VisioForge.CrossPlatform.Core.Linux.x64` or `VisioForge.CrossPlatform.Core.Linux.arm64`), GStreamer requires system packages - **Architecture Support**: x64 and ARM64 architectures supported - **System Dependencies**: Required packages must be installed on the target system - **Distribution Considerations**: Different Linux distributions may require different dependency packages - **UI Options**: Primarily Avalonia UI framework supported Linux deployment often involves distribution-specific package management. The [Ubuntu deployment guide](Ubuntu/) provides instructions for Ubuntu-based distributions. ### Uno Platform Deployment Uno Platform enables deploying applications from a single codebase to multiple platforms: - **Package Distribution**: Core components available via NuGet with platform-specific redistributables - **Supported Platforms**: Windows, Android, iOS, macOS (Catalyst), and Linux Desktop - **Architecture Support**: Varies by target platform - **Native Libraries**: Platform-specific redistributables required for each target - **UI Integration**: Uno-specific VideoView control adapts to each platform Uno Platform simplifies multi-platform development while leveraging native capabilities. See the [Uno Platform deployment guide](uno/) for comprehensive instructions. ### Runtime Requirements Target devices must meet these minimum requirements: - **Windows**: Windows 10 or later (x86 or x64), and Windows on Arm (ARM64) - **macOS**: macOS 12 (Monterey) or later (x64 or ARM64) - **iOS**: iOS 18.0 or later (ARM64) - **Android**: Android 7.0 (API level 24) or later - **Linux**: Ubuntu 22.04 LTS or later, Debian 12 or later, or another distribution with GStreamer 1.20 or later (x64 or ARM64); some features, such as the OpenCV blocks and the ONVIF audio backchannel, need GStreamer 1.22 or later (Ubuntu 24.04, Debian 12) ## Common Deployment Challenges ### Native Library Loading Issues One of the most common deployment problems involves native library loading failures: - **Symptoms**: Runtime exceptions mentioning DllNotFoundException or similar - **Causes**: Incorrect architecture, missing dependencies, or improper extraction - **Solutions**: Verify package references, check deployment configuration, ensure libraries are in the correct location ### Permission and Security Constraints Modern operating systems enforce strict security policies: - **Camera Access**: Requires explicit permission on all mobile platforms - **Storage Access**: File system restrictions vary by platform - **Network Usage**: May require specific entitlements or manifest entries - **Background Operation**: Platform-specific rules for background media processing ### Performance Considerations Media processing can be resource-intensive: - **CPU Usage**: Implement appropriate threading to avoid UI freezing - **Memory Management**: Monitor and optimize memory usage for large media files - **Power Consumption**: Balance quality settings with battery life considerations ## Deployment Checklist Use this checklist to ensure a successful deployment: - ✅ Correct NuGet packages selected for target platform and architecture - ✅ Platform-specific dependencies installed and configured - ✅ SDK properly initialized and cleaned up - ✅ Appropriate video view controls integrated - ✅ Required permissions requested and justified - ✅ Application tested on target platform under realistic conditions - ✅ Performance metrics validated for acceptable user experience - ✅ Error handling implemented for graceful recovery ## Computer Vision Deployment Computer Vision SDK is a separate NuGet package. Check the [Computer Vision deployment guide](computer-vision/) for more information. ## Additional Resources - [VisioForge GitHub Repository](https://github.com/visioforge/.Net-SDK-s-samples) - Code samples and example projects - [API Documentation](https://api.visioforge.org/dotnet/) - Comprehensive API reference - [Support Portal](https://helpdesk.visioforge.com/helpdesk/my-tickets) - Technical support and knowledge base ---END OF PAGE--- ## Video Capture SDK for C# .NET - Webcam, Screen, IP Camera **URL:** https://www.visioforge.com/help/docs/dotnet/videocapture/ **Description:** Record webcam, screen, and IP camera (RTSP/ONVIF) to MP4 with VisioForge Video Capture SDK. Cross-platform async API with GPU encoding for WinForms, WPF, MAUI. **Tags:** Video Capture SDK, .NET, DirectShow, Windows, macOS, Linux, Android, iOS, Capture, Streaming **API:** MP4Output, DeviceEnumerator, VideoCaptureCoreX, VideoCaptureDeviceSourceSettings, VideoView # Video Capture SDK for C# .NET — Webcam, Screen, and IP Camera Capture API [Video Capture SDK .NET](https://www.visioforge.com/video-capture-sdk-net) ## Introduction The Video Capture SDK for .NET is a C# video capture API that lets you record from webcams, IP cameras (RTSP/ONVIF), and screens in your .NET applications. It replaces low-level DirectShow video capture code with a modern async API — enumerate devices, configure sources, and start recording in a few lines of C#. The SDK handles device enumeration, format negotiation, GPU-accelerated encoding, and file output across Windows, macOS, and Linux. Whether you need to save an RTSP stream to file, capture photos from a webcam, or build a screen capture tool, the API covers it. ## Quick Start ### 1. Install NuGet Packages ``` dotnet add package VisioForge.DotNet.VideoCapture ``` Add platform-specific native dependencies: ``` ``` On Linux ARM64, `VisioForge.CrossPlatform.Core.Linux.arm64` replaces the `.Linux.x64` package; see [Ubuntu deployment](../deployment-x/Ubuntu/) for a project fragment that picks one by runtime identifier. For the full list of packages and UI framework support (WinForms, WPF, MAUI, Avalonia), see the [Installation Guide](../install/). ### 2. Initialize the SDK Call `InitSDKAsync()` once at application startup before using any capture functionality. In a WPF or WinForms app, await it in an `async` handler of the window's `Loaded` event (WPF) or the form's `Load` event (WinForms), before the capture object is created: ``` using VisioForge.Core; await VisioForgeX.InitSDKAsync(); ``` ### 3. Add a VideoView The preview renders into a `VideoView` control named `videoView`. For WPF and WinForms the control is in the `VisioForge.Core` assembly, which `VisioForge.DotNet.VideoCapture` brings in, so no extra UI package is needed. WPF: in `MainWindow.xaml`, declare the `vf` namespace on the `` element and place the control: ``` ``` WinForms: create the control in the form's code: ``` // Form1.cs private readonly VisioForge.Core.UI.WinForms.VideoView videoView = new VisioForge.Core.UI.WinForms.VideoView { Dock = DockStyle.Fill }; public Form1() { InitializeComponent(); Controls.Add(videoView); // add this line to the existing constructor } ``` For MAUI, Avalonia, WinUI and Uno, see the [Installation Guide](../install/). ### 4. C# Webcam Capture to MP4 (Minimal Example) The `using` directives go at the top of the file; the rest runs from an `async` event handler of the window or form, such as the window's `Loaded` event (WPF), the form's `Load` event (WinForms) or a button's `Click` handler. When the stop lines run from another handler (a Stop button), keep `capture` in a field instead of a local variable. ``` using VisioForge.Core; using VisioForge.Core.VideoCaptureX; using VisioForge.Core.Types.X.Sources; using VisioForge.Core.Types.X.Output; // Create capture instance linked to a VideoView control var capture = new VideoCaptureCoreX(videoView); // Enumerate available devices var videoDevices = await DeviceEnumerator.Shared.VideoSourcesAsync(); var audioDevices = await DeviceEnumerator.Shared.AudioSourcesAsync(); // Configure video and audio sources capture.Video_Source = new VideoCaptureDeviceSourceSettings(videoDevices[0]); capture.Audio_Source = audioDevices[0].CreateSourceSettingsVC(); capture.Audio_Record = true; capture.Audio_Play = false; // record only, no speaker monitoring // Add MP4 output (H.264 + AAC, GPU-accelerated when available) capture.Outputs_Add(new MP4Output("recording.mp4")); // With a purchased license, call SetLicenseCertificateAsync here (step 5) // Start capture await capture.StartAsync(); // ... when done: await capture.StopAsync(); await capture.DisposeAsync(); ``` ### 5. Apply Your License Without a license the SDK runs as a 30-day trial. A purchase gives you a `.vflicense` certificate file, not a key. Load it into every capture instance before `StartAsync()`; licensing one instance does not license another. The code below reads it from the app's folder: add `your.vflicense` to the project and set its **Copy to Output Directory** property in Visual Studio: ``` var licensePath = System.IO.Path.Combine(System.AppContext.BaseDirectory, "your.vflicense"); await capture.SetLicenseCertificateAsync(System.IO.File.ReadAllBytes(licensePath)); ``` See [Licensing](https://www.visioforge.com/licensing) for details. ### 6. Cleanup at Shutdown Call `VisioForgeX.DestroySDK()` once when the app exits, after every capture instance has been stopped and disposed, for example in the window's `Closed` event (WPF) or the form's `FormClosed` event (WinForms): ``` VisioForgeX.DestroySDK(); ``` ## Core Workflow Every capture application follows the same pattern: 1. **Initialize SDK** — `VisioForgeX.InitSDKAsync()` (once per app lifetime) 2. **Enumerate devices** — `DeviceEnumerator.Shared.VideoSourcesAsync()` / `AudioSourcesAsync()` 3. **Create capture object** — `new VideoCaptureCoreX(videoView)` for preview, or without a view for headless recording 4. **Configure source** — Set `Video_Source` to a webcam, IP camera, screen, or other source 5. **Configure output** — Add one or more outputs: `MP4Output`, `WebMOutput`, `AVIOutput`, etc. 6. **Start** — `await capture.StartAsync()` 7. **Stop** — `await capture.StopAsync()` finalizes the output file 8. **Dispose** — `await capture.DisposeAsync()` releases all resources ## Common C# Video Capture Scenarios ### Record Webcam Video in C# Record from a USB webcam or built-in camera to MP4 with H.264/AAC: ``` capture.Video_Source = new VideoCaptureDeviceSourceSettings(device); capture.Outputs_Add(new MP4Output("webcam.mp4")); ``` See the full tutorial: [Save Webcam Video in C#](guides/save-webcam-video/) ### Save RTSP Stream to File in C# Connect to IP cameras and save RTSP streams to MP4 files. Supports RTSP, ONVIF, and HTTP protocols: ``` // RTSPSourceSettings has a private ctor — construct via the async factory // so the source can probe codecs before the pipeline starts. capture.Video_Source = await RTSPSourceSettings.CreateAsync( new Uri("rtsp://192.168.1.100:554/stream"), login: "admin", password: "password", audioEnabled: true); capture.Outputs_Add(new MP4Output("ipcam.mp4")); ``` See: [IP Camera to MP4](video-tutorials/ip-camera-capture-mp4/) | [RTSP Guide](video-sources/ip-cameras/rtsp/) | [ONVIF Guide](video-sources/ip-cameras/onvif/) ### C# Screen Capture to MP4 Record the desktop or a specific screen region to MP4: ``` // X-engine screen capture on Windows uses ScreenCaptureD3D11SourceSettings // (other platforms: ScreenCaptureGDISourceSettings, ScreenCaptureMacOSSourceSettings, // ScreenCaptureXDisplaySourceSettings — all implement IVideoCaptureBaseVideoSourceSettings). capture.Video_Source = new ScreenCaptureD3D11SourceSettings { FrameRate = new VideoFrameRate(30), CaptureCursor = true, }; capture.Outputs_Add(new MP4Output("screen.mp4")); ``` See: [Screen Capture to MP4](video-tutorials/screen-capture-mp4/) ### Audio-Only Recording Record from a microphone without video: ``` capture.Video_Source = null; // disable video for audio-only capture capture.Audio_Source = audioDevices[0].CreateSourceSettingsVC(); capture.Audio_Record = true; capture.Audio_Play = false; // record only, no speaker monitoring capture.Outputs_Add(new MP4Output("audio.mp4")); ``` ### Capture Photo from Webcam Grab a still image from the live webcam video feed: ``` capture.Snapshot_Grabber_Enabled = true; await capture.StartAsync(); // Later, save a frame: await capture.Snapshot_SaveAsync("photo.jpg", SKEncodedImageFormat.Jpeg, 85); ``` See: [Webcam Photo Capture](guides/make-photo-using-webcam/) ## Supported Input Devices ### Cameras and Capture Hardware - USB webcams and capture devices (up to 4K) - DV and HDV MPEG-2 camcorders (Windows, classic `VideoCaptureCore` engine) - Professional PCI capture cards - Television tuners with and without MPEG encoder (Windows, classic `VideoCaptureCore` engine, [guide](video-sources/tv-tuner/)) ### Network and IP Cameras - RTSP-enabled IP cameras - JPEG/MJPEG HTTP cameras - RTMP streaming sources - ONVIF-compatible cameras - SRT and NDI sources Browse our [IP camera brands directory](../camera-brands/) for brand-specific RTSP URLs and connection guides covering 60+ manufacturers. ### Professional and Industrial Equipment - Blackmagic Decklink capture devices - GenICam / GigE Vision / USB3 Vision industrial cameras ### Audio Sources - System audio capture devices and sound cards - Professional ASIO audio devices - Audio loopback (system sound) capture ## Output Formats and Encoders The SDK supports multiple output containers and codecs. GPU-accelerated encoding (NVIDIA NVENC, AMD AMF, Intel Quick Sync) is used automatically when available. | Format | Video Codecs | Audio Codecs | Use Case | | --- | --- | --- | --- | | MP4 | H.264, H.265 (HEVC) | AAC | General purpose, widest compatibility | | WebM | VP8, VP9, AV1 | Vorbis, Opus | Web delivery, royalty-free | | AVI | MJPEG, custom codecs | PCM, MP3 | Legacy compatibility | | MKV | H.264, H.265, VP9 | AAC, Vorbis, FLAC | Flexible container, multiple tracks | | GIF | Animated GIF | — | Short clips, previews | For detailed codec configuration, see [Output Formats](../general/output-formats/mp4/) and [Video Encoders](../general/video-encoders/h264/). ## Platform Support | Platform | UI Frameworks | Notes | | --- | --- | --- | | Windows x64 | WinForms, WPF, MAUI, Avalonia, Console | Full feature set including DirectShow sources | | macOS | MAUI, Avalonia, Console | AVFoundation camera access | | Linux x64, ARM64 | Avalonia, Console | V4L2 camera access | | Android | MAUI | Via MAUI camera integration | | iOS | MAUI | Via MAUI camera integration | ## Migrating from DirectShow Video Capture If you're currently using DirectShow (DirectShow.NET) for video capture in C#, the Video Capture SDK provides a modern replacement. Instead of manually building filter graphs with `IGraphBuilder`, connecting pins, and managing COM objects, you use typed settings classes and async methods. | DirectShow Concept | Video Capture SDK Equivalent | | --- | --- | | `IGraphBuilder` filter graph | Managed automatically by `VideoCaptureCoreX` | | `ICaptureGraphBuilder2` | Not needed — source and output configured via properties | | Device enumeration via `DsDevice` | `DeviceEnumerator.Shared.VideoSourcesAsync()` | | `ISampleGrabber` for frame access | `Snapshot_SaveAsync()` or `OnVideoFrameBuffer` event | | Manual pin connection | Automatic — or use [Media Blocks SDK](../mediablocks/GettingStarted/) for explicit pipelines | | COM cleanup / `Marshal.ReleaseComObject` | Standard `IAsyncDisposable` pattern | For a detailed migration guide with side-by-side code examples, see [Migrate from DirectShow.NET](https://www.visioforge.com/compare/migrate-from-directshow-net). ## Developer Documentation ### Core Functionality - [Configuring Video Sources](video-sources/) - [Configuring Audio Sources](audio-sources/) - [Video Processing and Effects](video-processing/) - [Audio Rendering](audio-rendering/) ### Advanced Features - [Video Capture Implementation](video-capture/) - [Audio Capture Implementation](audio-capture/) - [Motion Detection](motion-detection/) - [Network Streaming](network-streaming/) - [Pre-Event Recording](guides/pre-event-recording/) - [Synchronizing Multiple Captures](guides/start-in-sync/) ### Tutorials (Step-by-Step with Code) - [Webcam to MP4](video-tutorials/video-capture-webcam-mp4/) | [to AVI](video-tutorials/video-capture-camera-avi/) | [to WMV](video-tutorials/video-capture-webcam-wmv/) - [Screen Capture to MP4](video-tutorials/screen-capture-mp4/) | [to AVI](video-tutorials/screen-capture-avi/) | [to WMV](video-tutorials/screen-capture-wmv/) - [IP Camera Preview](video-tutorials/ip-camera-preview/) | [IP Camera to MP4](video-tutorials/ip-camera-capture-mp4/) - [Text Overlay on Webcam](video-tutorials/webcam-capture-text-overlay/) - [Camera Video Preview](video-tutorials/camera-video-preview/) - [All Video Tutorials](video-tutorials/) ### Guides - [Save Webcam Video in C#](guides/save-webcam-video/) - [Record Webcam in VB.NET](guides/record-webcam-vb-net/) - [Screen Capture in VB.NET](guides/screen-capture-vb-net/) - [Webcam Photo Capture](guides/make-photo-using-webcam/) - [All Guides](guides/) ### Integration - [Third-Party Software Integration](3rd-party-software/) - [Computer Vision (Face Detection)](computer-vision/) - [MAUI Camera Recording](maui/camera-recording-maui/) ## Developer Resources - [Code Samples on GitHub](https://github.com/visioforge/.Net-SDK-s-samples/) - [Deployment Guidelines](deployment/) - [API Reference](https://api.visioforge.org/dotnet/api/index.html) - [Changelog](../changelog/) - [End User License Agreement](../../eula/) - [Licensing Information](https://www.visioforge.com/licensing) ---END OF PAGE--- ## Video Player API for C# .NET — Play, Stream, Embed **URL:** https://www.visioforge.com/help/docs/dotnet/mediaplayer/ **Description:** Embed video and audio playback into your app with VisioForge Media Player SDK .NET. Supports MP4, MKV, RTSP, HLS across Windows, macOS, Linux, and mobile. **Tags:** Media Player SDK, .NET, DirectShow, Windows, macOS, Linux, Android, iOS, Playback, Streaming **API:** UniversalSourceSettings, MediaPlayerCoreX, VideoView # Media Player SDK for C# .NET — Video Player, Audio Player, and Streaming API [Media Player SDK .NET](https://www.visioforge.com/media-player-sdk-net) ## Introduction The Media Player SDK for .NET is a C# video player API that lets you play video and audio files, network streams (RTSP, HLS, MPEG-DASH), and special content like 360-degree videos in your .NET applications. It replaces low-level DirectShow playback code and Windows Media Player SDK integration with a modern async API — open a file, start playback, and control seeking and volume in a few lines of C#. The SDK uses GStreamer-based decoding with hardware acceleration and runs on Windows, macOS, Linux, Android, and iOS. Whether you need to build a desktop video player, embed media playback in a kiosk app, or stream RTSP feeds from IP cameras, the API covers it. ## Quick Start ### 1. Install NuGet Packages ``` dotnet add package VisioForge.DotNet.MediaPlayer ``` Add platform-specific native dependencies: ``` ``` On Linux ARM64, `VisioForge.CrossPlatform.Core.Linux.arm64` replaces the `.Linux.x64` package; see [Ubuntu deployment](../deployment-x/Ubuntu/) for a project fragment that picks one by runtime identifier. For the full list of packages and UI framework support (WinForms, WPF, MAUI, Avalonia), see the [Installation Guide](../install/). ### 2. Initialize the SDK Call `InitSDKAsync()` once at application startup before using any playback functionality: ``` using VisioForge.Core; await VisioForgeX.InitSDKAsync(); ``` ### 3. Play Video in C# (Minimal Example) ``` using VisioForge.Core; using VisioForge.Core.MediaPlayerX; using VisioForge.Core.Types.X.Sources; // Create player instance linked to a VideoView control var player = new MediaPlayerCoreX(videoView); // Open a video file var source = await UniversalSourceSettings.CreateAsync( "C:\\Videos\\sample.mp4"); await player.OpenAsync(source); // Start playback await player.PlayAsync(); // ... when done: await player.StopAsync(); await player.DisposeAsync(); ``` ### 4. Cleanup at Shutdown ``` VisioForgeX.DestroySDK(); ``` ## Core Workflow Every media player application follows the same pattern: 1. **Initialize SDK** — `VisioForgeX.InitSDKAsync()` (once per app lifetime) 2. **Create player** — `new MediaPlayerCoreX(videoView)` for video, or without a view for audio-only 3. **Open media** — `await player.OpenAsync(source)` with a file path or stream URL 4. **Play** — `await player.PlayAsync()` 5. **Control playback** — seek with `Position_SetAsync()`, pause with `PauseAsync()`, adjust volume 6. **Stop** — `await player.StopAsync()` 7. **Dispose** — `await player.DisposeAsync()` releases all resources 8. **Destroy SDK** — `VisioForgeX.DestroySDK()` at application shutdown ## Common C# Video Player Scenarios ### Play Video File in C# (MP4, AVI, MKV) Open and play any supported video file with automatic codec detection: ``` var source = await UniversalSourceSettings.CreateAsync( "movie.mp4"); await player.OpenAsync(source); await player.PlayAsync(); ``` See the full tutorial: [Build a Video Player in C#](guides/video-player-csharp/) ### Play RTSP Stream in C# Play live video from IP cameras and RTSP sources. Supports RTSP, HTTP, HLS, and MPEG-DASH: ``` var source = await UniversalSourceSettings.CreateAsync( new Uri("rtsp://admin:password@192.168.1.100:554/stream")); await player.OpenAsync(source); await player.PlayAsync(); ``` ### Audio-Only Playback Play audio files (MP3, AAC, FLAC, WAV) without a video view: ``` var player = new MediaPlayerCoreX(); // no VideoView needed var source = await UniversalSourceSettings.CreateAsync( "music.mp3"); await player.OpenAsync(source); await player.PlayAsync(); ``` ### Extract Frame from Video Grab a still image from the current playback position: ``` // Save the current frame directly to disk — the simplest path. bool saved = await player.Snapshot_SaveAsync("screenshot.jpg", SkiaSharp.SKEncodedImageFormat.Jpeg, quality: 85); // Or grab the raw VideoFrameX for in-memory processing (caller owns the pixel buffer). var frame = await player.Snapshot_GetAsync(); if (frame != null) { // frame.Data (IntPtr), frame.DataSize, frame.Width, frame.Height, frame.Stride, frame.Format. // Free the unmanaged buffer when done: frame.Free(); } ``` See: [Get a Specific Frame from a Video File](code-samples/get-frame-from-video-file/) ### Seeking, Volume, and Speed Control ``` // Seek to a specific position await player.Position_SetAsync(TimeSpan.FromSeconds(30)); // Get current position and duration var position = await player.Position_GetAsync(); var duration = await player.DurationAsync(); // Adjust volume (0.0 to 1.0) player.Audio_OutputDevice_Volume = 0.8; // Change playback speed (0.25x to 4.0x) await player.Rate_SetAsync(1.5); ``` ### Loop Playback and Segment Play Play a specific segment of a file or loop continuously: ``` // Enable loop mode player.Loop = true; // Play a specific time range player.Segment_Start = TimeSpan.FromSeconds(10); player.Segment_Stop = TimeSpan.FromSeconds(60); ``` See: [Loop Mode and Position Range Playback](guides/loop-and-position-range/) ## Supported Formats | Category | Formats | | --- | --- | | Video Containers | MP4, AVI, MKV, WMV, WebM, MOV, TS, MTS, FLV | | Audio Formats | MP3, AAC, WAV, WMA, FLAC, OGG, Vorbis | | Video Codecs | H.264, H.265/HEVC, VP8, VP9, AV1, MPEG-2 | | Streaming Protocols | RTSP, HTTP, HLS, MPEG-DASH | ## Platform Support | Platform | UI Frameworks | Notes | | --- | --- | --- | | Windows x64 | WinForms, WPF, WinUI, MAUI, Avalonia, Console | Full feature set including DirectShow engine | | macOS | MAUI, Avalonia, Console | AVFoundation-based rendering | | Linux x64, ARM64 | Avalonia, Console | GStreamer-based decoding | | Android | MAUI | Via MAUI integration | | iOS | MAUI | Via MAUI integration | For cross-platform implementations, see the [Avalonia Player Guide](guides/avalonia-player/) (desktop, includes Linux) or the [.NET MAUI Player Guide](guides/maui-player/) (mobile + desktop). ## Developer Documentation ### Guides - [Build a Video Player in C# (WinForms / WPF)](guides/video-player-csharp/) - [Build a Video Player in VB.NET](guides/video-player-vb-net/) - [Avalonia Player Implementation](guides/avalonia-player/) - [.NET MAUI Player](guides/maui-player/) - [Android Player Implementation](guides/android-player/) - [Loop Mode and Position Range](guides/loop-and-position-range/) - [All Guides](guides/) ### Code Examples - [Get a Frame from a Video File](code-samples/get-frame-from-video-file/) - [Play a Fragment of a File](code-samples/play-fragment-file/) - [Show the First Frame](code-samples/show-first-frame/) - [Memory Playback](code-samples/memory-playback/) - [Playlist API](code-samples/playlist-api/) - [Reverse Video Playback](code-samples/reverse-video-playback/) - [All Code Examples](code-samples/) ### Deployment - [Deployment Guide](deployment/) ## Developer Resources - [Code Samples on GitHub](https://github.com/visioforge/.Net-SDK-s-samples/) - [API Reference](https://api.visioforge.org/dotnet/api/index.html) - [Changelog](../changelog/) - [End User License Agreement](../../eula/) - [Licensing Information](https://www.visioforge.com/licensing) ---END OF PAGE--- ## Getting Started - Timeline Video Editing API in C# .NET **URL:** https://www.visioforge.com/help/docs/dotnet/videoedit/getting-started/ **Description:** Set up your first project with VisioForge Video Edit SDK .NET. Customizable timelines, multi-format support, transitions, effects, and live preview. **Tags:** Video Edit SDK, .NET, VideoEditCoreX, Windows, macOS, Linux, Android, iOS, Playback, Editing, MP4, C# **API:** VideoEditCoreX, VideoEditCore, VideoSource, VideoFileSource, IVideoView # Building Professional Video Editing Applications with .NET SDK ## Introduction to Video Editing with .NET The Video Edit SDK offers powerful functionality for .NET developers who want to create professional video editing applications. This SDK supports a wide range of platforms and UI frameworks, enabling you to build feature-rich video editors that handle multiple formats, apply effects, manage transitions, and deliver high-quality output. ## Setting Up Your Development Environment ### Creating Your Initial Project The SDK is designed to work seamlessly with various development environments. You can utilize either Visual Studio or JetBrains Rider to create your project, selecting your preferred platform and UI framework according to your requirements. For a smooth setup process, please refer to our detailed [installation guide](../../install/) which provides instructions for adding the necessary NuGet packages and setting up native dependencies correctly. ## Implementing Core Video Editing Functionality ### Initializing the Video Editing Engine The SDK provides a robust core editing object that serves as the foundation of your video editing application. `VideoEditCoreX` is an X-engine and requires SDK initialization before any core is created (see [Initialization](../../init/)); the DirectShow `VideoEditCore` does not. Follow these steps to create and initialize this essential component: VideoEditCoreVideoEditCoreX ``` private VideoEditCore core; core = new VideoEditCore(VideoView1 as IVideoView); ``` ``` private VideoEditCoreX core; private async void Form_Load(object sender, EventArgs e) { // X-engine: initialize the SDK once before any core is created. // InitSDKAsync can fail (e.g. native libs missing, or init failed on another thread); guard so the app doesn't crash. try { await VisioForge.Core.VisioForgeX.InitSDKAsync(); } catch (Exception ex) { // Log the init failure instead of crashing on a faulted async void await. System.Diagnostics.Debug.WriteLine($"SDK initialization failed: {ex.Message}"); return; } core = new VideoEditCoreX(VideoView1 as IVideoView); } ``` You'll need to specify a Video View object as a parameter to enable video preview functionality during editing operations. For the `VideoEditCoreX` engine, initialize the SDK and create the core inside an `async void Form_Load` handler (or your equivalent startup path) before wiring up the editor — the engine's `core` is ready only after `await InitSDKAsync()` completes. ### Implementing Robust Event Handling #### Error Event Management For proper error management in your application, implement the `OnError` event handler: ``` core.OnError += Core_OnError; private void Core_OnError(object sender, ErrorsEventArgs e) { Debug.WriteLine("Error: " + e.Message); } ``` #### Progress Tracking System To keep your users informed about ongoing processes, implement the progress event handler: ``` core.OnProgress += Core_OnProgress; private void Core_OnProgress(object sender, ProgressEventArgs e) { Debug.WriteLine("Progress: " + e.Progress); } ``` #### Operation Completion Notification To detect when editing operations have completed, implement the stop event handler: ``` core.OnStop += Core_OnStop; private void Core_OnStop(object sender, StopEventArgs e) { Debug.WriteLine("Editing completed"); } ``` ### Configuring Timeline Parameters Before adding media sources to your project, you must establish the basic timeline parameters such as frame rate and resolution, which vary depending on which engine you're using: VideoEditCoreVideoEditCoreX ``` core.Video_FrameRate = new VideoFrameRate(30); ``` ``` core.Output_VideoSize = new VisioForge.Core.Types.Size(1920, 1080); core.Output_VideoFrameRate = new VideoFrameRate(30); ``` ## Working with Media Sources ### Managing Video and Audio on Your Timeline The SDK enables you to add various media sources to your timeline using straightforward API methods. For each source, you can precisely control parameters such as start time, end time, and position on the timeline. You have the flexibility to add video and audio sources either independently or together. ### Integrating Video Files The SDK supports an extensive range of video formats including MP4, AVI, MOV, WMV, and many others. Here's how to add video content to your project: First, create a video source object and set the source file path. You can specify start and end times in the constructor or use null parameters to include the entire file. For files with multiple video streams, you can select which stream to use by specifying the stream number. VideoEditCoreVideoEditCoreX ``` var videoFile = new VisioForge.Core.Types.VideoEdit.VideoSource( filename, null, null, VideoEditStretchMode.Letterbox, 0, 1.0); ``` API: ``` public VideoSource( string filename, TimeSpan? startTime = null, TimeSpan? stopTime = null, VideoEditStretchMode stretchMode = VideoEditStretchMode.Letterbox, int streamNumber = 0, double rate = 1.0) ``` ``` var videoFile = new VisioForge.Core.Types.X.VideoEdit.VideoFileSource( filename, null, null, 0, 1.0); ``` API: ``` public VideoFileSource( string filename, TimeSpan? startTime = null, TimeSpan? stopTime = null, int streamNumber = 0, double rate = 1.0) ``` You can control playback speed by adjusting the rate parameter. For example, setting the rate to 2.0 will play the file at twice the normal speed. An alternative constructor allows you to add multiple file segments: VideoEditCoreVideoEditCoreX ``` public VideoSource( string filename, FileSegment[] segments, VideoEditStretchMode stretchMode = VideoEditStretchMode.Letterbox, int streamNumber = 0, double rate = 1.0) ``` ``` public VideoFileSource( string filename, FileSegment[] segments, int streamNumber = 0, double rate = 1.0) ``` To add the source to your timeline, use the following methods: VideoEditCoreVideoEditCoreX ``` await core.Input_AddVideoFileAsync( videoFile, null, 0); ``` The third parameter specifies the destination video stream number. Use 0 to add the source to the first video stream. API: ``` public Task Input_AddVideoFileAsync( VideoSource fileSource, TimeSpan? timelineInsertTime = null, int targetVideoStream = 0, int customWidth = 0, int customHeight = 0) ``` ``` core.Input_AddVideoFile( videoFile, null); ``` API: ``` public bool Input_AddVideoFile( VideoFileSource source, TimeSpan? insertTime = null) ``` The second parameter determines the timeline position. Using null automatically adds the source at the end of the existing timeline. ### Incorporating Audio Files The SDK supports numerous audio formats including AAC, MP3, WMA, OPUS, Vorbis and more. The process for adding audio is similar to adding video: VideoEditCoreVideoEditCoreX ``` var audioFile = new VisioForge.Core.Types.VideoEdit.AudioSource( filename, startTime: null, stopTime: null, fileToSync: string.Empty, streamNumber: 0, rate: 1.0); ``` The `fileToSync` parameter enables audio-video synchronization. When working with separate video and audio files, you can specify the video filename in this parameter to ensure the audio synchronizes correctly with the video. ``` await core.Input_AddAudioFileAsync( audioFile, timelineInsertTime: null, 0); ``` ``` var audioFile = new AudioFileSource( filename, startTime: null, stopTime: null); core.Input_AddAudioFile( audioFile, insertTime: null); ``` ### Combining Video and Audio Sources For efficiency, you can add combined video and audio sources with a single method call: VideoEditCoreX ``` core.Input_AddAudioVideoFile( filename, startTime: null, stopTime: null, insertTime: null); ``` ### Working with Static Images The SDK supports adding still images to your timeline, including JPG, PNG, BMP, and GIF formats. When adding an image, you'll need to specify how long it should appear on the timeline: VideoEditCoreVideoEditCoreX ``` await core.Input_AddImageFileAsync( filename, duration: TimeSpan.FromMilliseconds(2000), timelineInsertTime: null, stretchMode: VideoEditStretchMode.Letterbox); ``` ``` core.Input_AddImageFile( filename, duration: TimeSpan.FromMilliseconds(2000), insertTime: null); ``` ## Configuring Output Settings ### Setting Output Format and Encoding Options The SDK offers flexible output options with support for numerous video and audio formats, including MP4, AVI, WMV, MKV, WebM, AAC, MP3, animated GIF, and many others. Use the `Output_Format` property to configure your desired output format: VideoEditCoreVideoEditCoreX ``` var mp4Output = new MP4HWOutput(); core.Output_Format = mp4Output; ``` ``` var mp4Output = new MP4Output("output.mp4"); core.Output_Format = mp4Output; ``` For a comprehensive list of supported output formats and detailed code examples, please refer to our [Output Formats](../../general/output-formats/) documentation section. ### Rendering to Animated GIF `VideoEditCoreX` can render the timeline directly to an animated GIF via `GIFOutput`. GIF has no container — `gifenc` writes the final `.gif` file in one step, so the encoder profile contains only the video stream and any audio on the timeline is dropped. ``` using VisioForge.Core.Types.X.Output; using VisioForge.Core.Types.X.VideoEncoders; core.Output_Format = new GIFOutput("output.gif", new GIFEncoderSettings { Speed = 10, // 1..30 — higher value = faster encoding, lower visual quality Repeat = 0 // -1 = loop forever, 0 = play once, n = play n+1 times }); ``` Notes: - GIF output is video-only — audio tracks are ignored. - 256-color palette per frame is a format limitation — expect larger files than equivalent video codecs for long clips. - `SmartRender = true` is incompatible with GIF output (no source clip is already in `image/gif`). ## Enhancing Your Videos ### Applying Professional Video Effects The SDK provides a rich collection of video effects that you can apply to enhance your video content. For detailed information on implementing effects, see our [Video Effects](../../general/video-effects/) guide. The `VideoEditCoreX` engine includes dedicated API methods for adding text overlays. For implementation details, refer to our [Text Overlays](../code-samples/add-text-overlay/) guide. ### Adding Smooth Transitions To create professional-looking transitions between video clips, check our detailed [transition usage code sample](../code-samples/transition-video/). ## Processing Your Video Project ### Starting the Editing Process Once you've configured all your sources, effects, and output settings, you can initiate the editing process: VideoEditCoreVideoEditCoreX ``` await core.StartAsync(); ``` ``` core.Start(); ``` During the editing process, your application will receive progress updates through the event handlers you've implemented, and you'll be notified when the operation completes via the stop event. ## Conclusion By following this guide, you've learned the fundamental techniques for creating a powerful video editing application using the Video Edit SDK for .NET. This foundation will enable you to build sophisticated video editing tools that can compete with professional video editing software while being tailored to your specific requirements. When your application exits, de-initialize the SDK with `VisioForge.Core.VisioForgeX.DestroySDK()` (required for X-engines, including `VideoEditCoreX`) to avoid a hang-on-exit; see [Initialization](../../init/). ---END OF PAGE--- ## Build Camera Capture App - Device Setup Guide in C# .NET **URL:** https://www.visioforge.com/help/docs/dotnet/mediablocks/GettingStarted/camera/ **Description:** Build camera apps with VisioForge Media Blocks SDK — device enumeration, format selection, video rendering, and cross-platform capture support. **Tags:** Media Blocks SDK, .NET, MediaBlocksPipeline, Windows, macOS, Linux, Android, iOS, Streaming, Webcam, C# **API:** MediaBlocksPipeline, SystemVideoSourceBlock, VideoRendererBlock, DeviceEnumerator, VideoCaptureDeviceSourceSettings # Building Camera Applications with Media Blocks SDK [Media Blocks SDK .NET](https://www.visioforge.com/media-blocks-sdk-net) ## Introduction This comprehensive guide demonstrates how to create a fully functional camera viewing application using the Media Blocks SDK .NET. The SDK provides a robust framework for capturing, processing, and displaying video streams across multiple platforms including Windows, macOS, iOS, and Android. ## Architecture Overview To create a camera viewer application, you'll need to understand two fundamental components: 1. **System Video Source** - Captures the video stream from connected camera devices 2. **Video Renderer** - Displays the captured video on screen with configurable settings These components work together within a pipeline architecture that manages media processing. ## Essential Media Blocks To build a camera application, you need to add the following blocks to your pipeline: - **[System Video Source Block](../../Sources/)** - Connects to and reads from camera devices - **[Video Renderer Block](../../VideoRendering/)** - Displays the video with configurable rendering options ## Setting Up the Pipeline ### Creating the Base Pipeline First, create a pipeline object that will manage the media flow: ``` using VisioForge.Core.MediaBlocks; // Initialize the pipeline var pipeline = new MediaBlocksPipeline(); // Add error handling pipeline.OnError += (sender, args) => { Console.WriteLine($"Pipeline error: {args.Message}"); }; ``` ### Camera Device Enumeration Before adding a camera source, you need to enumerate the available devices and select one: ``` // Get all available video devices asynchronously var videoDevices = await DeviceEnumerator.Shared.VideoSourcesAsync(); // Display available devices (useful for user selection) foreach (var device in videoDevices) { Console.WriteLine($"Device: {device.Name} [{device.API}]"); } // Select the first available device var selectedDevice = videoDevices[0]; ``` ### Camera Format Selection Each camera supports different resolutions and frame rates. You can enumerate and select the optimal format: ``` // Display available formats for the selected device foreach (var format in selectedDevice.VideoFormats) { Console.WriteLine($"Format: {format.Width}x{format.Height} {format.Format}"); // Display available frame rates for this format foreach (var frameRate in format.FrameRateList) { Console.WriteLine($" Frame Rate: {frameRate}"); } } // Select the optimal format (in this example, we look for HD resolution) var hdFormat = selectedDevice.GetHDVideoFormatAndFrameRate(out var frameRate); var formatToUse = hdFormat ?? selectedDevice.VideoFormats[0]; ``` ## Configuring Camera Settings ### Creating Source Settings Configure the camera source settings with your selected device and format: ``` // Create camera settings with the selected device and format var videoSourceSettings = new VideoCaptureDeviceSourceSettings(selectedDevice) { Format = formatToUse.ToFormat() }; // Set the desired frame rate (selecting the highest available) if (formatToUse.FrameRateList.Count > 0) { videoSourceSettings.Format.FrameRate = formatToUse.FrameRateList.Max(); } // Optional: Enable force frame rate to maintain consistent timing videoSourceSettings.Format.ForceFrameRate = true; // Platform-specific settings #if __ANDROID__ // Android-specific settings videoSourceSettings.VideoStabilization = true; #elif __IOS__ && !__MACCATALYST__ // iOS-specific settings videoSourceSettings.Position = IOSVideoSourcePosition.Back; videoSourceSettings.Orientation = IOSVideoSourceOrientation.Portrait; #endif ``` An external USB camera on an iPad ignores `Orientation` and `AutoUpdateOrientation`: its picture keeps the camera's own orientation. ### Creating the Video Source Block Now create the system video source block with your configured settings: ``` // Create the video source block var videoSource = new SystemVideoSourceBlock(videoSourceSettings); ``` ## Setting Up Video Display ### Creating the Video Renderer Add a video renderer to display the captured video: ``` // Create the video renderer and connect it to your UI component var videoRenderer = new VideoRendererBlock(pipeline, VideoView1); // Optional: keep the renderer in sync with the pipeline clock videoRenderer.IsSync = true; ``` ### Advanced Renderer Configuration `VideoRendererBlock` exposes a handful of flat properties — no nested `Settings` bag: ``` // Enable subtitle overlay if the pipeline carries a subtitle stream videoRenderer.SubtitleEnabled = true; // Disable clock-sync to get frames as fast as they arrive (useful for recording scenarios) videoRenderer.IsSync = false; ``` ## Connecting the Pipeline Connect the video source to the renderer to establish the media flow: ``` // Connect the output of the video source to the input of the renderer pipeline.Connect(videoSource.Output, videoRenderer.Input); ``` ## Managing the Pipeline Lifecycle ### Starting the Pipeline Start the pipeline to begin capturing and displaying video: ``` // Start the pipeline asynchronously await pipeline.StartAsync(); ``` ### Taking Snapshots Capture still images from the video stream: ``` // Take a snapshot and save it as a JPEG file await videoRenderer.Snapshot_SaveAsync("camera_snapshot.jpg", SkiaSharp.SKEncodedImageFormat.Jpeg, 90); // Or get the snapshot as a bitmap for further processing var bitmap = await videoRenderer.Snapshot_GetAsync(); ``` ### Stopping the Pipeline When finished, properly stop the pipeline: ``` // Stop the pipeline asynchronously await pipeline.StopAsync(); ``` ## Platform-Specific Considerations The Media Blocks SDK supports cross-platform development with specific optimizations: - **Windows**: Supports both Media Foundation and Kernel Streaming APIs - **macOS/iOS**: Utilizes AVFoundation for optimal performance - **Android**: Provides access to camera features like stabilization and orientation ## Error Handling and Troubleshooting Implement proper error handling to ensure a stable application: ``` try { // Pipeline operations await pipeline.StartAsync(); } catch (Exception ex) { Console.WriteLine($"Error starting pipeline: {ex.Message}"); // Handle the exception appropriately } ``` ## Complete Implementation Example This example demonstrates a complete camera viewer implementation: ``` using System; using System.Linq; using System.Threading.Tasks; using VisioForge.Core; using VisioForge.Core.MediaBlocks; using VisioForge.Core.MediaBlocks.Sources; using VisioForge.Core.MediaBlocks.VideoRendering; using VisioForge.Core.Types; using VisioForge.Core.Types.X.Sources; public class CameraViewerExample { private MediaBlocksPipeline _pipeline; private SystemVideoSourceBlock _videoSource; private VideoRendererBlock _videoRenderer; public async Task InitializeAsync(IVideoView videoView) { // Create pipeline _pipeline = new MediaBlocksPipeline(); _pipeline.OnError += (s, e) => Console.WriteLine(e.Message); // Enumerate devices var devices = await DeviceEnumerator.Shared.VideoSourcesAsync(); if (devices.Length == 0) { throw new Exception("No camera devices found"); } // Select device and format var device = devices[0]; var format = device.GetHDOrAnyVideoFormatAndFrameRate(out var frameRate); // Create settings var settings = new VideoCaptureDeviceSourceSettings(device); if (format != null) { settings.Format = format.ToFormat(); if (!frameRate.IsEmpty) { settings.Format.FrameRate = frameRate; } } // Create blocks _videoSource = new SystemVideoSourceBlock(settings); _videoRenderer = new VideoRendererBlock(_pipeline, videoView); // Build pipeline _pipeline.AddBlock(_videoSource); _pipeline.AddBlock(_videoRenderer); _pipeline.Connect(_videoSource.Output, _videoRenderer.Input); // Start pipeline await _pipeline.StartAsync(); } public async Task StopAsync() { if (_pipeline != null) { await _pipeline.StopAsync(); _pipeline.Dispose(); } } public async Task TakeSnapshotAsync(string filename) { return await _videoRenderer.Snapshot_SaveAsync(filename, SkiaSharp.SKEncodedImageFormat.Jpeg, 90); } } ``` ## Conclusion With Media Blocks SDK .NET, building powerful camera applications becomes straightforward. The component-based architecture provides flexibility and performance across platforms while abstracting the complexities of camera device integration. To preview the camera and record it to an MP4 file at the same time, see [Webcam Preview and MP4 Recording](../camera-to-mp4/): it adds a tee, the microphone and an MP4 output to the pipeline above. For complete source code examples, please visit our [GitHub repository](https://github.com/visioforge/.Net-SDK-s-samples/tree/master/Media%20Blocks%20SDK/WPF/CSharp/Simple%20Capture%20Demo). ---END OF PAGE--- ## FFmpeg Video Editing and Format Conversion in C# .NET **URL:** https://www.visioforge.com/help/docs/dotnet/videoedit-ffmpeg/ **Description:** Edit, convert, and process video with VisioForge Video Edit SDK FFmpeg .NET. Windows-only toolkit with effects, overlays, and hardware encoding. **Tags:** Video Edit SDK FFmpeg, .NET # Video Edit SDK FFmpeg for .NET Development ## Introduction to the SDK The Video Edit SDK FFmpeg for .NET empowers developers to seamlessly integrate video editing, conversion, and advanced processing capabilities into their .NET applications. This powerful toolkit allows you to construct professional-quality videos from various audio and video sources with minimal effort. Built on the robust and widely-adopted FFMPEG framework, our SDK provides support for virtually all industry-standard video and audio formats, delivering a complete multimedia editing and production solution for your applications. Whether you're building video editing software, adding media processing to your application, or developing specialized video conversion tools, this SDK offers the essential building blocks to implement sophisticated video editing features quickly and efficiently. ### Developer-Friendly API Our SDK provides a clean, intuitive .NET API designed specifically for developer productivity: - **Simple Integration**: Add powerful video editing features to your application with minimal code - **Comprehensive Documentation**: Access detailed API references and implementation examples - **Flexible Architecture**: Design your application with our adaptable components - **Exception Handling**: Robust error management for reliable application performance ### Performance Optimization - **Multi-Threading Support**: Utilize parallel processing for improved performance - **Memory Management**: Efficient handling of large media files - **Progress Reporting**: Real-time feedback on processing operations - **Cancelation Support**: Gracefully cancel operations in progress ### Use Cases The SDK is ideal for developing: - **Video Editing Applications**: Build professional or consumer-grade video editors - **Media Converters**: Create tools for format conversion and optimization - **Content Management Systems**: Add video processing capabilities to CMS platforms - **Social Media Tools**: Develop applications for creating and enhancing social media content - **E-Learning Platforms**: Integrate video editing features in educational software - **Surveillance Systems**: Process and enhance security footage - **Medical Imaging**: Work with video content in healthcare applications ## Getting Started Implementing the SDK in your project is straightforward: 1. Add the SDK to your .NET project via NuGet package 2. Import the necessary namespaces 3. Initialize the core components 4. Start building your video processing pipeline ## Documentation Resources To help you maximize the potential of the SDK, we provide comprehensive documentation: - **[API Reference](https://api.visioforge.org/dotnet/api/index.html)**: Detailed information on classes, methods, and properties - **Code Samples**: Ready-to-use examples demonstrating key features - **Tutorial Articles**: Step-by-step guides for common implementation scenarios - **Migration Guides**: Information for upgrading from previous versions ## System Requirements - **.NET Framework**: 4.6.1 or higher - **.NET Core**: 3.1 or higher - **.NET**: 5.0 or higher - **Operating Systems**: Windows 10/11, Windows Server 2016+ - **Processor**: Multi-core processor recommended for optimal performance - **Memory**: 4GB minimum, 8GB+ recommended for HD/4K video processing - **Disk Space**: Sufficient space for temporary files during processing ## Additional Resources - [Changelog](changelog/) - [End User License Agreement](../../eula/) ---END OF PAGE--- ## Delphi ActiveX SDK Setup - Installation and Configuration **URL:** https://www.visioforge.com/help/docs/delphi/general/ **Description:** Install and configure TVFMediaPlayer, TVFVideoCapture, and TVFVideoEdit components in Delphi. Covers 64-bit package setup, .otares errors, and IDE integration. **Tags:** All-in-One Media Framework, Delphi, ActiveX, Windows, VCL # Delphi/ActiveX Libraries for Multimedia Development Welcome to our developer documentation hub for Delphi/ActiveX multimedia libraries. This resource provides in-depth technical information, code examples, and implementation guides for developers working with our specialized components. ## Core Library Benefits Our libraries empower Delphi developers to create sophisticated multimedia applications with minimal coding effort. The components are engineered for maximum performance and reliability in professional development environments. Key advantages include: - Simplified implementation of complex multimedia features - Optimized performance for resource-intensive operations - Cross-version compatibility with multiple Delphi releases - Extensive customization options for specialized requirements ## Documentation Organization ### Technical Reference Materials Each library section contains detailed API references, implementation examples, and recommended practices. Navigate to the specific library documentation for complete information about: - Component properties and attributes - Method signatures and parameters - Event handlers and callback functions - Type definitions and constants ### Code Examples and Tutorials Our documentation includes practical code snippets and complete implementation examples to accelerate your development process. These examples demonstrate effective techniques for common multimedia programming scenarios. ## Installation Troubleshooting Guide When integrating our libraries into your development environment, you might encounter these known technical issues: ### 64-bit Architecture Compatibility Delphi's 64-bit compilation environment requires special configuration in some cases: - [Resolving Delphi 64-bit package installation problems](install-64bit/) - Handling memory alignment requirements in 64-bit environments - Addressing pointer size differences between architectures ### Resource File Management Proper resource handling is essential for stable operation: - [Fixing Delphi package installation issues with .otares files](install-otares/) - Resolving resource locking during development - Managing resource file paths in deployed applications ## Getting Started To begin implementing our libraries in your projects, follow the library-specific installation guides and review the sample applications. Our documentation provides step-by-step instructions to help you achieve optimal results. ---END OF PAGE--- ## Deploy and Register DirectShow COM Filters on Windows **URL:** https://www.visioforge.com/help/docs/directshow/deployment/ **Description:** Deploy DirectShow filters with COM registration, WiX/NSIS/Inno Setup installer integration, redistributable files list, and troubleshooting tips. **Tags:** DirectShow, C++, Windows, Streaming # DirectShow SDKs - Deployment Guide ## Overview This comprehensive deployment guide covers everything you need to know about deploying VisioForge DirectShow SDKs in production environments. From filter registration to creating professional installers, this guide ensures your applications deploy smoothly. --- ## What's Covered ### Core Deployment Topics #### [Filter Registration](filter-registration/) Learn how to register DirectShow filters using multiple methods. **Topics**: - Manual registration with regsvr32 - Programmatic registration (C++, C#) - Batch scripts for automation - Verification techniques - Troubleshooting registration issues - Registration-free COM **When to Read**: Essential for all deployment scenarios --- #### [Redistributable Files](redistributable-files/) Complete reference of files to include in your deployment. **Topics**: - FFMPEG Source Filter files (~80-100MB) - VLC Source Filter files (~150-200MB) - Processing Filters Pack files (~20-180MB) - Encoding Filters Pack files (~40-300MB) - Virtual Camera SDK files (~15-35MB) - Dependencies and directory structures **When to Read**: Before creating installers or deployment packages --- #### [Installer Integration](installer-integration/) Create professional installers with WiX, NSIS, InstallShield, and Inno Setup. **Topics**: - WiX Toolset (MSI) - NSIS scripts - InstallShield projects - Inno Setup scripts - Custom actions for registration - Silent installation - Prerequisite bundling **When to Read**: When creating automated installation packages --- ## Quick Start ### Deployment Workflow Follow this recommended workflow for deploying DirectShow filters: ``` graph TD A[Identify Required SDKs] --> B[Collect Redistributable Files] B --> C[Choose Deployment Method] C --> D{Installation Method?} D -->|Manual| E[Create Batch Scripts] D -->|Installer| F[Create Installer Package] E --> G[Register Filters] F --> G G --> H[Test Deployment] H --> I{Works?} I -->|No| J[Troubleshoot] I -->|Yes| K[Deploy to Production] J --> H ``` ### Step-by-Step Quick Start #### Step 1: Identify Your SDKs Determine which SDKs your application uses: | SDK | Purpose | Key File | | --- | --- | --- | | **FFMPEG Source** | Media playback, streaming | VisioForge\_FFMPEG\_Source\_x64.ax | | **VLC Source** | Multi-track playback | VisioForge\_VLC\_Source\_x64.ax | | **Processing Filters** | Effects, mixing | VisioForge\_Video\_Effects\_Pro\_x64.ax | | **Encoding Filters** | Video encoding | VisioForge\_NVENC\_x64.ax | | **Virtual Camera** | Virtual devices | VisioForge\_Virtual\_Camera\_x64.ax | [View Complete File Lists →](redistributable-files/) --- #### Step 2: Collect Files Create deployment folder structure: ``` YourApp\ ├── YourApp.exe ├── YourApp.exe.config └── Filters\ ├── VisioForge_FFMPEG_Source_x64.ax ├── avcodec-63.dll ├── avformat-63.dll ├── cacert.pem └── ... (other dependencies) ``` [View Directory Structures →](redistributable-files/#installation-directory-structure) --- #### Step 3: Choose Deployment Method | Method | Best For | Complexity | | --- | --- | --- | | **Batch Script** | Internal deployment, testing | Low | | **WiX (MSI)** | Enterprise, IT automation | Medium-High | | **NSIS** | Small installers, custom UI | Medium | | **InstallShield** | Commercial apps, advanced features | Medium | | **Inno Setup** | Simple installers, open-source | Low-Medium | [View Installer Comparisons →](#choosing-an-installer-technology) --- #### Step 4: Register Filters **Option A: Manual Registration (Development/Testing)** ``` @echo off REM Check for Administrator privileges net session >nul 2>&1 if %errorLevel% neq 0 ( echo ERROR: This script must be run as Administrator! exit /b 1 ) regsvr32 /s "%~dp0Filters\VisioForge_FFMPEG_Source_x64.ax" if %ERRORLEVEL% EQU 0 ( echo Registration successful ) else ( echo Registration failed ) ``` **Option B: Installer Custom Action (Production)** See [Installer Integration Guide](installer-integration/) for WiX, NSIS, and other examples. [View All Registration Methods →](filter-registration/) --- #### Step 5: Test Deployment **Verification Checklist**: - [ ] Install on clean test machine - [ ] Verify all files copied correctly - [ ] Check filter registration in registry - [ ] Test filter with GraphEdit/GraphStudioNext - [ ] Run application end-to-end test - [ ] Verify uninstall removes all components - [ ] Test on Windows 10 and Windows 11 - [ ] Test both x64 and x86 (if applicable) [View Testing Procedures →](#testing-deployments) --- ## Choosing an Installer Technology ### WiX Toolset **Pros**: - Industry-standard MSI format - Excellent for enterprise deployment - Group Policy support - Strong Windows Installer integration - Active community and documentation **Cons**: - XML-based syntax has learning curve - Requires compilation step - Less flexible UI than custom installers **Recommended For**: - Enterprise applications - IT-managed deployments - Applications requiring Group Policy deployment - Organizations with existing MSI infrastructure [View WiX Examples →](installer-integration/#wix-toolset-examples) --- ### NSIS **Pros**: - Very small installer size - Fast execution - Highly customizable UI - Simple scripting language - No external dependencies **Cons**: - Not MSI-based (may not suit all enterprises) - Less Windows Installer integration - Manual upgrade management **Recommended For**: - Consumer applications - Small to medium installers - Applications requiring custom UI - Portable application creation [View NSIS Examples →](installer-integration/#nsis-examples) --- ### InstallShield **Pros**: - Professional GUI designer - Comprehensive feature set - Visual Studio integration - Advanced prerequisite handling - Suite/bundle creation **Cons**: - Commercial license required (except Limited Edition) - Can be complex for simple installers - Larger learning curve **Recommended For**: - Commercial software products - Complex installation requirements - Professional installer appearance - Organizations with InstallShield expertise [View InstallShield Guide →](installer-integration/#installshield-integration) --- ### Inno Setup **Pros**: - Free and open-source - Easy to learn Pascal scripting - Good documentation - Unicode support - Active development **Cons**: - Not MSI-based - Fewer advanced features than commercial tools - Limited enterprise features **Recommended For**: - Open-source projects - Simple installers - Small applications - Budget-conscious deployments [View Inno Setup Examples →](installer-integration/#inno-setup-examples) --- ## Common Deployment Scenarios ### Scenario 1: Media Player Application **Requirements**: - FFMPEG Source Filter - Processing Filters (video effects) - User-friendly installer **Recommended Approach**: 1. Use **NSIS** or **Inno Setup** for consumer-friendly installer 2. Include Visual C++ Redistributable check 3. Register filters during installation 4. Create desktop shortcut 5. Associate media file types (optional) **Files to Deploy** (~100-150MB): - VisioForge\_FFMPEG\_Source\_x64.ax + FFmpeg DLLs - VisioForge\_Video\_Effects\_Pro\_x64.ax + dependencies [View Complete File List →](redistributable-files/#ffmpeg-source-filter) --- ### Scenario 2: Enterprise Video Processing **Requirements**: - FFMPEG Source + Encoding Filters - Silent installation support - MSI-based deployment - Group Policy deployment **Recommended Approach**: 1. Use **WiX Toolset** for MSI creation 2. Bundle Visual C++ Redistributable 3. Support silent installation parameters 4. Implement proper logging 5. Create deployment documentation **Example**: ``` msiexec /i EnterpriseVideoApp.msi /quiet /norestart /l*v install.log ``` [View WiX Bundle Examples →](installer-integration/#advanced-wix-self-extracting-bundle) --- ### Scenario 3: Virtual Camera Solution **Requirements**: - Virtual Camera SDK - Driver installation - System-level access **Recommended Approach**: 1. Use **WiX** or **InstallShield** for driver support 2. Require administrator privileges 3. Install virtual camera drivers 4. Register DirectShow filters 5. Provide clear installation instructions **Special Considerations**: - Drivers require digital signatures - May need system restart - Enhanced security warnings [View Virtual Camera Files →](redistributable-files/#virtual-camera-sdk) --- ### Scenario 4: Development SDK Redistribution **Requirements**: - Include filters with your SDK - Support both x86 and x64 - Flexible integration **Recommended Approach**: 1. Provide separate x86/x64 packages 2. Include registration batch scripts 3. Provide documentation for developers 4. Consider NuGet package distribution 5. Include header files and type libraries **Package Structure**: ``` YourSDK\ ├── bin\ │ ├── x86\ │ │ └── Filters\ │ └── x64\ │ └── Filters\ ├── docs\ ├── samples\ └── tools\ └── register_filters.bat ``` --- ## Prerequisites and Dependencies ### Visual C++ Redistributable **Required Version**: Visual C++ 2015-2022 Redistributable **Download Links**: - x64: - x86: **Detection Registry Keys**: ``` x64: HKLM\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64 x86: HKLM\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x86 Value: "Installed" = 1 (DWORD) ``` **Installer Integration**: See [Bundling Dependencies](installer-integration/#bundling-dependencies) for WiX, NSIS, and other examples. --- ### .NET Requirements If your application uses .NET: - **.NET Framework 4.8** - For .NET Framework applications - **.NET 8.0 Runtime** - For modern .NET applications **Detection**: - .NET Framework: Check registry `HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full` - .NET 8.0: Check for `dotnet --list-runtimes` --- ### Hardware Requirements (Optional) For hardware acceleration features: | Feature | Requirement | | --- | --- | | **NVENC Encoding** | NVIDIA GPU (GTX 600+) | | **QuickSync** | Intel CPU with integrated graphics | | **DXVA Decoding** | DirectX 11 compatible GPU | Document hardware requirements in your installer or documentation. --- ## Testing Deployments ### Test Environment Setup Create isolated test environments: 1. **Clean Windows 10 VM** - Test on fresh installation 2. **Clean Windows 11 VM** - Test latest OS 3. **Minimal Installation** - No Visual Studio or dev tools 4. **Different User Accounts** - Test standard user vs. admin ### Testing Checklist #### Installation Testing - [ ] Installer runs without errors - [ ] All files copied to correct locations - [ ] Filters registered successfully - [ ] Start menu shortcuts created - [ ] Registry entries created - [ ] Prerequisites detected/installed - [ ] User can launch application - [ ] Application functions correctly #### Uninstallation Testing - [ ] Uninstaller runs without errors - [ ] All files removed - [ ] Filters unregistered - [ ] Registry entries cleaned - [ ] Start menu shortcuts removed - [ ] No orphaned files remain #### Upgrade Testing - [ ] Upgrade from previous version works - [ ] User data preserved - [ ] Settings maintained - [ ] Old filters replaced with new versions #### Silent Installation Testing ``` REM Install silently MyAppSetup.exe /S REM Verify installation reg query "HKLM\SOFTWARE\MyApp" /v InstallDir REM Uninstall silently "%ProgramFiles%\MyApp\Uninstall.exe" /S ``` ### Automated Testing Script ``` # PowerShell deployment test script param( [string]$InstallerPath, [string]$FilterCLSID ) Write-Host "Testing installation..." -ForegroundColor Cyan # Install Start-Process $InstallerPath -ArgumentList "/S" -Wait # Verify filter registration $regPath = "HKLM:\SOFTWARE\Classes\CLSID\$FilterCLSID" if (Test-Path $regPath) { Write-Host "✓ Filter registered" -ForegroundColor Green } else { Write-Host "✗ Filter NOT registered" -ForegroundColor Red Exit 1 } # Test with GraphEdit $graphEdit = "C:\Program Files (x86)\Windows Kits\10\bin\*\x64\graphedt.exe" if (Test-Path $graphEdit) { Write-Host "✓ Testing with GraphEdit..." -ForegroundColor Cyan # Add GraphEdit automation here } # Uninstall $uninstaller = Get-ChildItem "C:\Program Files\MyApp\Uninstall.exe" -ErrorAction SilentlyContinue if ($uninstaller) { Start-Process $uninstaller.FullName -ArgumentList "/S" -Wait Write-Host "✓ Uninstall completed" -ForegroundColor Green } # Verify cleanup if (Test-Path $regPath) { Write-Host "✗ Filter still registered after uninstall" -ForegroundColor Red Exit 1 } else { Write-Host "✓ Filter unregistered successfully" -ForegroundColor Green } Write-Host "All tests passed!" -ForegroundColor Green ``` --- ## Architecture Considerations ### x86 vs x64 Deployment **x64 Applications**: - Use x64 filters only - Install to `C:\Program Files\YourApp` - Register in 64-bit registry view **x86 Applications**: - Use x86 filters only - Install to `C:\Program Files (x86)\YourApp` - Register in 32-bit registry view (regsvr32 handles automatically) **Mixed Applications**: - Include both x86 and x64 filters - Separate subdirectories: `Filters\x86` and `Filters\x64` - Conditional registration based on process architecture ### Registry Considerations **64-bit Windows Registry Views**: ``` HKLM\SOFTWARE\Classes\CLSID\{GUID} ← 64-bit view HKLM\SOFTWARE\Wow6432Node\Classes\CLSID\{GUID} ← 32-bit view ``` **Important**: regsvr32 automatically uses correct registry view: - `C:\Windows\System32\regsvr32.exe` → 64-bit registry - `C:\Windows\SysWOW64\regsvr32.exe` → 32-bit registry --- ## Security Considerations ### Code Signing **Recommended**: Sign all executables and installers with Authenticode certificate. ``` REM Sign installer with certificate signtool sign /f MyCert.pfx /p password /t https://timestamp.digicert.com MyAppSetup.exe ``` **Benefits**: - Removes SmartScreen warnings - Establishes trust with users - Required for kernel-mode drivers (Virtual Camera) ### Permission Requirements **Filter Registration Requires**: - Administrator privileges - Write access to HKLM registry - Write access to System32 (if registering there) **Best Practices**: - Always request elevation in installer manifest - Check privileges before registration - Provide clear error messages for permission issues ``` ``` --- ## Troubleshooting Common Issues ### Issue: Filter Registration Fails **Symptoms**: regsvr32 returns error, filter not in registry **Possible Causes**: 1. Missing dependencies (Visual C++ Runtime, DLLs) 2. Insufficient privileges 3. Corrupted filter file 4. Architecture mismatch **Solutions**: 1. Use Dependency Walker to check dependencies 2. Run installer as administrator 3. Verify file integrity (checksums) 4. Ensure x86 app uses x86 filter, x64 uses x64 filter [View Complete Troubleshooting →](filter-registration/#troubleshooting) --- ### Issue: Application Can't Find Filter **Symptoms**: Application fails to create filter graph, CLSID not found **Possible Causes**: 1. Filter not registered 2. Wrong CLSID used 3. 32-bit app looking for 64-bit filter **Solutions**: ``` // Verify filter registration programmatically HRESULT hr = CoCreateInstance(CLSID_FFMPEGSource, NULL, CLSCTX_INPROC_SERVER, IID_IBaseFilter, (void**)&pFilter); if (hr == REGDB_E_CLASSNOTREG) { // Filter not registered - prompt user } ``` --- ### Issue: Silent Installation Hangs **Symptoms**: Installer stops responding during silent install **Possible Causes**: 1. Waiting for user input 2. Reboot required 3. Prerequisite installation prompting **Solutions**: ``` # Add /norestart parameter msiexec /i MyApp.msi /quiet /norestart # NSIS: Check silent mode in script ${IfSilent} # Skip UI interactions ${EndIf} ``` --- ### Issue: Uninstall Leaves Files **Symptoms**: Application directory still exists after uninstall **Possible Causes**: 1. Files created after installation not tracked 2. Open file handles preventing deletion 3. Uninstall custom action not running **Solutions**: - Use Windows Installer RemoveFile table for dynamic files - Implement file cleanup in uninstall custom action - Ensure application not running during uninstall --- ## Best Practices Summary ### DO ✅ **Always** require administrator privileges for installation ✅ **Always** bundle or check for Visual C++ Redistributable ✅ **Always** test on clean machines before release ✅ **Always** implement proper uninstall ✅ **Always** log installation steps for troubleshooting ✅ **Always** verify filter registration after install ✅ **Do** support silent installation for enterprise deployments ✅ **Do** sign installers with Authenticode certificate ✅ **Do** provide clear error messages ✅ **Do** document system requirements ### DON'T ❌ **Never** register filters to System32 directory ❌ **Never** overwrite newer files with older versions ❌ **Never** fail installation if registration fails (warn instead) ❌ **Never** leave registry entries after uninstall ❌ **Never** require user to manually register filters ❌ **Don't** skip prerequisite checks ❌ **Don't** use hardcoded paths ❌ **Don't** forget to test upgrade scenarios ❌ **Don't** ignore HRESULT return values ❌ **Don't** deploy debug builds to production --- ## Deployment Checklist Use this checklist before releasing your installer: ### Pre-Release - [ ] All redistributable files identified - [ ] Correct architecture (x86/x64) selected - [ ] Dependencies documented - [ ] Installer created and tested - [ ] Silent installation tested - [ ] Uninstall tested completely - [ ] Code signing completed - [ ] Installation guide written - [ ] System requirements documented ### Testing - [ ] Tested on Windows 10 (21H2 or later) - [ ] Tested on Windows 11 - [ ] Tested on clean VM without dev tools - [ ] Tested with standard user account - [ ] Tested upgrade from previous version - [ ] Tested uninstall cleanup - [ ] Tested silent installation - [ ] Verified filter registration - [ ] Tested application functionality ### Documentation - [ ] Installation instructions written - [ ] Uninstallation instructions provided - [ ] Troubleshooting section included - [ ] System requirements listed - [ ] Support contact information provided --- ## Additional Resources ### Documentation - [Filter Registration Guide](filter-registration/) - Complete registration reference - [Redistributable Files](redistributable-files/) - All SDK files listed - [Installer Integration](installer-integration/) - WiX, NSIS, InstallShield examples ### External Resources - [DirectShow Registration (Microsoft)](https://learn.microsoft.com/en-us/windows/win32/directshow/how-to-register-directshow-filters) - [Windows Installer Best Practices](https://learn.microsoft.com/en-us/windows/win32/msi/windows-installer-best-practices) - [WiX Toolset](https://www.firegiant.com/wixtoolset/) - [NSIS](https://nsis.sourceforge.io/Main_Page) - [Inno Setup](https://jrsoftware.org/isinfo.php) ### Tools - **GraphEdit** - Filter testing (Windows SDK) - **GraphStudioNext** - Advanced filter testing - **Dependency Walker** - DLL dependency analysis - **Process Monitor** - Installation troubleshooting - **Registry Editor** - Registration verification --- ## Support For deployment assistance: 1. Check [Troubleshooting](#troubleshooting-common-issues) section 2. Review [Filter Registration](filter-registration/#troubleshooting) 3. Contact VisioForge support: [support@visioforge.com](mailto:support@visioforge.com) 4. Visit: ---END OF PAGE--- ## Video Fingerprinting C++ SDK - Installation and Setup Guide **URL:** https://www.visioforge.com/help/docs/vfp/cpp/getting-started/ **Description:** Install and configure VisioForge Video Fingerprinting SDK for C++ with Visual Studio setup, NuGet packages, and your first fingerprint app. **Tags:** Video Fingerprinting SDK, C++, Windows, macOS, Linux, GStreamer, Fingerprinting, MP4 **API:** VFPFingerprintSource, VFPFingerPrint # Getting Started with Video Fingerprinting SDK C++ Welcome to the VisioForge Video Fingerprinting SDK for C++! This comprehensive guide will walk you through everything you need to get started, from installation to your first working application. By the end of this guide, you'll have a solid foundation for building high-performance video fingerprinting applications in C++. > **Note:** If you're already familiar with the .NET SDK, you'll find the C++ SDK follows similar concepts with native performance benefits. See our [SDK Comparison](../../#sdk-comparison) for details. ## Quick Start Summary If you're looking to get up and running quickly: 1. Download the SDK package from VisioForge 2. Extract the files to your project directory 3. Include the headers: `#include ` and `#include ` 4. Link the appropriate library: `VisioForge_VideoFingerprinting.lib` (x86) or `VisioForge_VideoFingerprinting_x64.lib` (x64) 5. Copy runtime DLLs to your output directory 6. Set your license key (if purchased): `VFPSetLicenseKey(L"license-key");` 7. Generate your first fingerprint using the examples below ## Prerequisites and System Requirements For detailed system requirements including supported platforms, hardware specifications, and performance considerations, please see our comprehensive [System Requirements](../../system-requirements/) guide. ### C++-Specific Requirements - **Windows Compiler**: Visual Studio 2019+ (recommended) or MinGW-w64 - **Linux Compiler**: GCC 7+ or Clang 6+ - **macOS Compiler**: Xcode 12+ with Command Line Tools - **Build Tools**: CMake 3.10+ (optional but recommended for Linux/macOS) ## SDK Package Contents After downloading the SDK, you'll find the following structure: ``` VideoFingerprinting_CPP_SDK/ ├── include/ │ ├── VisioForge_VFP.h # Main API header │ └── VisioForge_VFP_Types.h # Type definitions ├── lib/ │ ├── VisioForge_VideoFingerprinting.lib # x86 import library │ └── VisioForge_VideoFingerprinting_x64.lib # x64 import library ├── redist/ │ ├── VisioForge_VideoFingerprinting.dll # x86 runtime DLL │ ├── VisioForge_VideoFingerprinting_x64.dll # x64 runtime DLL │ ├── VisioForge_FFMPEG_Source.dll # x86 media support │ └── VisioForge_FFMPEG_Source_x64.dll # x64 media support ├── demos/ │ ├── vfp_gen/ # Fingerprint generation demo │ ├── vfp_compare/ # Video comparison demo │ └── vfp_search/ # Fragment search demo └── README.txt ``` ## Setting Up Your Development Environment ### Visual Studio Setup (Windows) #### Step 1: Create a New Project 1. Open Visual Studio 2019 or later 2. Click "Create a new project" 3. Select "Console App" (C++) 4. Name your project (e.g., "VFPExample") 5. Choose a location and click "Create" #### Step 2: Configure Project Properties 1. Right-click your project in Solution Explorer 2. Select "Properties" 3. Configure the following settings: **Configuration Properties → C/C++ → General:** ``` Additional Include Directories: $(ProjectDir)include ``` **Configuration Properties → Linker → General:** ``` Additional Library Directories: $(ProjectDir)lib ``` **Configuration Properties → Linker → Input:** ``` Additional Dependencies (x86): VisioForge_VideoFingerprinting.lib Additional Dependencies (x64): VisioForge_VideoFingerprinting_x64.lib ``` #### Step 3: Add SDK Files 1. Copy the `include` folder to your project directory 2. Copy the `lib` folder to your project directory 3. Copy DLL files from `redist` to your output directory (e.g., `Debug` or `Release`) #### Step 4: Configure Post-Build Events Add a post-build event to automatically copy DLLs: ``` xcopy /y "$(ProjectDir)redist\*.dll" "$(OutDir)" ``` ### CMake Setup (Cross-Platform) Create a `CMakeLists.txt` file: ``` cmake_minimum_required(VERSION 3.10) project(VFPExample) set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) # Find SDK files set(VFP_SDK_PATH "${CMAKE_CURRENT_SOURCE_DIR}/sdk") # Include directories include_directories(${VFP_SDK_PATH}/include) # Platform-specific configuration if(WIN32) # Windows configuration link_directories(${VFP_SDK_PATH}/lib) if(CMAKE_SIZEOF_VOID_P EQUAL 8) set(VFP_LIBRARIES VisioForge_VideoFingerprinting_x64) set(VFP_RUNTIME_LIBS ${VFP_SDK_PATH}/redist/VisioForge_VideoFingerprinting_x64.dll ${VFP_SDK_PATH}/redist/VisioForge_FFMPEG_Source_x64.dll) else() set(VFP_LIBRARIES VisioForge_VideoFingerprinting) set(VFP_RUNTIME_LIBS ${VFP_SDK_PATH}/redist/VisioForge_VideoFingerprinting.dll ${VFP_SDK_PATH}/redist/VisioForge_FFMPEG_Source.dll) endif() elseif(APPLE) # macOS configuration link_directories(${VFP_SDK_PATH}/lib) set(VFP_LIBRARIES VisioForge_VideoFingerprinting) elseif(UNIX) # Linux configuration link_directories(${VFP_SDK_PATH}/lib) set(VFP_LIBRARIES VisioForge_VideoFingerprinting) endif() # Add executable add_executable(vfp_example main.cpp) # Link libraries target_link_libraries(vfp_example ${VFP_LIBRARIES}) # Copy runtime libraries on Windows if(WIN32) foreach(DLL ${VFP_RUNTIME_LIBS}) add_custom_command(TARGET vfp_example POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${DLL} $) endforeach() endif() ``` Build the project: ``` mkdir build cd build cmake .. cmake --build . ``` ### Linux Setup #### Install Dependencies Ubuntu/Debian: ``` sudo apt-get update sudo apt-get install build-essential cmake sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev sudo apt-get install gstreamer1.0-plugins-good gstreamer1.0-plugins-bad sudo apt-get install gstreamer1.0-libav ``` Fedora/RHEL: ``` sudo dnf install gcc-c++ cmake sudo dnf install gstreamer1-devel gstreamer1-plugins-base-devel sudo dnf install gstreamer1-plugins-good gstreamer1-plugins-bad-free sudo dnf install gstreamer1-libav ``` #### Build Configuration Create a simple Makefile: ``` CXX = g++ CXXFLAGS = -std=c++11 -Wall -I./include LDFLAGS = -L./lib -lVisioForge_VideoFingerprinting -Wl,-rpath,'$$ORIGIN/lib' TARGET = vfp_example SOURCES = main.cpp OBJECTS = $(SOURCES:.cpp=.o) all: $(TARGET) $(TARGET): $(OBJECTS) $(CXX) $(OBJECTS) $(LDFLAGS) -o $(TARGET) %.o: %.cpp $(CXX) $(CXXFLAGS) -c $< -o $@ clean: rm -f $(OBJECTS) $(TARGET) .PHONY: all clean ``` ### macOS Setup #### Install Xcode Command Line Tools ``` xcode-select --install ``` #### Build Configuration Create a build script `build.sh`: ``` #!/bin/bash # Compiler settings CXX=clang++ CXXFLAGS="-std=c++11 -Wall -I./include" LDFLAGS="-L./lib -lVisioForge_VideoFingerprinting" # Set library path export DYLD_LIBRARY_PATH=./lib:$DYLD_LIBRARY_PATH # Build $CXX $CXXFLAGS main.cpp $LDFLAGS -o vfp_example echo "Build complete. Run with: ./vfp_example" ``` Make it executable and run: ``` chmod +x build.sh ./build.sh ``` ## Your First Application Let's create a simple application that generates a fingerprint from a video file. ### Step 1: Create main.cpp ``` #include #include #include #ifdef _WIN32 #include #endif #include #include int main(int argc, char* argv[]) { std::cout << "VisioForge Video Fingerprinting SDK - First Application\n"; std::cout << "========================================================\n\n"; // Check command line arguments if (argc != 2) { std::cout << "Usage: " << argv[0] << " \n"; std::cout << "Example: " << argv[0] << " sample.mp4\n"; return 1; } // Convert filename to wide character (for Windows compatibility) wchar_t videoFile[256]; #ifdef _WIN32 size_t converted; mbstowcs_s(&converted, videoFile, argv[1], 256); #else mbstowcs(videoFile, argv[1], 256); #endif // Step 1: Set license key std::cout << "Setting license key...\n"; VFPSetLicenseKey(L"TRIAL"); // Use "TRIAL" for evaluation // Step 2: Configure the source VFPFingerprintSource src{}; VFPFillSource(videoFile, &src); src.StartTime = 0; // start from beginning src.StopTime = 0; // 0 = until end of file // Step 3: Generate fingerprint std::cout << "Generating fingerprint...\n"; VFPFingerPrint fingerprint{}; VFPSearch_GetFingerprintForVideoFile(src, &fingerprint); // Step 4: Display results std::cout << "\nFingerprint generated successfully!\n"; std::cout << "=====================================\n"; std::cout << "Video Information:\n"; std::cout << " Duration: " << (fingerprint.Duration / 1000.0) << " seconds\n"; std::cout << " Resolution: " << fingerprint.Width << "x" << fingerprint.Height << "\n"; std::cout << " Frame Rate: " << fingerprint.FrameRate << " fps\n"; std::cout << " Data Size: " << fingerprint.DataSize << " bytes\n"; // Step 5: Save fingerprint to file wchar_t outputFile[256]; #ifdef _WIN32 wcscpy_s(outputFile, videoFile); wcscat_s(outputFile, L".vfpsig"); #else wcscpy(outputFile, videoFile); wcscat(outputFile, L".vfpsig"); #endif std::cout << "\nSaving fingerprint...\n"; VFPFingerprintSave(&fingerprint, outputFile); char outputFileAnsi[256]; #ifdef _WIN32 size_t convertedOut; wcstombs_s(&convertedOut, outputFileAnsi, outputFile, 256); #else wcstombs(outputFileAnsi, outputFile, 256); #endif std::cout << "Fingerprint saved to: " << outputFileAnsi << "\n"; std::cout << "\nSuccess! You can now use this fingerprint for:\n"; std::cout << " - Comparing with other videos for similarity\n"; std::cout << " - Searching for this video in longer broadcasts\n"; std::cout << " - Building a database of video fingerprints\n"; return 0; } ``` ### Step 2: Build and Run #### Windows (Visual Studio) 1. Press F7 to build the solution 2. Copy a test video file to your output directory 3. Open Command Prompt in the output directory 4. Run: `VFPExample.exe testvideo.mp4` #### Windows (Command Line) ``` cl /EHsc /I.\include main.cpp /link /LIBPATH:.\lib VisioForge_VideoFingerprinting_x64.lib copy redist\*.dll . VFPExample.exe testvideo.mp4 ``` #### Linux ``` g++ -std=c++11 -I./include main.cpp -L./lib -lVisioForge_VideoFingerprinting -o vfp_example export LD_LIBRARY_PATH=./lib:$LD_LIBRARY_PATH ./vfp_example testvideo.mp4 ``` #### macOS ``` clang++ -std=c++11 -I./include main.cpp -L./lib -lVisioForge_VideoFingerprinting -o vfp_example export DYLD_LIBRARY_PATH=./lib:$DYLD_LIBRARY_PATH ./vfp_example testvideo.mp4 ``` ## Understanding Fingerprint Types The SDK provides two types of fingerprints optimized for different use cases. For a comprehensive explanation including technical details, performance characteristics, and decision guidance, see our [Fingerprint Types Guide](../../fingerprint-types/). **Quick Reference:** - **Search Fingerprints** (`VFPSearch_Init` / `_Process` / `_Build`): For finding video fragments within larger videos (commercial detection, content monitoring) - **Compare Fingerprints** (`VFPCompare_Init` / `_Process` / `_Build`): For comparing entire videos for similarity (duplicate detection, version comparison) ## Common Use Cases ### Use Case 1: Duplicate Detection ``` // Generate fingerprints for two videos VFPFingerPrint fp1{}, fp2{}; // ... generate fingerprints ... // Compare them double difference = VFPCompare_Compare( fp1.Data, fp1.DataSize, fp2.Data, fp2.DataSize, 10 // Allow up to 10 seconds shift ); if (difference < 100) { std::cout << "Videos are duplicates\n"; } ``` ### Use Case 2: Commercial Detection ``` // Load commercial and broadcast fingerprints VFPFingerPrint commercial{}, broadcast{}; VFPFingerprintLoad(&commercial, L"commercial.vfpsig"); VFPFingerprintLoad(&broadcast, L"broadcast.vfpsig"); // Search for commercial double diff; int position = VFPSearch_Search2( &commercial, 0, &broadcast, 0, &diff, 300 // threshold ); if (position != INT_MAX) { std::cout << "Commercial found at: " << position << " seconds\n"; } ``` ### Use Case 3: Content Verification with Ignored Areas ``` VFPFingerprintSource src{}; VFPFillSource(L"video.mp4", &src); // Ignore logo/watermark areas (up to 10 rectangles) src.IgnoredAreas[0].left = 0; src.IgnoredAreas[0].top = 0; src.IgnoredAreas[0].right = 200; src.IgnoredAreas[0].bottom = 100; // Top-left logo src.IgnoredAreas[1].left = 1720; src.IgnoredAreas[1].top = 980; src.IgnoredAreas[1].right = 1920; src.IgnoredAreas[1].bottom = 1080; // Bottom-right watermark VFPFingerPrint fp{}; VFPSearch_GetFingerprintForVideoFile(src, &fp); ``` ## Licensing ### Trial Mode For evaluation, use the trial license: ``` VFPSetLicenseKey(L"TRIAL"); ``` Trial mode limitations: - Adds watermark to processed frames - Limited to 60 seconds of processing per session - Full functionality otherwise available ### Commercial License For production use, purchase a license from VisioForge: ``` VFPSetLicenseKey(L"YOUR-LICENSE-KEY-HERE"); ``` License types: - **Developer License**: For development and testing - **Deployment License**: For distribution with your application - **Server License**: For server-based deployments ## Troubleshooting ### Common Issues and Solutions #### Issue: DLL Not Found **Error**: "The program can't start because VisioForge\_VideoFingerprinting.dll is missing" **Solution**: - Ensure DLLs are in the same directory as your executable - Or add the DLL directory to your PATH environment variable - Check you're using the correct architecture (x86 vs x64) #### Issue: Unsupported Video Format **Error**: "Unable to process video file" **Solution**: - Ensure video codec is supported (H.264, H.265, VP8, VP9, AV1) - Install additional codec packs if needed - Try converting the video to a standard format #### Issue: License Key Not Working **Error**: "Invalid license key" **Solution**: - Verify the license key is entered correctly - Ensure VFPSetLicenseKey() is called before any other SDK functions - Check that the license hasn't expired - Verify you're using the correct license for your platform #### Issue: Memory Access Violation **Error**: Access violation reading location **Solution**: - Initialize all structures with {} before use - Check that pointers are valid before use - Ensure proper string buffer sizes - Don't free SDK-allocated memory manually #### Issue: Poor Performance **Symptom**: Processing is slower than expected **Solution**: - Use Release build configuration, not Debug - Enable compiler optimizations (/O2 or -O2) - Process videos from local SSD, not network drives - Consider using multiple threads for batch processing - Reduce video resolution if quality permits ### Debug Tips 1. **Enable debug output**: Save intermediate frame data to disk for inspection 2. **Check return values**: Always check for NULL/error returns 3. **Use debug builds**: Initially develop with debug symbols 4. **Log operations**: Add logging to track processing flow 5. **Test with known files**: Use reference videos to verify setup ## Next Steps Now that you have a working setup, explore these advanced topics: 1. **Batch Processing**: Process multiple files efficiently 2. **Database Integration**: Store fingerprints in a database 3. **Real-time Processing**: Generate fingerprints from live streams 4. **Custom UI**: Build graphical interfaces for your applications 5. **Performance Optimization**: Tune for your specific use case ### Recommended Reading - [C++ API Documentation](../api/) - Complete API reference - [Understanding Video Fingerprinting](../../understanding-video-fingerprinting/) - Technical background - [Use Cases](../../use-cases/) - Real-world applications ## Sample Projects The SDK includes three complete sample projects: ### vfp\_gen - Fingerprint Generation Demonstrates how to generate fingerprints with various options: ``` vfp_gen source.mp4 output.sig 0 0 0 ``` ### vfp\_compare - Video Comparison Shows how to compare two videos for similarity: ``` vfp_compare video1.sig video2.sig 100 10 ``` ### vfp\_search - Fragment Search Illustrates searching for video fragments: ``` vfp_search needle.sig haystack.sig 300 ``` Study these examples to understand best practices and common patterns. ## Support and Resources ### Getting Help - **Support Email**: [support@visioforge.com](mailto:support@visioforge.com) - **Discord Community**: Join for real-time help and discussions - **GitHub Examples**: Additional code samples and integrations ### Reporting Issues When reporting issues, please provide: 1. SDK version and platform 2. Minimal code example reproducing the issue 3. Error messages and stack traces 4. Sample video files (if applicable) 5. System specifications ## Conclusion You now have everything needed to start building video fingerprinting applications with the C++ SDK. The SDK provides powerful functionality with excellent performance, suitable for both desktop applications and server deployments. Remember to: - Start with the provided examples - Test thoroughly with your target content - Optimize parameters for your use case - Reach out for support when needed Happy coding with VisioForge Video Fingerprinting SDK! ---END OF PAGE--- ## Agent Skills for VisioForge .NET SDKs — AI coding agents **URL:** https://www.visioforge.com/help/docs/dotnet/agent-skills/ **Description:** Per-platform skills for AI coding agents (Claude Code, Cursor, Copilot, Codex, Gemini CLI) covering NuGet, licence setup, and deployment caveats. **Tags:** Video Capture SDK, Media Player SDK, Media Blocks SDK, Video Edit SDK, .NET # Agent Skills for VisioForge .NET SDKs VisioForge publishes per-platform **Agent Skills** at `https://www.visioforge.com/.well-known/agent-skills/index.json` per the [Agent Skills Discovery RFC v0.2.0](https://github.com/cloudflare/agent-skills-discovery-rfc). ## What is this? A **Skill** is a small, self-contained package of procedural knowledge an AI coding agent can load on demand: the NuGet packages to add, the license registration code, the project-file caveats, and the deployment failure modes a developer hits in practice. Skills are loaded automatically by skills-aware agents — no installation step on your side. When a developer prompts an agent (Claude Code, Cursor, GitHub Copilot, OpenAI Codex, Gemini CLI, OpenCode, Goose, Junie, …) with something like *"add VisioForge video capture to this WPF app"*, the agent inspects the discovery index, finds the matching skill, downloads the archive, and follows the bundled instructions. The result is a setup that uses the *current* package versions and avoids the deployment gotchas the docs flag. ## Discovery surface The well-known endpoints and HTML/HTTP signals are emitted by the marketing site at `www.visioforge.com` (the host that serves `/.well-known/agent-skills/`); the help site you're reading this on (`help.visioforge.com`) doesn't currently inject the discovery `` or `Link:` header. Agents discovering us from a help-site page should follow the inline link to `https://www.visioforge.com/.well-known/agent-skills/index.json` directly. | Endpoint (served by `www.visioforge.com`) | Purpose | | --- | --- | | `/.well-known/agent-skills/index.json` | Index of every published skill with name, description, archive URL, and SHA-256 digest. | | `/.well-known/agent-skills/.zip` | Archive containing `SKILL.md` + bundled `references/` (sample `.csproj`, init code). | | `` in every `www.visioforge.com` page `` | HTML signal pointing at the index. | | `Link: <…>; rel="agent-skills"` HTTP header on `www.visioforge.com` | Same signal for non-HTML responses (Markdown, etc.). | Skills are **discoverable from any page of `www.visioforge.com`** — agents don't need to know the well-known URL up front. ## Available skills 42 skills cover every (SDK, platform) intersection that has a working sample in [github.com/visioforge/.Net-SDK-s-samples](https://github.com/visioforge/.Net-SDK-s-samples). The authoritative list — including each skill's archive URL and SHA-256 digest — lives in the discovery index at `https://www.visioforge.com/.well-known/agent-skills/index.json`. The catalog below is auto-generated from the same source so it cannot drift. Naming convention: `-` where `` is the per-platform UI shell or hosting model. ### Video Capture SDK .NET | Skill | Description | Archive | | --- | --- | --- | | `video-capture-sdk-net-console` | Integrate VisioForge Video Capture SDK .NET into a .NET console application (no UI). Covers the SDK and redist NuGet packages, project setup, license registration, headless capture/recording, and the most common deployment pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use when capturing or recording from webcam, IP camera, or screen on Windows from a service, scheduled task, or batch script — for an interactive UI use video-capture-sdk-net-{wpf,winforms} instead. | [video-capture-sdk-net-console.zip](https://www.visioforge.com/.well-known/agent-skills/video-capture-sdk-net-console.zip) | | `video-capture-sdk-net-winforms` | Integrate VisioForge Video Capture SDK .NET into a Windows Forms application. Covers the SDK and redist NuGet packages, project setup, license registration, and the most common deployment pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use when adding webcam, IP camera, screen, or DV capture to a WinForms app on Windows. | [video-capture-sdk-net-winforms.zip](https://www.visioforge.com/.well-known/agent-skills/video-capture-sdk-net-winforms.zip) | | `video-capture-sdk-net-winui` | Integrate VisioForge Video Capture SDK .NET into a WinUI 3 (Windows App SDK) application. Covers the WinUI-specific VideoView control, the SDK and redist NuGet packages, project setup, license registration, MSIX packaging quirks, and the most common deployment pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use when adding webcam, IP camera, screen, or DV capture to a WinUI 3 app — for WPF use video-capture-sdk-net-wpf, for WinForms use video-capture-sdk-net-winforms. | [video-capture-sdk-net-winui.zip](https://www.visioforge.com/.well-known/agent-skills/video-capture-sdk-net-winui.zip) | | `video-capture-sdk-net-wpf` | Integrate VisioForge Video Capture SDK .NET into a Windows WPF application. Covers the SDK and redist NuGet packages, project setup, license registration, and the most common deployment pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use when adding webcam, IP camera, screen, or DV capture to a WPF app on Windows. | [video-capture-sdk-net-wpf.zip](https://www.visioforge.com/.well-known/agent-skills/video-capture-sdk-net-wpf.zip) | ### Video Capture SDK X | Skill | Description | Archive | | --- | --- | --- | | `video-capture-sdk-x-android` | Integrate VisioForge Video Capture SDK X (cross-platform edition) into a native .NET for Android application. Covers the Android-specific VideoView control, the cross-platform NuGet package, AndroidDependency project reference, runtime camera/audio permissions, license registration, and the most common Android pitfalls (CAMERA permission denied, RECORD\_AUDIO permission denied, AAB vs APK packaging, ABI filters, trial-period expiry / unlicensed build). Use for native .NET for Android (NOT MAUI / Xamarin) capture apps — for cross-OS MAUI use video-capture-sdk-x-maui. | [video-capture-sdk-x-android.zip](https://www.visioforge.com/.well-known/agent-skills/video-capture-sdk-x-android.zip) | | `video-capture-sdk-x-avalonia` | Integrate VisioForge Video Capture SDK X (cross-platform edition) into an Avalonia UI application. Covers the Avalonia-specific VideoView control, multi-target NuGet packages (per-OS native dependencies), license registration, and the most common cross-platform pitfalls (missing native libs, file path conventions, X11/Wayland on Linux, trial-period expiry / unlicensed build). Use when building capture apps that must run on Windows, Linux, and macOS from one codebase — for native .NET for Android/iOS/macOS use video-capture-sdk-x-{android,ios,macos}, for MAUI use video-capture-sdk-x-maui. | [video-capture-sdk-x-avalonia.zip](https://www.visioforge.com/.well-known/agent-skills/video-capture-sdk-x-avalonia.zip) | | `video-capture-sdk-x-ios` | Integrate VisioForge Video Capture SDK X (cross-platform edition) into a native .NET for iOS application. Covers the iOS-specific VideoView control, the cross-platform NuGet package, Info.plist NSCameraUsageDescription / NSMicrophoneUsageDescription requirements, license registration, and the most common iOS pitfalls (Info.plist missing usage descriptions, no camera in simulator, AOT JIT-only ExecutionEngineException, App Store reviewer rejecting missing privacy strings, trial-period expiry / unlicensed build). Use for native .NET for iOS (NOT MAUI / Xamarin) capture apps — for cross-OS MAUI use video-capture-sdk-x-maui. | [video-capture-sdk-x-ios.zip](https://www.visioforge.com/.well-known/agent-skills/video-capture-sdk-x-ios.zip) | | `video-capture-sdk-x-macos` | Integrate VisioForge Video Capture SDK X (cross-platform edition) into a native .NET for macOS application. Covers the macOS-specific VideoView control, the cross-platform NuGet package, Info.plist NSCameraUsageDescription / NSMicrophoneUsageDescription, code signing entitlements, license registration, and the most common macOS pitfalls (missing Info.plist usage descriptions, hardened runtime + missing entitlements, Apple Silicon vs Intel native libs, trial-period expiry / unlicensed build). Use for native .NET for macOS (NOT MAUI / MacCatalyst) capture apps — for cross-OS MAUI use video-capture-sdk-x-maui. | [video-capture-sdk-x-macos.zip](https://www.visioforge.com/.well-known/agent-skills/video-capture-sdk-x-macos.zip) | | `video-capture-sdk-x-maui` | Integrate VisioForge Video Capture SDK X (cross-platform edition) into a .NET MAUI cross-platform app (Windows, Android, iOS, macOS). Covers the MAUI-specific VideoView control, multi-target NuGet packages (per-OS native dependencies), license registration, and the most common cross-platform pitfalls (camera permissions, missing native libs, AOT JIT-only ExecutionEngineException, trial-period expiry / unlicensed build). Use when building capture apps that must run on multiple OSes from one MAUI codebase — for graph-based pipelines use media-blocks-sdk-net-maui. | [video-capture-sdk-x-maui.zip](https://www.visioforge.com/.well-known/agent-skills/video-capture-sdk-x-maui.zip) | | `video-capture-sdk-x-uno` | Integrate VisioForge Video Capture SDK X (cross-platform edition) into an Uno Platform application. Covers the Uno-specific VideoView control, multi-target NuGet packages (per-OS native dependencies), license registration, and the most common cross-platform pitfalls (camera permissions per OS, WebAssembly limitations, missing native libs, trial-period expiry / unlicensed build). Use for Uno cross-OS apps (Windows, Android, iOS, macOS, Linux) — for MAUI use video-capture-sdk-x-maui, for Avalonia use video-capture-sdk-x-avalonia. | [video-capture-sdk-x-uno.zip](https://www.visioforge.com/.well-known/agent-skills/video-capture-sdk-x-uno.zip) | | `video-capture-sdk-x-winforms` | Integrate VisioForge Video Capture SDK X (cross-platform edition) into a Windows Forms application. Covers the cross-platform NuGet package layout, project setup, license registration, and the most common deployment pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use when you want capture/recording on WinForms with an API that ports cleanly to MAUI, Avalonia, Uno, Android, iOS, macOS — for Windows-only with the legacy DirectShow stack, use video-capture-sdk-net-winforms instead. | [video-capture-sdk-x-winforms.zip](https://www.visioforge.com/.well-known/agent-skills/video-capture-sdk-x-winforms.zip) | | `video-capture-sdk-x-winui` | Integrate VisioForge Video Capture SDK X (cross-platform edition) into a WinUI 3 (Windows App SDK) application. Covers the WinUI-specific VideoView control, the cross-platform NuGet package layout, project setup, license registration, MSIX packaging quirks, and the most common deployment pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use when you want capture/recording on WinUI 3 with an API that ports to MAUI, Avalonia, Uno — for the legacy DirectShow stack, use video-capture-sdk-net-winui. | [video-capture-sdk-x-winui.zip](https://www.visioforge.com/.well-known/agent-skills/video-capture-sdk-x-winui.zip) | | `video-capture-sdk-x-wpf` | Integrate VisioForge Video Capture SDK X (cross-platform edition) into a Windows WPF application. Covers the cross-platform NuGet package layout, project setup, license registration, and the most common deployment pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use when you want capture/recording on WPF with an API that ports cleanly to MAUI, Avalonia, Uno, Android, iOS, macOS — for Windows-only with the legacy DirectShow stack, use video-capture-sdk-net-wpf instead. | [video-capture-sdk-x-wpf.zip](https://www.visioforge.com/.well-known/agent-skills/video-capture-sdk-x-wpf.zip) | ### Media Player SDK .NET | Skill | Description | Archive | | --- | --- | --- | | `media-player-sdk-net-winforms` | Integrate VisioForge Media Player SDK .NET (file/stream playback) into a Windows Forms application. Covers the SDK and redist NuGet packages, project setup, license registration, supported input formats, and the most common playback pitfalls (DLL not found, missing codecs, unsupported format, trial-period expiry / unlicensed build). Use when adding video/audio file or network-stream playback to a WinForms app on Windows — for capture use video-capture-sdk-net-winforms, for editing use video-edit-sdk-net-winforms. | [media-player-sdk-net-winforms.zip](https://www.visioforge.com/.well-known/agent-skills/media-player-sdk-net-winforms.zip) | | `media-player-sdk-net-winui` | Integrate VisioForge Media Player SDK .NET (file/stream playback) into a WinUI 3 (Windows App SDK) application. Covers the WinUI-specific VideoView control, the SDK and redist NuGet packages, project setup, license registration, MSIX packaging quirks, supported input formats, and the most common playback pitfalls (DLL not found, missing codecs, unsupported format, trial-period expiry / unlicensed build). Use for WinUI 3 playback — for WPF use media-player-sdk-net-wpf, for WinForms use media-player-sdk-net-winforms. | [media-player-sdk-net-winui.zip](https://www.visioforge.com/.well-known/agent-skills/media-player-sdk-net-winui.zip) | | `media-player-sdk-net-wpf` | Integrate VisioForge Media Player SDK .NET (file/stream playback) into a Windows WPF application. Covers the SDK and redist NuGet packages, project setup, license registration, supported input formats, and the most common playback pitfalls (DLL not found, missing codecs, unsupported format, trial-period expiry / unlicensed build). Use when adding video/audio file or network-stream playback to a WPF app on Windows — for capture from a camera use video-capture-sdk-net-wpf, for editing use video-edit-sdk-net-wpf. | [media-player-sdk-net-wpf.zip](https://www.visioforge.com/.well-known/agent-skills/media-player-sdk-net-wpf.zip) | ### Media Player SDK X | Skill | Description | Archive | | --- | --- | --- | | `media-player-sdk-x-android` | Integrate VisioForge Media Player SDK X (cross-platform edition) into a native .NET for Android application. Covers the Android-specific VideoView control, the cross-platform NuGet package, AndroidDependency project reference, license registration, and the most common Android pitfalls (missing INTERNET permission for streaming, AAB vs APK packaging, ABI filters, hardware decoder support, trial-period expiry / unlicensed build). Use for native .NET for Android playback apps — for cross-OS MAUI use media-player-sdk-x-maui. | [media-player-sdk-x-android.zip](https://www.visioforge.com/.well-known/agent-skills/media-player-sdk-x-android.zip) | | `media-player-sdk-x-avalonia` | Integrate VisioForge Media Player SDK X (cross-platform edition) into an Avalonia UI application. Covers the Avalonia-specific VideoView control, multi-target NuGet packages (per-OS native dependencies), license registration, supported input formats, and the most common cross-platform pitfalls (missing native libs, X11/Wayland on Linux, ALSA/PulseAudio audio, trial-period expiry / unlicensed build). Use when building playback apps that must run on Windows, Linux, and macOS from one codebase — for native iOS/Android/macOS use media-player-sdk-x-{android,ios,macos}, for MAUI use media-player-sdk-x-maui. | [media-player-sdk-x-avalonia.zip](https://www.visioforge.com/.well-known/agent-skills/media-player-sdk-x-avalonia.zip) | | `media-player-sdk-x-ios` | Integrate VisioForge Media Player SDK X (cross-platform edition) into a native .NET for iOS application. Covers the iOS-specific VideoView control, the cross-platform NuGet package, Info.plist usage descriptions, license registration, AOT JIT-only ExecutionEngineException, and the most common iOS pitfalls (App Transport Security for HTTP streams, format support, trial-period expiry / unlicensed build). Use for native .NET for iOS playback apps — for cross-OS MAUI use media-player-sdk-x-maui. | [media-player-sdk-x-ios.zip](https://www.visioforge.com/.well-known/agent-skills/media-player-sdk-x-ios.zip) | | `media-player-sdk-x-macos` | Integrate VisioForge Media Player SDK X (cross-platform edition) into a native .NET for macOS application. Covers the macOS-specific VideoView control, the cross-platform NuGet package, Info.plist usage descriptions, code signing entitlements, license registration, and the most common macOS pitfalls (hardened runtime, network entitlements for streaming, Apple Silicon vs Intel native libs, trial-period expiry / unlicensed build). Use for native .NET for macOS playback apps — for cross-OS MAUI use media-player-sdk-x-maui. | [media-player-sdk-x-macos.zip](https://www.visioforge.com/.well-known/agent-skills/media-player-sdk-x-macos.zip) | | `media-player-sdk-x-maui` | Integrate VisioForge Media Player SDK X (cross-platform edition) into a .NET MAUI cross-platform app (Windows, Android, iOS, macOS). Covers the MAUI-specific VideoView control, multi-target NuGet packages (per-OS native dependencies), license registration, supported input formats, and the most common cross-platform pitfalls (network permissions per OS, missing native libs, AOT JIT-only ExecutionEngineException, trial-period expiry / unlicensed build). Use when building playback apps that must run on multiple OSes from one MAUI codebase. | [media-player-sdk-x-maui.zip](https://www.visioforge.com/.well-known/agent-skills/media-player-sdk-x-maui.zip) | | `media-player-sdk-x-uno` | Integrate VisioForge Media Player SDK X (cross-platform edition) into an Uno Platform application. Covers the Uno-specific VideoView control, multi-target NuGet packages (per-OS native dependencies), license registration, supported input formats, and the most common cross-platform pitfalls (network access per OS, WebAssembly limitations, missing native libs, trial-period expiry / unlicensed build). Use for Uno cross-OS apps — for MAUI use media-player-sdk-x-maui, for Avalonia use media-player-sdk-x-avalonia. | [media-player-sdk-x-uno.zip](https://www.visioforge.com/.well-known/agent-skills/media-player-sdk-x-uno.zip) | | `media-player-sdk-x-winforms` | Integrate VisioForge Media Player SDK X (cross-platform edition) into a Windows Forms application. Covers the cross-platform NuGet package layout, project setup, license registration, supported input formats, and the most common playback pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use when you want playback on WinForms with an API that ports cleanly to MAUI, Avalonia, Uno — for the legacy DirectShow stack use media-player-sdk-net-winforms. | [media-player-sdk-x-winforms.zip](https://www.visioforge.com/.well-known/agent-skills/media-player-sdk-x-winforms.zip) | | `media-player-sdk-x-winui` | Integrate VisioForge Media Player SDK X (cross-platform edition) into a WinUI 3 (Windows App SDK) application. Covers the WinUI-specific VideoView control, the cross-platform NuGet package layout, project setup, license registration, MSIX packaging quirks, supported input formats, and the most common playback pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use for WinUI 3 with the X-family API — for the legacy DirectShow stack use media-player-sdk-net-winui. | [media-player-sdk-x-winui.zip](https://www.visioforge.com/.well-known/agent-skills/media-player-sdk-x-winui.zip) | | `media-player-sdk-x-wpf` | Integrate VisioForge Media Player SDK X (cross-platform edition) into a Windows WPF application. Covers the cross-platform NuGet package layout, project setup, license registration, supported input formats, and the most common playback pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use when you want playback on WPF with an API that ports cleanly to MAUI, Avalonia, Uno, Android, iOS, macOS — for Windows-only with the legacy DirectShow stack, use media-player-sdk-net-wpf. | [media-player-sdk-x-wpf.zip](https://www.visioforge.com/.well-known/agent-skills/media-player-sdk-x-wpf.zip) | ### Video Edit SDK .NET | Skill | Description | Archive | | --- | --- | --- | | `video-edit-sdk-net-console` | Integrate VisioForge Video Edit SDK .NET (non-linear editor) into a .NET console application for batch processing — cut, trim, merge, transcode, apply effects to existing video files headlessly. Covers the timeline model, the SDK and redist NuGet packages, license registration, and the most common deployment pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use for scripts, scheduled jobs, CI pipelines that process video files — for an interactive editor use video-edit-sdk-net-wpf or video-edit-sdk-net-winforms. | [video-edit-sdk-net-console.zip](https://www.visioforge.com/.well-known/agent-skills/video-edit-sdk-net-console.zip) | | `video-edit-sdk-net-winforms` | Integrate VisioForge Video Edit SDK .NET (non-linear editor) into a Windows Forms application. Covers the timeline model, the SDK and redist NuGet packages, project setup, license registration, and the most common deployment pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use when adding cut/trim/merge/transcode/effects to existing video files on a WinForms app — for live capture from a camera, use video-capture-sdk-net-winforms instead. | [video-edit-sdk-net-winforms.zip](https://www.visioforge.com/.well-known/agent-skills/video-edit-sdk-net-winforms.zip) | | `video-edit-sdk-net-wpf` | Integrate VisioForge Video Edit SDK .NET (non-linear editor) into a Windows WPF application. Covers the timeline model, the SDK and redist NuGet packages, project setup, license registration, and the most common deployment pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use when adding cut/trim/merge/transcode/effects to existing video files on a WPF app — for live capture from a camera, use video-capture-sdk-net-wpf instead. | [video-edit-sdk-net-wpf.zip](https://www.visioforge.com/.well-known/agent-skills/video-edit-sdk-net-wpf.zip) | ### Video Edit SDK X | Skill | Description | Archive | | --- | --- | --- | | `video-edit-sdk-x-avalonia` | Integrate VisioForge Video Edit SDK X (cross-platform editor edition) into an Avalonia UI application. Covers the timeline model, multi-target NuGet packages (per-OS native dependencies), license registration, and the most common cross-platform pitfalls (missing native libs, file path conventions, trial-period expiry / unlicensed build). Use when building a non-linear editor that must run on Windows, Linux, and macOS from one codebase — for WPF / WinForms hosts use video-edit-sdk-x-{wpf,winforms}, for headless batch use video-edit-sdk-x-console. | [video-edit-sdk-x-avalonia.zip](https://www.visioforge.com/.well-known/agent-skills/video-edit-sdk-x-avalonia.zip) | | `video-edit-sdk-x-console` | Integrate VisioForge Video Edit SDK X (cross-platform editor edition) into a .NET console application for batch processing — cut, trim, merge, transcode, apply effects to existing video files headlessly. Covers the timeline model, the cross-platform NuGet package layout, license registration, and the most common deployment pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use for scripts, scheduled jobs, CI pipelines that process video files with the X-family API — for an interactive editor use video-edit-sdk-x-wpf or video-edit-sdk-x-winforms. | [video-edit-sdk-x-console.zip](https://www.visioforge.com/.well-known/agent-skills/video-edit-sdk-x-console.zip) | | `video-edit-sdk-x-maui` | Integrate VisioForge Video Edit SDK X (cross-platform edition) into a .NET MAUI app (Windows, Android, iOS, Mac Catalyst). Covers the VideoEditCoreX timeline API, the MAUI VideoView control, multi-target NuGet packages (per-OS native dependencies), SDK initialization, license registration, and the most common cross-platform pitfalls (missing InitSDKAsync, media-picker paths that are not filesystem paths, a bare MP4Output that encodes in software on Windows when its Video is read before InitSDKAsync, AOT JIT-only ExecutionEngineException, trial-period expiry). Use when joining, trimming, overlaying or rendering video from one MAUI codebase — for capture use video-capture-sdk-x-maui, for playback use media-player-sdk-x-maui. | [video-edit-sdk-x-maui.zip](https://www.visioforge.com/.well-known/agent-skills/video-edit-sdk-x-maui.zip) | | `video-edit-sdk-x-winforms` | Integrate VisioForge Video Edit SDK X (cross-platform editor edition) into a Windows Forms application. Covers the timeline model, the cross-platform NuGet package layout, license registration, and the most common deployment pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use when you want non-linear editing on WinForms with an API that ports cleanly to Avalonia, Console, WPF — for Windows-only with the legacy DirectShow stack, use video-edit-sdk-net-winforms instead. | [video-edit-sdk-x-winforms.zip](https://www.visioforge.com/.well-known/agent-skills/video-edit-sdk-x-winforms.zip) | | `video-edit-sdk-x-wpf` | Integrate VisioForge Video Edit SDK X (cross-platform editor edition) into a Windows WPF application. Covers the timeline model, the cross-platform NuGet package layout, license registration, and the most common deployment pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use when you want non-linear editing on WPF with an API that ports cleanly to Avalonia, Console, WinForms — for Windows-only with the legacy DirectShow stack, use video-edit-sdk-net-wpf instead. | [video-edit-sdk-x-wpf.zip](https://www.visioforge.com/.well-known/agent-skills/video-edit-sdk-x-wpf.zip) | ### Media Blocks SDK .NET | Skill | Description | Archive | | --- | --- | --- | | `media-blocks-sdk-net-android` | Integrate VisioForge Media Blocks SDK into a native .NET for Android application. Covers the graph-based pipeline model on Android, the cross-platform NuGet package, AndroidDependency project reference, runtime camera/audio permissions, license registration, and the most common Android pitfalls (CAMERA permission denied, RECORD\_AUDIO permission denied, AAB packaging ABI filters, hardware encoder support, trial-period expiry / unlicensed build). Use for native .NET for Android pipelines (capture, transcode, stream, record) — for cross-OS MAUI use media-blocks-sdk-net-maui. | [media-blocks-sdk-net-android.zip](https://www.visioforge.com/.well-known/agent-skills/media-blocks-sdk-net-android.zip) | | `media-blocks-sdk-net-avalonia` | Integrate VisioForge Media Blocks SDK into an Avalonia UI application. Covers the graph-based pipeline model (MediaBlocksPipeline, source/sink/transform blocks), multi-target NuGet packages (per-OS native dependencies), license registration, and the most common cross-platform pitfalls (missing native libs, file path conventions, X11/Wayland on Linux, ALSA/PulseAudio audio, trial-period expiry / unlicensed build). Use when building custom media pipelines (capture, transcode, mix, stream, record) on Windows, Linux, and macOS — for native iOS/Android/macOS use media-blocks-sdk-net-{android,ios,macos}, for MAUI use media-blocks-sdk-net-maui. | [media-blocks-sdk-net-avalonia.zip](https://www.visioforge.com/.well-known/agent-skills/media-blocks-sdk-net-avalonia.zip) | | `media-blocks-sdk-net-blazor` | Integrate VisioForge Media Blocks SDK into a Blazor Server application. Covers the graph-based pipeline model running server-side (one pipeline per logical scenario, owned by a singleton DI service), the single .NET wrapper plus per-OS native redist NuGet packages, license registration, the strict no-Blazor-WebAssembly constraint, and the most common Blazor pitfalls (DI lifetime mismatches, Razor circuit disposal vs pipeline disposal, capture-device permissions on the server host, server-side codec licensing, trial-period expiry / unlicensed build). Use for browser-based UIs that drive a server-side media pipeline (RTSP server, file recording, transcoding, broadcasting) — for a desktop UI use media-blocks-sdk-net-{wpf,winforms}. | [media-blocks-sdk-net-blazor.zip](https://www.visioforge.com/.well-known/agent-skills/media-blocks-sdk-net-blazor.zip) | | `media-blocks-sdk-net-console` | Integrate VisioForge Media Blocks SDK into a .NET console application for batch processing — build custom pipelines (transcode, mux, stream, record) without UI. Covers the graph-based pipeline model, the single NuGet package, license registration, headless block wiring, and the most common deployment pitfalls (DLL not found, missing codecs, no preview block, trial-period expiry / unlicensed build). Use for scripts, scheduled jobs, CI pipelines that need full pipeline control — for an interactive UI use media-blocks-sdk-net-{wpf,winforms}. | [media-blocks-sdk-net-console.zip](https://www.visioforge.com/.well-known/agent-skills/media-blocks-sdk-net-console.zip) | | `media-blocks-sdk-net-ios` | Integrate VisioForge Media Blocks SDK into a native .NET for iOS application. Covers the graph-based pipeline model on iOS, the cross-platform NuGet package, Info.plist NSCameraUsageDescription / NSMicrophoneUsageDescription requirements, license registration, AOT JIT-only ExecutionEngineException, and the most common iOS pitfalls (missing usage descriptions, no camera in simulator, App Store reviewer rejecting missing privacy strings, trial-period expiry / unlicensed build). Use for native .NET for iOS pipelines (capture, transcode, stream, record) — for cross-OS MAUI use media-blocks-sdk-net-maui. | [media-blocks-sdk-net-ios.zip](https://www.visioforge.com/.well-known/agent-skills/media-blocks-sdk-net-ios.zip) | | `media-blocks-sdk-net-macos` | Integrate VisioForge Media Blocks SDK into a native .NET for macOS application. Covers the graph-based pipeline model on macOS, the cross-platform NuGet package, Info.plist NSCameraUsageDescription / NSMicrophoneUsageDescription, code signing entitlements, license registration, and the most common macOS pitfalls (missing usage descriptions, hardened runtime + missing entitlements, Apple Silicon vs Intel native libs, trial-period expiry / unlicensed build). Use for native .NET for macOS pipelines (capture, transcode, stream, record) — for cross-OS MAUI use media-blocks-sdk-net-maui. | [media-blocks-sdk-net-macos.zip](https://www.visioforge.com/.well-known/agent-skills/media-blocks-sdk-net-macos.zip) | | `media-blocks-sdk-net-maui` | Integrate VisioForge Media Blocks SDK .NET into a .NET MAUI cross-platform app (Windows, Android, iOS, macOS). Covers the graph-based pipeline model, multi-target NuGet packages (per-OS native dependencies), license registration, and the most common cross-platform pitfalls (camera permissions, missing native libs, trial-period expiry / unlicensed build). Use when building custom media pipelines (capture, transcode, stream, record) that must run on multiple OSes from one MAUI codebase. | [media-blocks-sdk-net-maui.zip](https://www.visioforge.com/.well-known/agent-skills/media-blocks-sdk-net-maui.zip) | | `media-blocks-sdk-net-uno` | Integrate VisioForge Media Blocks SDK into an Uno Platform application. Covers the graph-based pipeline model, multi-target NuGet packages (per-OS native dependencies), license registration, and the most common cross-platform pitfalls (camera permissions per OS, WebAssembly limitations, missing native libs, trial-period expiry / unlicensed build). Use for Uno cross-OS pipelines (Windows, Android, iOS, macOS) — for MAUI use media-blocks-sdk-net-maui, for Avalonia use media-blocks-sdk-net-avalonia. | [media-blocks-sdk-net-uno.zip](https://www.visioforge.com/.well-known/agent-skills/media-blocks-sdk-net-uno.zip) | | `media-blocks-sdk-net-winforms` | Integrate VisioForge Media Blocks SDK .NET into a Windows Forms application. Covers the graph-based pipeline model (MediaBlocksPipeline, source/sink/transform blocks), the single NuGet package, license registration, and the most common deployment pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use when building custom media pipelines (capture, transcode, mix, stream, record) on a WinForms app — for simpler webcam-only capture, use video-capture-sdk-net-winforms instead. | [media-blocks-sdk-net-winforms.zip](https://www.visioforge.com/.well-known/agent-skills/media-blocks-sdk-net-winforms.zip) | | `media-blocks-sdk-net-wpf` | Integrate VisioForge Media Blocks SDK .NET into a Windows WPF application. Covers the graph-based pipeline model (MediaBlocksPipeline, source/sink/transform blocks), the single NuGet package, license registration, and the most common deployment pitfalls (DLL not found, missing codecs, trial-period expiry / unlicensed build). Use when building custom media pipelines (capture, transcode, mix, stream, record) on a WPF app — for simpler webcam-only capture, use video-capture-sdk-net-wpf instead. | [media-blocks-sdk-net-wpf.zip](https://www.visioforge.com/.well-known/agent-skills/media-blocks-sdk-net-wpf.zip) | ## How agents pick up a skill 1. Agent crawls a page on `www.visioforge.com`, sees `` (or the same URL in the `Link` HTTP header for Markdown responses). Agents arriving via `help.visioforge.com` should follow the inline `https://www.visioforge.com/.well-known/agent-skills/index.json` link directly — the help site doesn't emit those discovery signals. 2. Agent fetches the index, reads the `skills[]` array, picks the entries whose `description` matches the user's task. 3. Agent downloads the matching `.zip`, verifies the `sha256:` digest, unpacks `SKILL.md` and `references/`, and follows the procedural instructions. ## Reading a skill yourself A skill archive is a plain zip. Unpack it and you'll find: - `SKILL.md` — frontmatter (`name`, `description`) followed by procedural prose: when to use the skill, NuGet packages, project setup, license registration, common pitfalls. - `references/Sample.csproj` — minimal, working csproj for the skill's target host (WPF, WinForms, MAUI, Console, …) — each per-platform skill ships a csproj specific to that host (e.g. the WPF skill csproj sets `Microsoft.NET.Sdk.WindowsDesktop` + `true`). - `references/.cs` — the initialization pattern from a real official sample. WPF skills also bundle the matching `.xaml`, `App.xaml(.cs)`, and any required resources so `dotnet build` succeeds against the bundle as-is. ## Maintenance Skills track the current public NuGet release. The version pinned in each `SKILL.md` and `references/Sample.csproj` matches the version in the official samples on [github.com/visioforge/.Net-SDK-s-samples](https://github.com/visioforge/.Net-SDK-s-samples). When a major SDK version ships, every skill is updated and the discovery index sha256 digests are recomputed during the visioforge.com build. ## Related discovery surfaces VisioForge already exposes three other AI-agent surfaces — Agent Skills is the fourth and complements them: | Surface | Shape | Best for | | --- | --- | --- | | `mcp.visioforge.com/mcp` (via `/.well-known/mcp.json` + `/.well-known/mcp-server-card`) | Live MCP server with 14 read-only doc tools | Querying the SDK API surface, looking up media blocks, fetching code examples | | `/llms.txt`, `/llms-full.txt` | LLM-friendly docs index and full text | Bulk ingestion of the key docs: `/llms-full.txt` is the full text of the most important pages in one file | | `` + WebMCP runtime | 10 in-page tools registered via `navigator.modelContext.provideContext()` | Agent acting in the user's current browser tab (locale switch, page outline, copy code, …) | | **`/.well-known/agent-skills/index.json`** | **Per-(SDK, platform) procedural skill archives** | **Bootstrapping a new project that uses one of our SDKs** | ---END OF PAGE--- ## Video Capture SDK .NET — Webcam, RTSP, ONVIF, Screen in C# **URL:** https://www.visioforge.com/video-capture-sdk-net **Description:** Record webcams, IP cameras (RTSP/ONVIF), screens, and USB devices to MP4/AVI. C# / VB.NET SDK for Unity, WPF, MAUI, Avalonia. Free 30-day trial. # Video Capture SDK .NET — Record from Webcams, Screens & IP Cameras in C# Capture webcams, IP cameras (RTSP/ONVIF) and screens to MP4, WebM or AVI from C# on Windows, Linux, macOS, Android and iOS — plus Blackmagic Decklink and GenICam industrial cameras on Windows, Linux and macOS. [Download 30-Day Free Trial](https://files.visioforge.com/trials/visioforge_sdks_installer_dotnet_setup.exe)[Also for macOS (.pkg)](https://files.visioforge.com/trials/visioforge_sdks_installer_dotnet_setup.pkg) [Get the Trial](/download) [View Pricing](https://www.visioforge.com/video-capture-sdk-net#pricing)[Code Samples on GitHub](https://github.com/visioforge/.Net-SDK-s-samples) From €250/year · Lifetime from €900 [Bundles from €700/year](https://www.visioforge.com/video-capture-sdk-net#bundles) Our .NET SDK seamlessly integrates video capture and processing capabilities into software applications. This versatile SDK provides live video and audio preview and supports capture from various sources, including USB webcams, IP cameras, Blackmagic Decklink cards, and, on Windows, DV/HDV camcorders. It provides comprehensive support for different output formats, including MP4, WebM, AVI, WMV, MPEG-1/2, and others. It also provides developers an extensive library of video and audio effects to enhance and customize multimedia content. Our SDK offers robust cross-platform compatibility, ensuring seamless integration with Windows, Linux, macOS, iOS, and Android environments. This cross-platform adaptability enables developers to create applications that work consistently across various operating systems and devices, providing users with a consistent and flexible multimedia experience. ## SDK Overview ### SDK STRUCTURE The SDK takes video from webcams, RTSP/ONVIF IP cameras, screens and windows, Blackmagic Decklink cards, USB capture devices and NDI sources, plus audio from microphones, system loopback or media files. It writes MP4 (H.264/HEVC + AAC), WebM (VP8/VP9/AV1), MKV, AVI, WMV and MPEG-TS, saves JPEG/PNG/GIF/TIFF snapshots, and streams over RTMP, SRT, HLS and NDI. Effects, overlays and audio processing run during preview and recording. ## Video capture tools for developers Video Capture SDK .NET is a C# library for recording video from USB webcams, IP cameras over RTSP and ONVIF, desktop screens, and Blackmagic Decklink capture cards on Windows, macOS and Linux. The cross-platform engine, VideoCaptureCoreX, is built on GStreamer and runs on Windows, macOS, Linux, Android and iOS. The classic VideoCaptureCore engine uses DirectShow and runs on Windows only. Recordings go to MP4 with H.264 or HEVC video and AAC audio, to WebM with VP8, VP9 or AV1, or to MKV and AVI. Hardware encoding uses Intel Quick Sync, NVIDIA NVENC or AMD AMF when the GPU supports it. For example, a WPF or MAUI app can preview a webcam, record it to MP4, and stream the same feed over RTMP or SRT in one session. The SDK handles device enumeration, format selection and audio source management, so application code stays focused on its own logic. Installation starts with the VisioForge.DotNet.VideoCapture NuGet package. ### VIDEO CAPTURE PIPELINE During the preview or capture stages, video and audio streams can be processed with various effects. Afterward, these streams are split and directed to encoders and audio/video renderers for further processing. ### OUTPUT FORMATS The SDK supports a wide range of popular video, audio, and image formats and codecs, such as MP4 (using H264/HEVC for video and AAC for audio), WebM (using VP8/VP9/AV1 for video and Vorbis or OPUS for audio), as well as WMV, MP3, JPEG, GIF, and PNG. ### VIDEO PROCESSING You can add text, images, or GIF logos, adjust brightness, contrast, saturation, or hue, resize, crop, or rotate content, and apply chroma-keying or various video effects to enhance your content. ### AUDIO PROCESSING Incorporate an equalizer into your application, allowing users to fine-tune their audio experience. This feature allows them to adjust specific audio frequencies, such as treble, midrange, and bass, to achieve their desired sound profile. Additionally, users can normalize audio levels or amplify volume, providing precise control over the audio output. Many other audio effects are also at their disposal for further customization. [Download 30-Day Free Trial](https://files.visioforge.com/trials/visioforge_sdks_installer_dotnet_setup.exe)[Also for macOS (.pkg)](https://files.visioforge.com/trials/visioforge_sdks_installer_dotnet_setup.pkg) [View Pricing](https://www.visioforge.com/video-capture-sdk-net#pricing) ## Installation ### Quick Installation with NuGet Install the SDK directly in your project using Package Manager Console: `Install-Package VisioForge.DotNet.VideoCapture`Copy Or search for VisioForge.DotNet.VideoCapture in Visual Studio's NuGet Package Manager.[View on NuGet.org →](https://www.nuget.org/packages/VisioForge.DotNet.VideoCapture/)[View installation guide →](https://www.visioforge.com/help/docs/dotnet/install/) Or start from a project template: `dotnet new install VisioForge.DotNet.Templates`Copy Then `dotnet new vf-capture-wpf -n MyCaptureApp` creates a .NET 10 WPF app that previews the first camera and records it to MP4 with one button. The NuGet packages are referenced and the SDK is initialized and shut down. Templates for WinForms, Avalonia and .NET MAUI too. The Windows setup installs the templates when you click Finish, if the .NET 10 SDK is installed. In Visual Studio 2026, use the [VisioForge .NET Media SDK Templates](https://marketplace.visualstudio.com/items?itemName=RomanMinyaylov.VisioForgeDotNetTemplates) extension.[Project templates guide →](/help/docs/dotnet/install/project-templates/) ## Key Features ### Cross-Platform Support Windows, macOS, Linux, iOS, Android ### Wide Device Support Webcams, IP cameras, professional hardware ### Hardware Acceleration NVIDIA, Intel Quick Sync, AMD ### Multiple Output Formats MP4, WebM, AVI, WMV, and more ### Platform Support Windows10/11x86/x64/ARM64Server 2016+LinuxUbuntu 22+Debianx64/ARMmacOS12+Intel/M1/M2/M3Android7.0+ARM/x86iOS18+iPhone/iPad ## Live AI Detection and Captions Add on-device object detection, open-vocabulary detection, face recognition, text/plate reading, automatic privacy redaction, virtual background effects, and live captions directly to a Video Capture SDK .NET capture session. VideoCaptureCoreX hosts the same AI blocks from VisioForge.DotNet.Core.AI and VisioForge.DotNet.Core.AI.Whisper directly inside its capture graph via Video\_Processing\_AddBlock and Audio\_Processing\_AddBlock — no manual MediaBlocksPipeline required. Register a block before StartAsync and it runs on every frame or audio sample the engine captures from a webcam, IP/RTSP camera, or capture card, drawing overlays or redactions into both the live preview and any recording/streaming output. Inference runs locally through ONNX Runtime and Whisper.net/GGML, so nothing leaves the device. ### Live Object Detection Run YOLOv8, YOLOX, or RT-DETR detection to draw bounding boxes and labels on every frame from a webcam, IP camera, or capture card feed. ### Live Zone & Tripwire Analytics Add ByteTrack multi-object tracking, line-crossing counters, and polygon zone occupancy alerts on top of the same live detector — for footfall counting and perimeter monitoring. ### Live Face Recognition Detect faces in the live feed and match them against an enrolled gallery in real time — for access control and monitoring apps. ### [Live Text and License Plate Reading](/solutions/license-plate-recognition-dotnet) Read on-screen text or vehicle license plates as frames arrive, for gate cameras, signage monitoring, or parking systems. ### Virtual Camera Background Effects Blur, replace, or make the background transparent for a webcam or streaming feed with ONNX matting models. ### Live Captions While Recording Transcribe the microphone with Whisper and Silero VAD while capturing, and burn subtitles into the recorded or streamed output. ### Live Privacy Redaction Automatically blur or pixelate faces, license plates, and on-screen text as frames are captured, for compliance-sensitive live streams and public camera feeds. ### Open-Vocabulary Detection Detect objects in the live feed from a free-text prompt instead of a fixed class list — describe what to look for and change it at runtime, no retraining required. ### Live Scene Captioning Generate natural-language descriptions of the live feed frame by frame with a Florence-2 vision-language block — for accessibility narration or monitoring dashboards. [View live AI capture guide](https://www.visioforge.com/help/docs/dotnet/general/ai/x-engines/) ## Unity Support Bring live camera capture into Unity 6 with a single, ready-to-import .unitypackage. The high-level VideoCaptureCoreX engine grabs webcams and microphones, connects to IP / RTSP / ONVIF cameras, records to MP4, and renders the live preview into a Unity RawImage. Two ready scenes — local webcam capture and an IP-camera viewer — get you running fast. One cumulative package targets Windows, Android, macOS, and iOS: import once, switch the Build Target, and build. ### High-Level Capture Engine VideoCaptureCoreX gives you the same capture API you use in WinForms, WPF, MAUI, and Avalonia — enumerate devices, start a webcam or microphone, and preview live, with no manual pipeline assembly. ### One Cumulative Package Windows, Android, macOS, and iOS native runtimes ship inside a single .unitypackage. Unity picks the right native runtime automatically when you switch the Build Target. ### Ready Capture Scenes The included VideoCaptureX (local webcam + microphone) and IPCameraX (RTSP / ONVIF viewer) scenes render the preview into a RawImage through the reusable VisioForgeVideoView component, with Stretch, Letterbox, and Crop aspect modes. ### IP, RTSP & ONVIF Cameras Connect to network cameras over RTSP, RTSPS, and ONVIF with authentication — build live IP-camera dashboards and video walls right inside your Unity scene, on desktop and mobile. ### Record to MP4 from Unity Go beyond preview: record the captured camera and microphone to MP4 with hardware-accelerated H.264 / HEVC encoding (NVENC, Quick Sync, MediaCodec, VideoToolbox) — directly from your Unity build. ### Render Anywhere in the Scene Each frame is uploaded into a Unity Texture2D, so the live camera is not limited to the UI. Show it in a RawImage, or map it onto a material on any 3D object — screens, AR surfaces, or installations. Supported platforms:WindowsAndroidmacOSiOS Built for:AR camera appsIP-camera dashboards & video wallsSurveillance & monitoringVideo conferencingTraining & simulationInteractive installations ### Capture a webcam into a Unity RawImage with VideoCaptureCoreX C# Collapse Copy ```csharp // The bundled native runtime is configured automatically before the // first scene loads. Initialize the SDK once in your MonoBehaviour. VisioForgeEnvironment.InitializeSdk(); // Create the high-level capture engine — no manual pipeline wiring. _capture = new VideoCaptureCoreX(); // Pick the first camera and microphone. var cameras = await DeviceEnumerator.Shared.VideoSourcesAsync(); _capture.Video_Source = new VideoCaptureDeviceSourceSettings(cameras[0]); // RGBA frames are delivered to Unity through OnVideoFrameUnity and // uploaded into a Texture2D by VisioForgeVideoView (aspect + flip handled). _capture.OnVideoFrameUnity += _videoView.OnFrameBuffer; // Optionally record to MP4 while previewing (autostart: true records immediately). _capture.Outputs_Add(new MP4Output("capture.mp4"), autostart: true); await _capture.StartAsync(); ``` Unity capture is delivered through the VideoCaptureCoreX engine. Verified on Unity 6 (6000.x); requires the .NET Standard 2.1 API Compatibility Level. Local webcam capture targets Windows and macOS; RTSP / IP cameras work on all four platforms. All four SDKs ship in one cumulative .unitypackage built from the same SDK source as the VisioForge.DotNet.Core NuGet — the package build date and NuGet version are tracked separately. [View Unity documentation →](/help/docs/dotnet/general/unity/video-capture-x/) ## Supported Sources, Formats and Effects Everything you need to build professional video capture applications ### Supported Sources #### Supported Video Sources - •Web cameras (via DirectShow, Media Foundation, or Linux V4L) - •Android USB (UVC) cameras over USB OTG (Android 9+) - •ONVIF IP cameras (PTZ and other APIs supported) - •JPEG/MJPEG, MPEG-4 and H.264 HTTP/RTSP/RTMP IP cameras/servers - •Blackmagic Decklink devices - •Screen capture with effects - •Separate window capture (Windows; Linux on X11; Android 14 QPR2+) - •NewTek NDI devices - •Virtual camera - •TV Tuners (with and without internal MPEG Encoder, Windows only) - •FLIR/Teledyne cameras (USB3 Vision/GigE) - •DirectShow virtual video sources - •USB capture devices - •PCI capture cards - •DV and MPEG from DV/HDV Camcorders (Windows only, DirectCapture technology) - •Images and image sequences from memory or HDD as video streams #### Supported Audio Sources - •Audio capture devices (microphones) - •Loopback audio capture (Windows) - •DirectShow virtual audio sources - •WAV, MP3, AAC, M4A and other formats as audio source ### Output Video Formats - •MP4 (H.264/H.265/AAC) - •WMA (Windows Media Audio) - •WebM (VP8/VP9/AV1) - •AVI (MJPEG, DivX, XviD, x264) - •WMV (Windows Media Video) - •MPEG-1/2/4 (VCD/SVCD/DVD profiles) - •MOV (QuickTime) - •FLV (Flash Video) - •MKV (Matroska) - •MPEG-TS (Transport Stream) - •Custom DirectShow-based formats ### Audio & Snapshot Formats #### Output Audio Formats - •WAV (PCM/compressed) - •WMA (Windows Media Audio) - •M4A (AAC) - •MP3 (LAME encoder) - •FLAC (lossless) - •OGG Vorbis - •Opus - •Speex #### Snapshot Formats - •JPEG - •PNG - •BMP - •GIF (animated) - •TIFF ### Video Processing & Effects - •Image overlay (animated GIF support) - •Text overlay (scrolling text) - •Pan/zoom effects - •Brightness/contrast/saturation/hue - •Deinterlacing - •Denoise filters - •Resize to any resolution - •Chroma-key (green screen) - •Fade-in/fade-out effects - •Rotation (any angle) - •Cropping - •3rd-party DirectShow filters - •Independent effects for preview/output ### Audio Processing & Effects - •Volume booster - •Equalizer - •3D-bass system - •Normalization - •Auto/manual gain control - •Echo cancellation - •Noise suppression - •Audio mixing - •Multiple audio tracks ### Network Streaming Formats - •HLS (Android/iOS compatible) - •RTSP server - •Smooth Streaming to IIS - •RTMP to media servers (Facebook, YouTube, etc.) - •SRT (Secure Reliable Transport) - •UDP streaming - •NewTek NDI ### Capture Hardware by Platform On Linux the SDK is the same .NET SDK with the VisioForge.CrossPlatform.Core.Linux.x64 or Linux.arm64 native package, running on the system GStreamer 1.22+; there is no separate native Linux SDK. | Source | Windows | Linux | macOS | Android | iOS | | --- | --- | --- | --- | --- | --- | | Cameras: USB (UVC) and built-in | ✓ | ✓ (V4L2) | ✓ | ✓ (USB over OTG) | Built-in only | | USB and PCI capture cards | ✓ (DirectShow / Kernel Streaming driver) | ✓ if the vendor ships a V4L2 driver | ✓ if the vendor ships a macOS camera driver (CoreMediaIO / Camera Extension) | UVC over USB OTG | — | | Blackmagic Decklink | ✓ | ✓ | ✓ | — | — | | IP cameras (RTSP / ONVIF) | ✓ | ✓ | ✓ | ✓ | ✓ | | Screen capture | ✓ | ✓ (X11; no Wayland) | ✓ | ✓ | ✓ (ReplayKit; whole screen needs a Broadcast Extension) | | Window capture | ✓ | ✓ (X11; no Wayland) | — | ✓ (app chosen by the user in the system dialog, Android 14 QPR2+) | — | | NDI sources | ✓ | ✓ | ✓ | ✓ (app ships libndi.so) | — | | GenICam cameras (USB3 Vision / GigE Vision) | ✓ | ✓ | ✓ | — | — | | FLIR/Teledyne, Basler, Allied Vision native SDKs | ✓ | Via the GenICam row | Via the GenICam row | — | — | | TV tuners, DV/HDV camcorders, DirectShow virtual sources | ✓ | — | — | — | — | On Linux the SDK sees USB and PCI capture devices through V4L2 only: a card whose vendor ships just its own capture SDK, with no V4L2 driver, is not visible. Camera modules such as the Raspberry Pi camera work through libcamera (the gstreamer1.0-libcamera package). Decklink cards need the Blackmagic Desktop Video driver on every platform. ### Other Features - •Audio/video preview - •TV Tuning - •Video capture device control - •Video input (crossbar interface) - •Video format configuration - •Frame rate control - •Multiple input support - •Camera control (brightness, saturation, etc.) - •Motion detection - •Barcode reader - •OSD (On-Screen Display) - •Picture-In-Picture (PIP) - •Face detection and object tracking - •Face recognition - •Multiple output screens support - •Timeshift - •Video Encryption SDK support - •Virtual Camera SDK output - •Service applications support - •Audio/video file tags support - •madVR video renderer - •Low latency RTSP/MJPEG playback - •OBS streaming support ## Use Cases Build powerful video applications for various industries and scenarios ### Medical Imaging Capture and process medical device video streams, endoscopy recording, ultrasound capture ### Video Surveillance Multi-camera monitoring, motion detection alerts, continuous recording systems ### [Screen Recording](/solutions/screen-recording-csharp) Training videos, software tutorials, gameplay recording with webcam overlay ### Video Conferencing Real-time communication, virtual backgrounds, screen sharing capabilities ### Live Streaming Broadcast to multiple platforms, professional streaming with overlays and effects ### Media Production Professional video capture, multi-camera recording, chroma key processing ## Video Capture in C# Video capture in C# takes about a dozen lines with Video Capture SDK .NET; recording a webcam to MP4 shows the whole path. Install the VisioForge.DotNet.VideoCapture NuGet package and call VisioForgeX.InitSDKAsync() once at startup. Create a VideoCaptureCoreX bound to a VideoView, take a camera from Video\_SourcesAsync() and assign it to Video\_Source as VideoCaptureDeviceSourceSettings; a fixed resolution and frame rate come from the camera's VideoFormats list. Pass new MP4Output("output.mp4") to Outputs\_Add, assign a microphone from Audio\_SourcesAsync() to Audio\_Source via CreateSourceSettingsVC() with Audio\_Record set to true, and call StartAsync(); StopAsync() closes the file. On Windows the video is encoded to H.264 on the GPU encoder the SDK finds (NVIDIA NVENC, Intel Quick Sync or AMD AMF), or with OpenH264 when there is none, and the audio to AAC. The preview keeps running in the same VideoView while the file is written, in WPF, WinForms, MAUI and Avalonia apps alike. The [save webcam video guide](/help/docs/dotnet/videocapture/guides/save-webcam-video/) adds WebM output, snapshots and the redistributable packages for each platform. ## Code Samples Explore practical examples demonstrating key features of the Video Capture SDK. ### Video Preview C# View Code Simple webcam preview with automatic device detection ```csharp // Initialize the X engine before creating the core. Safe to call repeatedly; it runs once. await VisioForgeX.InitSDKAsync(); // The 30-day trial needs no license certificate. Register one before StartAsync() in a licensed deployment. // Create VideoCaptureCoreX instance var videoCapture1 = new VideoCaptureCoreX(VideoView1); // Default video and audio sources will be used var videoSourceDevice = (await videoCapture1.Video_SourcesAsync())[0]; videoCapture1.Video_Source = new VideoCaptureDeviceSourceSettings(videoSourceDevice); var audioSourceDevice = (await videoCapture1.Audio_SourcesAsync())[0]; videoCapture1.Audio_Source = audioSourceDevice.CreateSourceSettingsVC(); // Set default audio sink videoCapture1.Audio_Play = true; var audioRendererDevice = (await videoCapture1.Audio_OutputsAsync())[0]; videoCapture1.Audio_OutputDevice = new AudioRendererSettings(audioRendererDevice); // Start await videoCapture1.StartAsync(); ``` ### Video Capture to MP4 C# View Code Premium feature: capture a web camera and microphone to H.264 MP4 with video/audio preview. ```csharp // Initialize the X engine before creating the core. Safe to call repeatedly; it runs once. await VisioForgeX.InitSDKAsync(); // The 30-day trial needs no license certificate. Register one before StartAsync() in a licensed deployment. // Create VideoCaptureCoreX instance and set VideoView for video rendering var videoCapture1 = new VideoCaptureCoreX(VideoView1); // Set default video and audio sources var videoSourceDevice = (await videoCapture1.Video_SourcesAsync())[0]; videoCapture1.Video_Source = new VideoCaptureDeviceSourceSettings(videoSourceDevice); var audioSourceDevice = (await videoCapture1.Audio_SourcesAsync())[0]; videoCapture1.Audio_Source = audioSourceDevice.CreateSourceSettingsVC(); // Set default audio sink var audioRendererDevice = (await videoCapture1.Audio_OutputsAsync())[0]; videoCapture1.Audio_OutputDevice = new AudioRendererSettings(audioRendererDevice); videoCapture1.Audio_Play = true; // Configure MP4 output var filename = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyVideos), "output.mp4"); var mp4Output = new MP4Output(filename); videoCapture1.Outputs_Add(mp4Output); videoCapture1.Audio_Record = true; // Start capture to MP4 await videoCapture1.StartAsync(); ``` Tutorials: [Save webcam video in C# (MP4, WebM)](/help/docs/dotnet/videocapture/guides/save-webcam-video/) · [Record a webcam in VB.NET](/help/docs/dotnet/videocapture/guides/record-webcam-vb-net/) ### IP RTSP Camera Preview C# View Code RTSP camera preview with CPU/GPU video decoding and automatic codec detection. You can use ONVIF discovery to find all IP cameras in your local network. ```csharp // Initialize the X engine before creating the core. Safe to call repeatedly; it runs once. await VisioForgeX.InitSDKAsync(); // The 30-day trial needs no license certificate. Register one before StartAsync() in a licensed deployment. // Create VideoCaptureCoreX var videoCapture1 = new VideoCaptureCoreX(VideoView1); // Configure RTSP camera source var rtsp = await RTSPSourceSettings.CreateAsync(new Uri("rtsp://cameraurl"), "username", "password", true); videoCapture1.Video_Source = rtsp; // Set audio output device var audioRendererDevice = (await videoCapture1.Audio_OutputsAsync())[0]; videoCapture1.Audio_OutputDevice = new AudioRendererSettings(audioRendererDevice); // Start IP preview await videoCapture1.StartAsync(); ``` Tutorials: [Record an IP camera (RTSP) to MP4 in C#](/help/docs/dotnet/videocapture/video-tutorials/ip-camera-capture-mp4/) ### Screen Capture C# View Code Screen capture with mouse cursor to WebM format with VP9 video and Vorbis audio. ```csharp // Create screen capture source private IScreenCaptureSourceSettings CreateScreenCaptureSource() { var source = new ScreenCaptureDX9SourceSettings(); source.FrameRate = new VideoFrameRate(25); source.Rectangle = new Rect(System.Windows.Forms.Screen.AllScreens[0].Bounds); source.CaptureCursor = true; source.Monitor = 0; return source; } private async void StartCapture() { // Initialize the X engine before creating the core. Safe to call repeatedly; it runs once. await VisioForgeX.InitSDKAsync(); // The 30-day trial needs no license certificate. Register one before StartAsync() in a licensed deployment. // Create VideoCaptureCoreX object var videoCapture1 = new VideoCaptureCoreX(VideoView1); // Set screen capture with full screen enabled videoCapture1.Video_Source = CreateScreenCaptureSource(); // Disable audio playback and recording videoCapture1.Audio_Play = videoCapture1.Audio_Record = false; // Configure WebM output var filename = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyVideos), "output.webm"); var webmOutput = new WebMOutput(filename); webmOutput.Video = new VP9EncoderSettings(); // the default encoder is VP8 videoCapture1.Outputs_Add(webmOutput); // Start capture to WebM await videoCapture1.StartAsync(); } ``` Tutorials: [Record the screen to MP4 in C#](/help/docs/dotnet/videocapture/video-tutorials/screen-capture-mp4/) · [Screen capture in VB.NET](/help/docs/dotnet/videocapture/guides/screen-capture-vb-net/) ### Text and Image Overlay C# View Code Add text and image overlays to your video capture ```csharp // Initialize the X engine before creating the core. Safe to call repeatedly; it runs once. await VisioForgeX.InitSDKAsync(); // The 30-day trial needs no license certificate. Register one before StartAsync() in a licensed deployment. // Create VideoCaptureCoreX instance and set VideoView var videoCapture1 = new VideoCaptureCoreX(VideoView1); // Set video and audio sources var videoSourceDevice = (await videoCapture1.Video_SourcesAsync())[0]; videoCapture1.Video_Source = new VideoCaptureDeviceSourceSettings(videoSourceDevice); var audioSourceDevice = (await videoCapture1.Audio_SourcesAsync())[0]; videoCapture1.Audio_Source = audioSourceDevice.CreateSourceSettingsVC(); // Add image overlay var imageFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "logo.png"); await videoCapture1.Video_Effects_AddOrUpdateAsync(new ImageOverlayVideoEffect(imageFile) { X = 100, Y = 100 }); // Add text overlay await videoCapture1.Video_Effects_AddOrUpdateAsync(new TextOverlayVideoEffect() { Text = "Hello World!" }); // Start preview await videoCapture1.StartAsync(); ``` ### Tutorials for the VideoCaptureCore engine (Windows only) - [Preview a webcam and grab frames in C#](/help/docs/dotnet/videocapture/video-tutorials/camera-video-preview/) - [Record a webcam to AVI in C#](/help/docs/dotnet/videocapture/video-tutorials/video-capture-camera-avi/) - [Record a webcam to MP4 in C# (H.264/AAC)](/help/docs/dotnet/videocapture/video-tutorials/video-capture-webcam-mp4/) - [Record a webcam to MP4 in a C# WPF app](/help/docs/dotnet/videocapture/video-tutorials/video-capture-webcam-mp4-wpf/) - [Add text overlays to webcam capture in C#](/help/docs/dotnet/videocapture/video-tutorials/webcam-capture-text-overlay/) ## Connect to an RTSP or ONVIF IP Camera in C# Video Capture SDK .NET connects to an RTSP or ONVIF IP camera with one call: RTSPSourceSettings.CreateAsync(uri, login, password, audioEnabled) probes the stream, reads its format and returns a source for Video\_Source. Protocol-level RTSP libraries such as RtspClientSharp and SharpRTSP hand over encoded frames, leaving decoding, display and file writing to your code; here one VideoCaptureCoreX instance previews the camera and, with Outputs\_Add(new MP4Output("camera.mp4")), records it as well. UseGPUDecoder moves decoding to the graphics card, and LowLatencyMode cuts the default 500 ms latency buffer to 150 ms for live monitoring. FallbackSwitch shows a still image or text when the stream fails; it decodes the stream itself, so UseGPUDecoder does not apply alongside it. To find cameras without typing addresses, DeviceEnumerator.Shared.ONVIF\_ListSourcesAsync discovers ONVIF devices on the local network. The [RTSP camera guide](/help/docs/dotnet/videocapture/video-sources/ip-cameras/rtsp/) covers low-latency and troubleshooting settings, and the [camera directory](/help/docs/dotnet/camera-brands/) lists RTSP URL formats for Hikvision, Dahua, Axis and more than 50 other brands. ## Choose Your License Flexible licensing options for every project Annual licenses include 12 months of updates and email support; Lifetime·Team licenses include both for the life of the product [Bundles from €700/year](https://www.visioforge.com/video-capture-sdk-net#bundles) Developer1 developerWorkgroupup to 3 developersLifetime·Team LicenseBest Valueunlimited developers · one location ### Standard €250 year, Workgroup: €500 / year, Lifetime·Team License: €900 / lifetime Buy Now [💳Subscription — renews yearly](https://buy.stripe.com/dR69AFdZ42Ga2Dm9AA?prefilled_promo_code=BLACKFRIDAY2026&client_reference_id=src_md)[💶One-time payment — 1 year, no auto-renewal](https://buy.stripe.com/28o0056wC6Wq4Lug0G?prefilled_promo_code=BLACKFRIDAY2026&client_reference_id=src_md)[🧾Invoice / PO / Bank transfer](/buy/invoice-request#product=video-capture-sdk-net&edition=standard&period=annual) - [Supported input devices and other sources](/help/docs/dotnet/videocapture/video-sources/)• Web cameras• TV tuners (Windows only) and capture cards• DV and MPEG camcorders (Windows only)• Screen capture• HTTP/UDP/TCP network streams - [Video Preview](/help/docs/dotnet/videocapture/video-tutorials/camera-video-preview/) - [Frame Grabber](/help/docs/dotnet/general/video-effects/video-sample-grabber/) - [Video Processing](/help/docs/dotnet/videocapture/video-processing/) - [Audio Processing](/help/docs/dotnet/general/audio-effects/) - HD and 4K video support - [TV Tuning](/help/docs/dotnet/videocapture/video-sources/tv-tuner/) - [Chroma Key](/help/docs/dotnet/general/video-effects/effects-reference/#chroma-key-cross-platform) - [Motion Detection](/help/docs/dotnet/videocapture/motion-detection/) - OSD (On-Screen Display) - [Multiple output screens](/help/docs/dotnet/general/code-samples/multiple-screens-wpf/) - [Output Formats](/help/docs/dotnet/general/output-formats/)• AVI• WMV (Windows Media Video)• WMA (Windows Media Audio)• WAV• MP3• Ogg Vorbis• Speex• MKV (Matroska) with H.264/HEVC via software or GPU encoders (NVENC/QuickSync/AMD)• M4A• FLAC• Opus• WavPack• Ogg Theora• Animated GIF ### Professional €350 year, Workgroup: €700 / year, Lifetime·Team License: €1,200 / lifetime Buy Now [💳Subscription — renews yearly](https://buy.stripe.com/aEUcMRcV0cgKem4bIJ?prefilled_promo_code=BLACKFRIDAY2026&client_reference_id=src_md)[💶One-time payment — 1 year, no auto-renewal](https://buy.stripe.com/4gw6ot5sy5Sm6TCdSA?prefilled_promo_code=BLACKFRIDAY2026&client_reference_id=src_md)[🧾Invoice / PO / Bank transfer](/buy/invoice-request#product=video-capture-sdk-net&edition=professional&period=annual) - [Supported input devices and other sources](/help/docs/dotnet/videocapture/video-sources/)+• RTSP/ONVIF IP cameras• RTMP and other network streams - [Video Preview](/help/docs/dotnet/videocapture/video-tutorials/camera-video-preview/) - [Frame Grabber](/help/docs/dotnet/general/video-effects/video-sample-grabber/) - [Video Processing](/help/docs/dotnet/videocapture/video-processing/) - [Audio Processing](/help/docs/dotnet/general/audio-effects/) - HD and 4K video support - [TV Tuning](/help/docs/dotnet/videocapture/video-sources/tv-tuner/) - [Network streaming in WMV format](/help/docs/dotnet/general/network-streaming/wmv/) - [Chroma Key](/help/docs/dotnet/general/video-effects/effects-reference/#chroma-key-cross-platform) - [Motion Detection](/help/docs/dotnet/videocapture/motion-detection/) - [Video processing using DirectShow filters](/help/docs/dotnet/general/code-samples/3rd-party-video-effects/) - OSD (On-Screen Display) - [Changing output file name on-the-fly](/help/docs/dotnet/videocapture/video-capture/separate-capture/#dynamic-filename-changes) - [Multiple output screens](/help/docs/dotnet/general/code-samples/multiple-screens-wpf/) - [Output to Virtual Camera SDK](/virtual-camera-sdk) - [Output Formats](/help/docs/dotnet/general/output-formats/)+• DV video• DV/MPEG-1/2/4 (using a TV tuner with an internal MPEG encoder or DV/HDV camcorder, Windows only)• Flash Video (FLV) on VideoCaptureCoreX• MP4/MKV/AVI/ASF video passthrough (DirectCapture on VideoCaptureCore)• WebM• JPEG frame callback ### Premium €500 year, Workgroup: €1,000 / year, Lifetime·Team License: €1,800 / lifetime Buy Now [💳Subscription — renews yearly](https://buy.stripe.com/dR628dg7c80ucdW4gi?prefilled_promo_code=BLACKFRIDAY2026&client_reference_id=src_md)[💶One-time payment — 1 year, no auto-renewal](https://buy.stripe.com/8wMcMR6wCfsW5PydSz?prefilled_promo_code=BLACKFRIDAY2026&client_reference_id=src_md)[🧾Invoice / PO / Bank transfer](/buy/invoice-request#product=video-capture-sdk-net&edition=premium&period=annual) - [Supported input devices and other sources](/help/docs/dotnet/videocapture/video-sources/)+• Blackmagic Decklink• DVB-T/DVB-C/DVB-S/ATSC devices (BETA) - [Video Preview](/help/docs/dotnet/videocapture/video-tutorials/camera-video-preview/) - [Frame Grabber](/help/docs/dotnet/general/video-effects/video-sample-grabber/) - [Video Processing](/help/docs/dotnet/videocapture/video-processing/) - [Audio Processing](/help/docs/dotnet/general/audio-effects/) - HD and 4K video support - [TV Tuning](/help/docs/dotnet/videocapture/video-sources/tv-tuner/) - [Network streaming in WMV format](/help/docs/dotnet/general/network-streaming/wmv/) - [Network streaming using RTMP, RTSP, SRT, RIST, WHIP, HLS, UDP, NDI, HTTP MJPEG, YouTube and Facebook Live](/help/docs/dotnet/videocapture/network-streaming/) - [Chroma Key](/help/docs/dotnet/general/video-effects/effects-reference/#chroma-key-cross-platform) - [Motion Detection](/help/docs/dotnet/videocapture/motion-detection/) - [Video processing using DirectShow filters](/help/docs/dotnet/general/code-samples/3rd-party-video-effects/) - OSD (On-Screen Display) - [Picture-in-Picture](/help/docs/dotnet/videocapture/video-processing/video-mixing/) - [Changing output file name on-the-fly](/help/docs/dotnet/videocapture/video-capture/separate-capture/#dynamic-filename-changes) - [Multiple output screens](/help/docs/dotnet/general/code-samples/multiple-screens-wpf/) - GPU-accelerated video effects - [Output to Virtual Camera SDK](/virtual-camera-sdk) - [Video Encryption SDK support](/video-encryption-sdk) - [Face Tracking](/help/docs/dotnet/videocapture/computer-vision/face-detection/) - [AI object detection](/help/docs/dotnet/general/ai/object-detection/) - [AI zone and tripwire analytics](/help/docs/dotnet/general/ai/object-analytics/) - [AI face recognition](/help/docs/dotnet/general/ai/face-recognition/) - [AI OCR and license plate recognition](/help/docs/dotnet/general/ai/ocr/) - [AI live captions and transcription](/help/docs/dotnet/general/ai/speech-to-text/) - [AI privacy redaction (faces, plates, text)](/help/docs/dotnet/general/ai/pii-redaction/) - [AI open-vocabulary detection](/help/docs/dotnet/general/ai/open-vocabulary-detection/) - [AI live scene captioning](/help/docs/dotnet/general/ai/vlm-captioning/) - [Output Formats](/help/docs/dotnet/general/output-formats/)+• MOV• MPEG-TS• MXF• MPEG-1/2/4 and FLV using FFMPEG on VideoCaptureCore• MP4 (H264/HEVC + AAC) via software or GPU encoders (NVENC/QuickSync/AMD)• Pre-event (circular-buffer) recording• AWS S3 upload• Blackmagic Decklink output• Custom output formats using Media Blocks or external DirectShow filters Pricing plan comparison | | Standard | Professional | Premium | | --- | --- | --- | --- | | Price | €250 year, Workgroup: €500 / year, Lifetime·Team License: €900 / lifetime Buy Now [💳Subscription — renews yearly](https://buy.stripe.com/dR69AFdZ42Ga2Dm9AA?prefilled_promo_code=BLACKFRIDAY2026&client_reference_id=src_md)[💶One-time payment — 1 year, no auto-renewal](https://buy.stripe.com/28o0056wC6Wq4Lug0G?prefilled_promo_code=BLACKFRIDAY2026&client_reference_id=src_md)[🧾Invoice / PO / Bank transfer](/buy/invoice-request#product=video-capture-sdk-net&edition=standard&period=annual) | €350 year, Workgroup: €700 / year, Lifetime·Team License: €1,200 / lifetime Buy Now [💳Subscription — renews yearly](https://buy.stripe.com/aEUcMRcV0cgKem4bIJ?prefilled_promo_code=BLACKFRIDAY2026&client_reference_id=src_md)[💶One-time payment — 1 year, no auto-renewal](https://buy.stripe.com/4gw6ot5sy5Sm6TCdSA?prefilled_promo_code=BLACKFRIDAY2026&client_reference_id=src_md)[🧾Invoice / PO / Bank transfer](/buy/invoice-request#product=video-capture-sdk-net&edition=professional&period=annual) | €500 year, Workgroup: €1,000 / year, Lifetime·Team License: €1,800 / lifetime Buy Now [💳Subscription — renews yearly](https://buy.stripe.com/dR628dg7c80ucdW4gi?prefilled_promo_code=BLACKFRIDAY2026&client_reference_id=src_md)[💶One-time payment — 1 year, no auto-renewal](https://buy.stripe.com/8wMcMR6wCfsW5PydSz?prefilled_promo_code=BLACKFRIDAY2026&client_reference_id=src_md)[🧾Invoice / PO / Bank transfer](/buy/invoice-request#product=video-capture-sdk-net&edition=premium&period=annual) | | Features | | [Supported input devices and other sources](/help/docs/dotnet/videocapture/video-sources/) | • Web cameras • TV tuners (Windows only) and capture cards • DV and MPEG camcorders (Windows only) • Screen capture • HTTP/UDP/TCP network streams | + • RTSP/ONVIF IP cameras • RTMP and other network streams | + • Blackmagic Decklink • DVB-T/DVB-C/DVB-S/ATSC devices (BETA) | | [Video Preview](/help/docs/dotnet/videocapture/video-tutorials/camera-video-preview/) | ✓ | ✓ | ✓ | | [Frame Grabber](/help/docs/dotnet/general/video-effects/video-sample-grabber/) | ✓ | ✓ | ✓ | | [Video Processing](/help/docs/dotnet/videocapture/video-processing/) | ✓ | ✓ | ✓ | | [Audio Processing](/help/docs/dotnet/general/audio-effects/) | ✓ | ✓ | ✓ | | HD and 4K video support | ✓ | ✓ | ✓ | | [TV Tuning](/help/docs/dotnet/videocapture/video-sources/tv-tuner/) | ✓ | ✓ | ✓ | | [Network streaming in WMV format](/help/docs/dotnet/general/network-streaming/wmv/) | ✗ | ✓ | ✓ | | [Network streaming using RTMP, RTSP, SRT, RIST, WHIP, HLS, UDP, NDI, HTTP MJPEG, YouTube and Facebook Live](/help/docs/dotnet/videocapture/network-streaming/) | ✗ | ✗ | ✓ | | [Chroma Key](/help/docs/dotnet/general/video-effects/effects-reference/#chroma-key-cross-platform) | ✓ | ✓ | ✓ | | [Motion Detection](/help/docs/dotnet/videocapture/motion-detection/) | ✓ | ✓ | ✓ | | [Video processing using DirectShow filters](/help/docs/dotnet/general/code-samples/3rd-party-video-effects/) | ✗ | ✓ | ✓ | | OSD (On-Screen Display) | ✓ | ✓ | ✓ | | [Picture-in-Picture](/help/docs/dotnet/videocapture/video-processing/video-mixing/) | ✗ | ✗ | ✓ | | [Changing output file name on-the-fly](/help/docs/dotnet/videocapture/video-capture/separate-capture/#dynamic-filename-changes) | ✗ | ✓ | ✓ | | [Multiple output screens](/help/docs/dotnet/general/code-samples/multiple-screens-wpf/) | ✓ | ✓ | ✓ | | GPU-accelerated video effects | ✗ | ✗ | ✓ | | [Output to Virtual Camera SDK](/virtual-camera-sdk) | ✗ | ✓ | ✓ | | [Video Encryption SDK support](/video-encryption-sdk) | ✗ | ✗ | ✓ | | [Face Tracking](/help/docs/dotnet/videocapture/computer-vision/face-detection/) | ✗ | ✗ | ✓ | | [AI object detection](/help/docs/dotnet/general/ai/object-detection/) | ✗ | ✗ | ✓ | | [AI zone and tripwire analytics](/help/docs/dotnet/general/ai/object-analytics/) | ✗ | ✗ | ✓ | | [AI face recognition](/help/docs/dotnet/general/ai/face-recognition/) | ✗ | ✗ | ✓ | | [AI OCR and license plate recognition](/help/docs/dotnet/general/ai/ocr/) | ✗ | ✗ | ✓ | | [AI live captions and transcription](/help/docs/dotnet/general/ai/speech-to-text/) | ✗ | ✗ | ✓ | | [AI privacy redaction (faces, plates, text)](/help/docs/dotnet/general/ai/pii-redaction/) | ✗ | ✗ | ✓ | | [AI open-vocabulary detection](/help/docs/dotnet/general/ai/open-vocabulary-detection/) | ✗ | ✗ | ✓ | | [AI live scene captioning](/help/docs/dotnet/general/ai/vlm-captioning/) | ✗ | ✗ | ✓ | | [Output Formats](/help/docs/dotnet/general/output-formats/) | • AVI • WMV (Windows Media Video) • WMA (Windows Media Audio) • WAV • MP3 • Ogg Vorbis • Speex • MKV (Matroska) with H.264/HEVC via software or GPU encoders (NVENC/QuickSync/AMD) • M4A • FLAC • Opus • WavPack • Ogg Theora • Animated GIF | + • DV video • DV/MPEG-1/2/4 (using a TV tuner with an internal MPEG encoder or DV/HDV camcorder, Windows only) • Flash Video (FLV) on VideoCaptureCoreX • MP4/MKV/AVI/ASF video passthrough (DirectCapture on VideoCaptureCore) • WebM • JPEG frame callback | + • MOV • MPEG-TS • MXF • MPEG-1/2/4 and FLV using FFMPEG on VideoCaptureCore • MP4 (H264/HEVC + AAC) via software or GPU encoders (NVENC/QuickSync/AMD) • Pre-event (circular-buffer) recording • AWS S3 upload • Blackmagic Decklink output • Custom output formats using Media Blocks or external DirectShow filters | Developer licenses cover one named developer and Workgroup licenses three; Lifetime·Team licenses cover the purchasing organization's developers at one location in one city. All include email support. Lifetime·Team licenses include minor and major updates for the product lifetime. Annual licenses include 12 months of updates. Free for one-developer projects that earn no revenue, with the trial watermark and the VisioForge logo on the video. [Request a community license](/community-license) ### Source Code License Source code licensing for this SDK is available from €10,000, quoted on request. Contact our sales team to discuss pricing and licensing terms. The source itself may not be shared outside your company, and builds of it ship only inside your own applications, never as a standalone filter, SDK or component for other developers. [Request Source Code License](mailto:sales@visioforge.com) ## 💰 Save More with Bundle Packages This product is included in our cost-effective bundle packages. Get more products for less than buying them separately. ### .NET Bundle Professional Annual:€700 vs €1,900 buying them separately Workgroup (annual):€1,400 vs €3,800 buying them separately Lifetime:€2,200 vs €6,600 buying them separately Includes: - •Video Capture SDK .NET (Professional) - •[Media Player SDK .NET](/media-player-sdk-net) (Professional) - •[Video Edit SDK .NET](/video-edit-sdk-net) (Professional) - •[Video Edit SDK FFmpeg .NET](/video-edit-sdk-ffmpeg-net) (Professional) - •[Media Blocks SDK .NET](/media-blocks-sdk-net) ### .NET Bundle Premium Annual:€1,000 vs €2,500 buying them separately Workgroup (annual):€2,000 vs €5,000 buying them separately Lifetime:€3,000 vs €9,000 buying them separately Includes: - •Video Capture SDK .NET (Premium) - •[Media Player SDK .NET](/media-player-sdk-net) (Premium) - •[Video Edit SDK .NET](/video-edit-sdk-net) (Premium) - •[Video Edit SDK FFmpeg .NET](/video-edit-sdk-ffmpeg-net) (Premium) - •[Media Blocks SDK .NET](/media-blocks-sdk-net) [View Bundle Details](/buy#bundles) ## System Requirements Minimum requirements for development and deployment **Operating Systems** - Windows 10 (1809+) / 11 (x86, x64, ARM64) - Windows Server 2016 and later - macOS 12 or later - Ubuntu 22.04 or later - Android 7.0 (API 24) and later - iOS 18 and later **.NET Frameworks** - .NET Framework 4.6.1 or later - .NET Core 3.1 or later - .NET 5/6/7/8/9/10/11 **Hardware Requirements** - Minimum 2 GB RAM (4 GB or more recommended) - 500 MB free disk space for SDK - DirectX 9.0c or later for Windows - Graphics card with OpenGL 2.0 support **Development Tools** - Visual Studio 2022 / 2026 - Visual Studio Code with C# extension - JetBrains Rider ## Documentation & Resources Everything you need to get started ### [API Documentation](/help/docs/dotnet/videocapture/) Complete API reference with detailed descriptions ### [Sample Projects](https://github.com/visioforge/.Net-SDK-s-samples) Ready-to-run examples on GitHub ## Build with AI coding agents Pairing with an AI agent — Claude Code, Cursor, GitHub Copilot, Gemini CLI, OpenAI Codex? VisioForge publishes machine-readable surfaces for Video Capture SDK .NET so your agent gets the integration right the first time: the right NuGet packages, license registration, project setup, and the cross-platform deployment details it would otherwise have to guess at. Live API queries & class lookup Per-platform integration playbooks Cross-platform deployment recipes Full docs as llms.txt ### Connect the MCP server MCP Add the VisioForge MCP server to your agent for contextual help — search the API, look up classes and members, fetch working code examples, and pull deployment guides, directly inside your editor. #### Claude Code `claude mcp add --transport http visioforge-sdk https://mcp.visioforge.com/mcp` #### VS Code (.vscode/mcp.json) `{ "servers": { "visioforge-sdk": { "type": "http", "url": "https://mcp.visioforge.com/mcp" } } }` [MCP server usage guide](https://www.visioforge.com/help/docs/dotnet/general/mcp-server-usage/) ### Load an Agent Skill Agent Skills We publish a downloadable skill for every (SDK, platform) combination — for Video Capture SDK .NET, a ready-made SKILL.md per platform (which NuGet packages, license code, csproj setup, common pitfalls) plus a working sample project your agent can copy from. Compatible with Claude Code, Cursor, OpenAI Codex, Gemini CLI and 30+ other agents (Cloudflare Agent Skills RFC). #### Point your agent at the skills index `https://www.visioforge.com/.well-known/agent-skills/index.json` [Browse the skills and per-tool setup](https://www.visioforge.com/help/docs/dotnet/agent-skills/) Prefer to feed the entire documentation to your agent? It is also available as plain markdown: [/llms.txt](https://www.visioforge.com/llms.txt) · [/llms-full.txt](https://www.visioforge.com/llms-full.txt) ## Start Your Free Trial Today The fully functional trial lasts 30 days. Depending on the SDK engine and output, it may display a watermark or an unregistered notice. [Download 30-Day Free Trial](https://files.visioforge.com/trials/visioforge_sdks_installer_dotnet_setup.exe)[Also for macOS (.pkg)](https://files.visioforge.com/trials/visioforge_sdks_installer_dotnet_setup.pkg) [Contact Support](https://helpdesk.visioforge.com/helpdesk/my-tickets/new) ## Frequently Asked Questions ### How do I capture webcam video in C#? Install the VisioForge.DotNet.VideoCapture NuGet package, call await VisioForgeX.InitSDKAsync() once at application startup, then create a VideoCaptureCoreX instance and assign a webcam source. Call StartAsync() to begin preview or capture. The 30-day trial needs no license certificate; register one when deploying a licensed app. ### Can I record the desktop screen to MP4? Yes. Set the video source to Screen and configure the capture area (full screen or a specific region). The SDK supports hardware-accelerated H.264/H.265 encoding to MP4 with configurable frame rate, bitrate, and audio capture from system output or microphone. ### Does the SDK support IP camera capture via RTSP and ONVIF? Yes. The SDK supports RTSP, ONVIF, HTTP MJPEG, and other IP camera protocols. For ONVIF cameras, you get PTZ control, device discovery, and configuration. You can preview live streams, record to file, or process frames in real-time. ### What UI frameworks and platforms are supported? The SDK supports WinForms, WPF, MAUI, Uno Platform, and Avalonia on Windows. Cross-platform builds work on macOS, Linux, iOS, and Android. Both .NET Framework 4.6.1+ and .NET Core 3.1+ (.NET 5–11) are supported. ### Is hardware-accelerated encoding supported? Yes. The SDK supports GPU-accelerated encoding via NVIDIA NVENC, Intel Quick Sync Video, and AMD AMF. This significantly reduces CPU usage during capture and enables real-time recording at high resolutions including 4K. ### Can I capture from GigE Vision and USB3 Vision cameras? Yes. The SDK includes native support for GigE Vision and USB3 Vision industrial cameras via the GenICam standard. You can configure camera parameters, trigger modes, and capture high-resolution frames for machine vision and inspection applications. ### Can I capture a webcam or IP camera in Unity? Yes. Video Capture SDK .NET ships a ready-to-import .unitypackage. The VideoCaptureCoreX engine captures local webcams and microphones and connects to IP / RTSP / ONVIF cameras, rendering the live preview into a Unity Texture2D. Local webcam capture targets Windows and macOS; RTSP / IP cameras work on Windows, Android, macOS, and iOS. ### Can I record video to MP4 from a Unity app? Yes. Beyond live preview, VideoCaptureCoreX records the captured camera and microphone to MP4 with hardware-accelerated H.264 / HEVC encoding (NVENC and Quick Sync on Windows, MediaCodec on Android, VideoToolbox on macOS / iOS) — all from inside your Unity build. ### Can Video Capture SDK detect objects or recognize faces from a live webcam or IP camera? Yes. Register YOLOObjectDetectorBlock, ObjectAnalyticsBlock, or FaceRecognitionBlock with VideoCaptureCoreX.Video\_Processing\_AddBlock before StartAsync. Detection and recognition run on-device via ONNX Runtime on every captured frame, with results delivered through the block's own event and optional overlays drawn into the preview and recording. ### Can I add live captions or subtitles while recording video? Yes. Register a SpeechToTextBlock with VideoCaptureCoreX.Audio\_Processing\_AddBlock before StartAsync. It transcribes the microphone locally with Whisper and Silero VAD, and can render live subtitles or write SRT/VTT files alongside the recording. ### Is there a Visual Studio or dotnet new project template for Video Capture SDK .NET? Yes. Run dotnet new install VisioForge.DotNet.Templates, then dotnet new vf-capture-wpf -n MyCaptureApp: you get a .NET 10 app that previews the first camera and records it to MP4, with the NuGet packages referenced and the SDK initialized. Capture templates exist for WPF, WinForms, Avalonia and .NET MAUI. In Visual Studio 2026, install the VisioForge .NET Media SDK Templates extension, or let the Windows setup install the templates. ---END OF PAGE--- ## VisioForge .NET SDK General Guides and Documentation **URL:** https://www.visioforge.com/help/docs/dotnet/general/ **Description:** Comprehensive guides for VisioForge .NET SDKs covering video capture, media playback, editing, encoders, effects, and network streaming. **Tags:** .NET, Streaming # VisioForge .NET SDKs: Information, Manuals, and Usage This section provides essential information, detailed software manuals, and practical usage guides for the suite of VisioForge .NET SDKs. Whether you're working with video capture, media playback, or video editing, find the resources you need below. - **[MCP Server Usage Guide](mcp-server-usage/)** - Connect your AI coding assistant to the VisioForge MCP Server for instant access to API documentation, deployment guides, and code examples - **[Using VisioForge in Unity](unity/)** - Import the self-contained Unity package for video playback and RTSP camera streaming in Unity 6 on Windows - [Code samples](code-samples/) - [How to send logs?](sendlogs/) - [Telemetry and privacy](telemetry/) - what the SDK reports while a debugger is attached, and how to switch it off ## Guides - [Video capture to MPEG-TS in VisioForge SDKs](guides/video-capture-to-mpegts/) - [Record and Edit WMA Files in C# and .NET](guides/wma-recording-editing/) ## SDK Components Explore the core components of VisioForge .NET SDKs: ### Media Processing & Effects - **[Video Effects & Processing](video-effects/)**: Enhance your applications with powerful video effects, overlays, and processing capabilities. Learn how to implement professional-grade visual effects, text/image overlays, and custom video processing. - **[Audio Effects](audio-effects/audio-sample-grabber/)**: Explore options for applying various audio effects and enhancements within your .NET applications. ### Encoding & Formats - **[Video Encoders](video-encoders/)**: Detailed overview of video encoders (H.264, HEVC, AV1, etc.) - features, performance, and implementation for .NET developers. - **[Audio Encoders](audio-encoders/)**: Master audio encoding (AAC, FLAC, MP3, Opus) with guidance on optimal settings, performance tips, and best practices. - **[Output Formats](output-formats/)**: Learn about video and audio container formats (MP4, WebM, AVI, MKV) including examples, codec comparisons, and compatibility. ### Streaming & Connectivity - **[Network Streaming](network-streaming/)**: Implement RTMP, RTSP, HLS, and NDI streaming in .NET. Includes examples for live broadcasting, hardware acceleration, and platform integration. ---END OF PAGE--- ## Video Editing - Timeline, Transitions, Overlays in C# .NET **URL:** https://www.visioforge.com/help/docs/dotnet/videoedit/ **Description:** Build video editing apps with VisioForge Video Edit SDK .NET. Timeline editing, transitions, overlays, format conversion, and GPU-accelerated encoding. **Tags:** Video Edit SDK, .NET, DirectShow, Windows, macOS, Linux, Android, iOS, Editing **API:** VideoEditCoreX, MP4Output # Video Edit SDK for C# .NET — Timeline Video Editing API [Video Edit SDK .NET](https://www.visioforge.com/video-edit-sdk-net) ## Introduction Video Edit SDK for .NET is a C# video editing library that lets you build timeline-based video editing applications. Add video and audio files to a timeline, trim segments, apply transitions and effects, overlay text and images, and render the result to MP4, AVI, MKV, WebM, animated GIF, or other formats — all from your .NET code. The SDK provides two engines: **VideoEditCore** (Windows-only, DirectShow-based) and **VideoEditCoreX** (cross-platform, runs on Windows, macOS, Linux, Android, and iOS). Both engines share the same timeline model — add sources, configure output, and start editing. ## Quick Start ### 1. Install NuGet Package ``` dotnet add package VisioForge.DotNet.VideoEdit ``` For platform-specific dependencies and UI framework setup, see the [Installation Guide](../install/). ### 2. Minimal Video Editing Example ``` using VisioForge.Core; using VisioForge.Core.Types; using VisioForge.Core.Types.X.Output; using VisioForge.Core.Types.X.VideoEdit; using VisioForge.Core.VideoEditX; // Initialize SDK VisioForgeX.InitSDK(); // Create editor with video preview var editor = new VideoEditCoreX(videoView); // Set output resolution and frame rate editor.Output_VideoSize = new VisioForge.Core.Types.Size(1920, 1080); editor.Output_VideoFrameRate = new VideoFrameRate(30); // Add video files to timeline editor.Input_AddAudioVideoFile("intro.mp4", null, null, null); editor.Input_AddAudioVideoFile("main.mp4", null, null, null); // Set output format editor.Output_Format = new MP4Output("output.mp4"); // Start editing editor.Start(); // ... when done: editor.Stop(); editor.Dispose(); VisioForgeX.DestroySDK(); ``` For the complete implementation guide with event handling, audio sources, image sources, and advanced timeline configuration, see the [Getting Started Guide](getting-started/). ## Common Use Cases ### Combine Multiple Video Files Merge multiple video clips into a single output file. Add files to the timeline in sequence, set the output format, and render. Supports mixing different source formats — combine MP4, AVI, and MOV files into one output. See: [Getting Started Guide](getting-started/). Files of the same format join without re-encoding with `VideoEditCore.FastEdit_JoinFilesAsync`. ### Trim and Cut Video Segments Extract specific time ranges from video files by setting start and stop times on each source. Combine multiple segments from the same file or different files into a final edit. See: [Working with Video Segments](code-samples/several-segments/) ### Add Text and Image Overlays Insert text titles, captions, logos, and watermarks over video content. Position, scale, and time overlays on the timeline. See: [Text Overlay Implementation](code-samples/add-text-overlay/) | [Adding Image Overlays](code-samples/add-image-overlay/) ### Apply Transitions Between Clips Add cross-dissolve, wipe, slide, fade, and 100+ SMPTE standard transitions between video segments. Control transition duration, border style, and direction. See: [Transition Effects Between Video Fragments](code-samples/transition-video/) | [Transitions Reference](transitions/) ### Create Slideshow from Images Build video slideshows from JPG, PNG, BMP, and GIF images with configurable display duration per image, transitions between slides, and background music. See: [Generating Videos from Image Sequences](code-samples/video-images-console/) ### Add Background Music and Audio Mixing Mix multiple audio tracks with video content. Control volume per track, apply audio envelope effects for fade-in/fade-out, and synchronize audio with video. See: [Audio Volume Envelope Effects](code-samples/audio-envelope/) | [Custom Volume Control](code-samples/volume-for-track/) ### Picture-in-Picture Composition Layer multiple video sources with position and size control for picture-in-picture layouts, reaction videos, or multi-camera compositions. See: [Picture-In-Picture Effects](code-samples/picture-in-picture/) ## Supported Formats | Category | Formats | | --- | --- | | Video Containers | MP4, AVI, MOV, WMV, MKV, WebM, TS, FLV | | Video Codecs | H.264, H.265/HEVC, VP9, AV1, MPEG-2 | | Audio Formats | AAC, MP3, WMA, OPUS, Vorbis, FLAC, WAV | | Image Formats | JPG, PNG, BMP, GIF (input), animated GIF (output) | ## Platform Support | Platform | UI Frameworks | Engine | Notes | | --- | --- | --- | --- | | Windows x64 | WinForms, WPF, MAUI, Avalonia, Console | VideoEditCore, VideoEditCoreX | Full feature set including DirectShow bridges | | macOS | MAUI, Avalonia, Console | VideoEditCoreX | Intel and Apple Silicon | | Linux x64, ARM64 | Avalonia, Console | VideoEditCoreX | Ubuntu, Debian, CentOS | | Android | MAUI | VideoEditCoreX | See [Video editing in .NET MAUI](maui/video-editing-maui/) | | iOS | MAUI | VideoEditCoreX | See [Video editing in .NET MAUI](maui/video-editing-maui/) | ## Developer Documentation ### Guides - [Getting Started Guide](getting-started/) — Full implementation walkthrough with both engines - [Code Examples](code-samples/) — Ready-to-use examples for overlays, transitions, audio, and composition - [Deployment Guide](deployment/) — NuGet packages, installers, and manual installation - [Transitions Reference](transitions/) — 100+ SMPTE wipe transition codes and properties ### iOS - [iOS Video Editor](code-samples/ios-video-editor/) — Building video editing apps for iPhone and iPad ## Developer Resources - [Code Samples on GitHub](https://github.com/visioforge/.Net-SDK-s-samples) - [API Reference](https://api.visioforge.org/dotnet/api/index.html) - [Changelog](../changelog/) - [End User License Agreement](../../eula/) - [Licensing Information](https://www.visioforge.com/licensing) ---END OF PAGE--- ## Webcam Preview and MP4 Recording in C# with Media Blocks **URL:** https://www.visioforge.com/help/docs/dotnet/mediablocks/GettingStarted/camera-to-mp4/ **Description:** Show a webcam in a WPF window and record it with the microphone to an MP4 file in C#, in one Media Blocks pipeline with a tee, H.264 and AAC. **Tags:** Media Blocks SDK, .NET, MediaBlocksPipeline, Windows, macOS, Linux, Android, iOS, WPF, Capture, Webcam, MP4, H.264, AAC, C#, NuGet **API:** MediaBlocksPipeline, SystemVideoSourceBlock, SystemAudioSourceBlock, TeeBlock, VideoRendererBlock, MP4OutputBlock # Webcam Preview and MP4 Recording with Media Blocks SDK [Media Blocks SDK .NET](https://www.visioforge.com/media-blocks-sdk-net) ## Overview This page builds the most common first Media Blocks app from start to finish: a WPF window that shows a webcam and records it, with the microphone, to an MP4 file. One pipeline does both: - `SystemVideoSourceBlock` captures the camera, in Full HD or HD when the camera offers one of them; - `TeeBlock` splits the video in two: one copy goes to the screen, the other to the file; - `VideoRendererBlock` draws the live picture in a `VideoView`; - `SystemAudioSourceBlock` captures the microphone; - `MP4OutputBlock` encodes H.264 video and AAC audio and writes the MP4 file; - `StartAsync` starts the preview and the recording together, and `StopAsync` finishes the file. The same app with a ready-made capture engine instead of a pipeline is [Save Webcam Video in C#](../../../videocapture/guides/save-webcam-video/), in Video Capture SDK .NET. ``` graph LR; SystemVideoSourceBlock-->TeeBlock; TeeBlock-->VideoRendererBlock; TeeBlock-->MP4OutputBlock; SystemAudioSourceBlock-->MP4OutputBlock; ``` ## Required Packages - [VisioForge.DotNet.MediaBlocks](https://www.nuget.org/packages/VisioForge.DotNet.MediaBlocks/) — the SDK; the WPF `VideoView` ships in it - [VisioForge.CrossPlatform.Core.Windows.x64](https://www.nuget.org/packages/VisioForge.CrossPlatform.Core.Windows.x64/) — the GStreamer runtime the pipeline runs on, with the camera sources and the H.264 encoders - [VisioForge.CrossPlatform.Libav.Windows.x64](https://www.nuget.org/packages/VisioForge.CrossPlatform.Libav.Windows.x64/) — the FFmpeg AAC encoder; without it the AAC encoder of Media Foundation is used - [VisioForge.CrossPlatform.Core.Windows.Intel.x64](https://www.nuget.org/packages/VisioForge.CrossPlatform.Core.Windows.Intel.x64/) — optional: the Intel Quick Sync H.264 encoder; without it a PC whose only GPU is Intel encodes with OpenH264 on the CPU ``` dotnet add package VisioForge.DotNet.MediaBlocks dotnet add package VisioForge.CrossPlatform.Core.Windows.x64 dotnet add package VisioForge.CrossPlatform.Libav.Windows.x64 ``` The runtime packages are x64, so the project file sets `PlatformTarget`; a 32-bit app takes the `.x86` packages instead. Keep the runtime packages at the release of `VisioForge.DotNet.MediaBlocks` or just before it, as the [Getting Started guide](../) explains. ``` WinExe net10.0-windows x64 true enable enable ``` ## The Window `MainWindow.xaml` has a `VideoView` for the picture and the **Start** and **Stop** buttons, both disabled until they can be used. The window's `Loaded` and `Closing` events are wired to the handlers in the code below. ```