最后更新:2026年11月
Video Capture SDK .NET vs Datastead TVideoGrabber
全面的 .NET 视频采集组件比较
为 .NET 应用程序选择合适的视频采集组件决定了项目的功能和长期成本。本指南详细比较了 VisioForge Video Capture SDK .NET(一个支持五个操作系统的现代双引擎采集平台)和 Datastead TVideoGrabber(一个成熟的基于 DirectShow 的 Windows 采集组件)。我们从架构、功能、多输出支持、流媒体、定价和实际代码等方面进行分析,帮助您做出明智的决定。
每年 €250 起 · Lifetime 许可证 €900 起
执行摘要
| 方面 | Video Capture SDK .NET | TVideoGrabber |
|---|---|---|
| 架构 | 双引擎:原生 DirectShow/Media Foundation + 跨平台 GStreamer | 单引擎:基于属性的 DirectShow 组件 |
| 平台支持 | Windows、macOS、Linux、Android、iOS(5个平台) | 仅 Windows |
| 定价 | 年费 €250–500,或 €900–1,800 Lifetime·Team | 每名开发者 €700;源过滤器和编码器附加组件各 €950,NDI Filters €400;含全部四个产品的 Suite €2,100 |
| 最适合 | 具有流媒体、多输出和实时效果的跨平台采集应用 | Delphi、C++Builder 或 .NET 项目中的 Windows 采集 |
| API 风格 | 异步优先的 .NET API,支持事件和 await 模式 | 基于属性的组件模型,使用同步调用 |
架构深入分析
Video Capture SDK .NET 架构
Video Capture SDK 提供两个引擎。VideoCaptureCore 封装了 Windows 上的 DirectShow 和 Media Foundation,提供对操作系统公开的每个采集设备的原生访问。VideoCaptureCoreX 基于 GStreamer 构建,在 Windows、macOS、Linux、Android 和 iOS 上处理采集和录制。这两个引擎是独立的类,API 密切相关,因此在它们之间切换需要修改部分代码。
- ▶通过 DirectShow 和 Media Foundation 滤镜图实现原生 Windows 采集
- ▶基于 GStreamer 的跨平台引擎,Windows 上可选 FFmpeg 输出
- ▶通过 Direct3D / OpenGL 渲染器实现 GPU 加速预览
- ▶支持 .NET async/await 的事件驱动架构
- ▶单进程模型——无需子进程管理
- ▶跨平台支持:Windows、macOS、Linux、Android、iOS
TVideoGrabber 架构
TVideoGrabber 是 Datastead 开发的单引擎 DirectShow 组件。它通过基于属性的 API 公开采集设备属性和录制设置。配置通过在开始采集前设置组件属性来完成,遵循为 .NET 改编的传统 Delphi/VCL 组件模式。
- ▶DirectShow 滤镜图用于 Windows 上的设备访问和录制
- ▶基于属性的配置模型(设置属性后启动)
- ▶ONVIF 发现和 PTZ 控制方法
- ▶运动检测及运动触发录制
- ▶IP 源、NDI、GenICam 摄像头以及高级编码和流媒体的付费附加组件
- ▶仅 Windows——不支持 macOS、Linux 或移动设备
关键架构差异
| 方面 | Video Capture SDK | TVideoGrabber |
|---|---|---|
| 引擎设计 | 双引擎(DirectShow/MF + GStreamer) | 单引擎(仅 DirectShow) |
| 平台范围 | 5个操作系统,7个 UI 框架 | 仅 Windows,WinForms/WPF |
| API 模式 | Async/await、事件、托管对象 | 基于属性、同步调用 |
| 多输出 | 同时录制 + 推流 + 截图 | 通过 €950 编码器附加组件实现多路输出 |
| 流媒体 | RTMP、RTSP、SRT、HLS、NDI 内置 | 通过 €950 编码器附加组件支持 RTMP、RTSP 服务器、SRT、HLS;通过 €400 附加组件支持 NDI |
| 附加组件模式 | 功能按版本划分,无付费附加组件 | 基础 + 付费附加组件(源过滤器和编码器 €950,NDI €400) |
逐项功能比较
采集源
| 功能 | Video Capture SDK | TVideoGrabber |
|---|---|---|
| USB 摄像头 | ✅ | ✅ |
| 笔记本内置摄像头 | ✅ | ✅ |
| 屏幕/桌面采集 | ✅ | ✅ |
| IP 摄像头(RTSP/ONVIF) | ✅ | ⚠️(RTSP 需要 €950 源过滤器) |
| ONVIF PTZ 控制 | ✅ | ✅ |
| 采集卡(Blackmagic、Magewell) | ✅ | ✅(Decklink 和 DirectShow 设备) |
| 电视调谐器(BDA/DVB) | ✅ | ❌(Datastead 文档中未提及) |
| NDI 源 | ✅ | ⚠️(需要 €400 附加组件) |
| 虚拟摄像头(OBS Virtual Cam) | ✅ | ✅ |
| DECKLINK 输入 | ✅ | ✅ |
录制
| 功能 | Video Capture SDK | TVideoGrabber |
|---|---|---|
| MP4(H.264 / H.265) | ✅ | ⚠️(H.265: €950 编码器附加组件) |
| MKV 容器 | ✅ | ✅ |
| WebM(VP8 / VP9 / AV1) | ✅ | ⚠️(€950 编码器附加组件) |
| AVI | ✅ | ✅ |
| WMV / ASF | ✅ | ✅ |
| MOV(ProRes) | ✅ | ⚠️(€950 编码器附加组件) |
| MPEG-TS | ✅ | ⚠️(€950 编码器附加组件) |
| 动画 GIF | ✅ | ❌ |
| 纯音频(MP3、AAC、WAV) | ✅ | ✅ |
| 按时间/大小分割文件 | ✅ | ✅ |
| 预事件录制(循环缓冲区) | ✅ | ✅(回溯帧) |
多输出
| 功能 | Video Capture SDK | TVideoGrabber |
|---|---|---|
| 同时录制 + 推流 | ✅ | ⚠️(内置 WMV;其他需 €950 附加组件) |
| 多路录制输出 | ✅ | ⚠️(€950 编码器附加组件) |
| 同时录制 + 截图 | ✅ | ⚠️(基本截图支持) |
| 每路输出不同分辨率 | ✅ | ❌ |
| 虚拟摄像头输出 | ✅ | ❌ |
| 时移/延迟播放 | ✅ | ❌ |
流媒体协议
| 功能 | Video Capture SDK | TVideoGrabber |
|---|---|---|
| RTMP 推流(YouTube、Twitch) | ✅ | ⚠️(€950 编码器附加组件) |
| RTSP 服务器模式 | ✅ | ⚠️(€950 编码器附加组件) |
| SRT(Caller / Listener) | ✅ | ⚠️(€950 编码器附加组件) |
| HLS 分段生成 | ✅ | ⚠️(€950 编码器附加组件) |
| NDI 输出 | ✅ | ⚠️(€400 附加组件) |
| UDP / TCP 单播/多播 | ✅ | ⚠️(€950 编码器附加组件) |
视频处理
| 功能 | Video Capture SDK | TVideoGrabber |
|---|---|---|
| 实时缩放/裁剪 | ✅ | ✅ |
| 去隔行 | ✅ | ✅ |
| 颜色调整(亮度、对比度) | ✅ | ✅ |
| 文字叠加(时间戳、水印) | ✅ | ✅ |
| 图片叠加/Logo | ✅ | ✅ |
| GPU 加速视频特效 | ✅ | ❌ |
| 色度键(绿幕) | ✅ | ✅ |
| 画中画 | ✅ | ✅ |
音频
| 功能 | Video Capture SDK | TVideoGrabber |
|---|---|---|
| 音频设备采集 | ✅ | ✅ |
| 系统音频(回环)采集 | ✅ | ❌ |
| 音频混合(多输入) | ✅ | ⚠️ |
| 实时音量/增益控制 | ✅ | ⚠️ |
| 音频特效(回声、混响) | ✅ | ❌ |
| VU 表/电平监控 | ✅ | ✅ |
检测与分析
| 功能 | Video Capture SDK | TVideoGrabber |
|---|---|---|
| 运动检测 | ✅ | ✅ |
| 人脸检测 | ✅ | ❌ |
| 条形码/二维码读取 | ✅ | ❌ |
| OCR 文字识别(Premium 版) | ✅ | ❌ |
| 目标跟踪 | ✅ | ❌ |
| 音频电平检测 | ✅ | ⚠️ |
平台支持
操作系统兼容性
| 平台 | Video Capture SDK | TVideoGrabber |
|---|---|---|
| Windows x64 | ✅ | ✅ |
| Windows ARM64 | ✅ | ❌ |
| macOS(Apple Silicon + Intel) | ✅ | ❌ |
| Linux x64(Ubuntu、Debian、Fedora) | ✅ | ❌ |
| Linux ARM64(Raspberry Pi) | ✅ | ❌ |
| Android(通过 .NET MAUI) | ✅ | ❌ |
| iOS(通过 .NET MAUI) | ✅ | ❌ |
UI 框架兼容性
| 框架 | Video Capture SDK | TVideoGrabber |
|---|---|---|
| WinForms | ✅ | ✅ |
| WPF | ✅ | ✅ |
| .NET MAUI | ✅ | ❌ |
| Avalonia UI | ✅ | ❌ |
| Console / Service | ✅ | ❌ |
| ASP.NET Core(后台服务) | ✅ | ❌ |
| Blazor Hybrid | ✅ | ❌ |
价格比较
Video Capture SDK .NET 定价
一名指定开发者;12 个月的小版本和大版本更新及电子邮件支持
一名指定开发者;12 个月的小版本和大版本更新及电子邮件支持
一名指定开发者;12 个月的小版本和大版本更新及电子邮件支持
购买组织在同一城市一个地点的所有开发者;永久使用、产品生命周期内更新和电子邮件支持
所有许可证均包含:
- ✓ 免版税分发
- ✓ Premium 包含所有功能(流媒体、NDI、GPU 特效、多输出、OCR);较低版本对其中部分功能有限制
- ✓ 所有源代码示例
- ✓ 电子邮件支持
- ✓ 包含所有5个平台目标
TVideoGrabber 定价
每名开发者,采集和播放组件,2 年更新,仅 Windows
添加 NDI 源/输出支持
添加 MOV、WebM、MPEG-TS 和 HEVC 输出,以及 RTMP、SRT、HLS 和 RTSP 服务器流媒体
SDK、RTSP/RTMP/HTTP/ONVIF Source Filter、Multipurpose Encoder 和 NDI Filters,按每名开发者计——仍然仅 Windows
总拥有成本
完整的 TVideoGrabber 配置以 Datastead Suite 形式购买时每名开发者 €2,100,且仅在 Windows 上运行。Video Capture SDK Premium Lifetime·Team 许可证 €1,800,覆盖同一地点的所有开发者,并增加跨平台支持、GPU 特效和 OCR。对于单个开发者,SDK Premium 年度许可证为每年 €500。
- ⚠SDK Premium(€1,800,同一地点的所有开发者)vs TVideoGrabber Suite(每名开发者 €2,100)
- ⚠SDK 包含流媒体协议(RTMP、SRT、HLS)——TVideoGrabber 需要 €950 的 Multipurpose Encoder
- ⚠SDK 包含多输出录制——TVideoGrabber 的多路输出需要同一附加组件
- ⚠SDK 覆盖5个平台——TVideoGrabber 仅覆盖 Windows
- ⚠SDK 包含 GPU 加速特效——TVideoGrabber 文档未列出任何此类特效
每年 €250 起 · Lifetime 许可证 €900 起
代码示例
示例 1:摄像头录制为 MP4
Video Capture SDK .NET
C#using VisioForge.Core.VideoCapture;
using VisioForge.Core.Types.VideoCapture;
using VisioForge.Core.Types.Output;
// Create the capture engine
var capture = new VideoCaptureCore();
// Set video source (first available webcam)
var devices = capture.Video_CaptureDevices();
capture.Video_CaptureDevice = new VideoCaptureSource(devices[0].Name);
// Set audio source
var audioDevices = capture.Audio_CaptureDevices();
capture.Audio_CaptureDevice = new AudioCaptureSource(audioDevices[0].Name);
capture.Audio_RecordAudio = true;
// Configure MP4 output with H.264 + AAC
capture.Output_Format = new MP4Output
{
Video = new MP4OutputH264Settings
{
Bitrate = 4000,
Profile = H264Profile.ProfileMain
}
};
capture.Output_Filename = "recording.mp4";
// Capture mode records to file while showing preview
capture.Mode = VideoCaptureMode.VideoCapture;
// Start recording with preview
await capture.StartAsync();TVideoGrabber
C#// TVideoGrabber — property-based approach
var grabber = new VideoGrabber();
// Select video device by index
grabber.VideoDevice = 0;
// Select audio device by index
grabber.AudioDevice = 0;
// Set recording mode
grabber.RecordingMethod = TRecordingMethod.rm_MP4;
// Set output filename
grabber.RecordingFileName = "recording.mp4";
// Start recording
grabber.StartRecording();
// Note: Properties set before starting
// No async/await — synchronous calls示例 2:带 ONVIF PTZ 控制的 IP 摄像头
Video Capture SDK .NET
C#using VisioForge.Core.VideoCapture;
using VisioForge.Core.ONVIFX;
using VisioForge.Core.Types.VideoCapture;
using VisioForge.Core.Types.Output;
using VisioForge.Core.Types.FFMPEGEXE;
var capture = new VideoCaptureCore();
// Connect to ONVIF IP camera
capture.IP_Camera_Source = new IPCameraSourceSettings
{
URL = new Uri("rtsp://192.168.1.100:554/stream"),
Login = "admin",
Password = "password",
Type = IPSourceEngine.Auto_FFMPEG
};
capture.Mode = VideoCaptureMode.IPCapture;
// ONVIF PTZ control via ONVIFClientX
var onvif = new ONVIFClientX();
await onvif.ConnectAsync(
"http://192.168.1.100/onvif/device_service", "admin", "password");
var profiles = await onvif.GetProfilesAsync();
var token = profiles[0].token;
// pan, tilt, zoom speeds in range -1..1
await onvif.ContinuousMoveAsync(-0.5f, 0.5f, 0.0f);
await onvif.StopMoveAsync(token, panTilt: true, zoom: true);
await onvif.GoToPresetAsync(token, "1", 1.0f, 1.0f, 1.0f);
// Record while controlling PTZ
capture.Output_Format = new MP4Output();
capture.Output_Filename = "camera_feed.mp4";
// Simultaneously stream to RTMP
capture.Network_Streaming_Enabled = true;
capture.Network_Streaming_Format = NetworkStreamingFormat.RTMP_FFMPEG_EXE;
capture.Network_Streaming_Output = new FFMPEGEXEOutput { OutputMuxer = OutputMuxer.FLV };
capture.Network_Streaming_URL = "rtmp://stream.example.com/live";
await capture.StartAsync();TVideoGrabber
C#// TVideoGrabber — ONVIF PTZ support
var grabber = new VideoGrabber();
// IP camera source (RTSP needs the source filter add-on)
grabber.VideoSource = TVideoSource.vs_IPCamera;
grabber.IPCameraURL = "rtsp://192.168.1.100:554/stream";
grabber.SetAuthentication(
TAuthenticationType.at_IPCamera, "admin", "password");
// Record to file
grabber.RecordingMethod = TRecordingMethod.rm_MP4;
grabber.RecordingFileName = "camera_feed.mp4";
grabber.StartRecording();
// ONVIF PTZ methods
grabber.ONVIFPTZStartMove("Pan", false, 0.5, 1000);
grabber.ONVIFPTZStopMove("Pan");
// Note: Streaming needs the Multipurpose Encoder add-on
// Windows only示例 3:多输出录制 + 流媒体
Video Capture SDK .NET
C#using VisioForge.Core.VideoCapture;
using VisioForge.Core.Types.VideoCapture;
using VisioForge.Core.Types.Output;
using VisioForge.Core.Types.FFMPEGEXE;
var capture = new VideoCaptureCore();
// Set webcam source
var devices = capture.Video_CaptureDevices();
capture.Video_CaptureDevice = new VideoCaptureSource(devices[0].Name);
capture.Mode = VideoCaptureMode.VideoCapture;
// Output 1: High-quality local MP4 recording
capture.Output_Format = new MP4Output
{
Video = new MP4OutputH264Settings
{
Bitrate = 8000,
Profile = VisioForge.Core.Types.Output.H264Profile.ProfileHigh
}
};
capture.Output_Filename = "archive.mp4";
capture.SeparateCapture_Enabled = true;
capture.SeparateCapture_AutostartCapture = true;
// Output 2: Stream the same source to YouTube via RTMP
capture.Network_Streaming_Enabled = true;
capture.Network_Streaming_Audio_Enabled = true;
capture.Network_Streaming_Format = NetworkStreamingFormat.RTMP_FFMPEG_EXE;
capture.Network_Streaming_Output = new FFMPEGEXEOutput { OutputMuxer = OutputMuxer.FLV };
capture.Network_Streaming_URL = "rtmp://a.rtmp.youtube.com/live2/YOUR_KEY";
// File recording and RTMP stream run simultaneously
await capture.StartAsync();
// Roll over to a second file on demand (split recording)
await capture.SeparateCapture_ChangeFilenameOnTheFlyAsync("archive_part2.mp4");TVideoGrabber
C#// TVideoGrabber — several outputs need an add-on
var grabber = new VideoGrabber();
// Select video device
grabber.VideoDevice = 0;
grabber.RecordingMethod = TRecordingMethod.rm_MP4;
grabber.RecordingFileName = "archive.mp4";
grabber.StartRecording();
// Roll over to a new file
grabber.RecordToNewFileNow("archive_part2.mp4", false);
// Recording + RTMP, or several outputs at once,
// goes through the Multipurpose Encoder add-on (€950).示例 4:带录制的运动检测
Video Capture SDK .NET
C#using VisioForge.Core.VideoCapture;
using VisioForge.Core.Types.VideoCapture;
using VisioForge.Core.Types.VideoProcessing;
using VisioForge.Core.Types.Output;
var capture = new VideoCaptureCore();
// Set video source
var devices = capture.Video_CaptureDevices();
capture.Video_CaptureDevice = new VideoCaptureSource(devices[0].Name);
// Enable motion detection with highlight overlay
capture.Motion_Detection = new MotionDetectionSettings
{
Enabled = true,
Highlight_Enabled = true,
Highlight_Color = MotionCHLColor.Red,
Matrix_Width = 8,
Matrix_Height = 8
};
var lastRoll = DateTime.MinValue;
// Motion event handler (Level is 0-100)
capture.OnMotion += async (s, e) =>
{
// Roll a timestamped file on motion
if (e.Level < 5 || DateTime.Now - lastRoll < TimeSpan.FromMinutes(1)) return;
Console.WriteLine($"Motion at {DateTime.Now}: Level={e.Level}");
lastRoll = DateTime.Now;
if (!await capture.SeparateCapture_ChangeFilenameOnTheFlyAsync(
$"motion_{DateTime.Now:yyyyMMdd_HHmmss}.mp4"))
{
lastRoll = DateTime.MinValue;
}
};
// Configure output (preview + capture)
capture.Output_Format = new MP4Output
{
Video = new MP4OutputH264Settings { Bitrate = 4000 }
};
capture.Output_Filename = "capture.mp4";
capture.SeparateCapture_Enabled = true;
capture.SeparateCapture_AutostartCapture = true;
capture.Mode = VideoCaptureMode.VideoCapture;
// Start capture with motion detection
await capture.StartAsync();TVideoGrabber
C#// TVideoGrabber — motion detection
var grabber = new VideoGrabber();
// Select video device
grabber.VideoDevice = 0;
// Enable motion detection
grabber.MotionDetector_Enabled = true;
// Motion event
grabber.OnMotionDetected += (s, e) =>
{
Console.WriteLine(
$"Motion detected at {DateTime.Now}");
};
// Set recording format
grabber.RecordingMethod = TRecordingMethod.rm_MP4;
grabber.RecordingFileName = "motion.mp4";
grabber.StartPreview();
// Note: motion detection is a shared capability.
// TVideoGrabber can also record on motion
// (RecordingOnMotion_Enabled).决策矩阵
| 需求 | Video Capture SDK | TVideoGrabber | 胜出 |
|---|---|---|---|
| 跨平台(Windows、Mac、Linux、移动端) | Video Capture SDK | ||
| 多输出(同时录制 + 推流) | Video Capture SDK | ||
| 实时音频特效 | Video Capture SDK | ||
| GPU 加速视频特效 | Video Capture SDK | ||
| RTMP / HLS / SRT 流媒体 | Video Capture SDK | ||
| 虚拟摄像头输出 | Video Capture SDK | ||
| 文件分割/时移 | Video Capture SDK | ||
| 硬件编码(NVENC、QSV) | Video Capture SDK | ||
| 无额外费用的 NDI | Video Capture SDK | ||
| Delphi / C++Builder 项目 | TVideoGrabber |
结论
Video Capture SDK .NET
Video Capture SDK 提供全面的现代采集平台,覆盖五个操作系统和七个 UI 框架。Premium 版在一个许可证中包含流媒体、多输出、GPU 特效、NDI、硬件编码和 OCR:单个开发者每年 €500,或 Lifetime·Team 许可证 €1,800。对于构建跨平台采集应用的团队,Lifetime·Team 许可证(同一城市的一个地点)的费用也低于 TVideoGrabber Suite。
TVideoGrabber
TVideoGrabber 是一款成熟的仅限 Windows 的采集组件,具有可靠的 DirectShow 集成、ONVIF PTZ 控制以及一流的 Delphi 和 C++Builder 支持。流媒体、多路输出和现代编解码器通过 €950 的 Multipurpose Encoder 提供,IP 源通过 €950 的源过滤器提供,因此完整配置以 Suite 形式达到每名开发者 €2,100。其文档未列出音频效果、OCR 或人脸检测。
实际情况
对于 Delphi 或 C++Builder 的仅 Windows 项目,或已围绕 TVideoGrabber 构建的团队,它仍然是可行的选择。对于跨平台工作、GPU 特效、OCR 或单一团队许可证,Video Capture SDK 是更强的选择。
常见问题
TVideoGrabber 支持向 YouTube 或 Twitch 进行 RTMP 推流吗?
TVideoGrabber 能同时录制到多个文件吗?
与 SDK 相比,TVideoGrabber 的价格是多少?
Video Capture SDK 像 TVideoGrabber 一样支持 ONVIF PTZ 摄像头控制吗?
我可以在 macOS 或 Linux 上使用 TVideoGrabber 吗?
Video Capture SDK 支持 OCR 吗?
我可以从 TVideoGrabber 迁移到 Video Capture SDK 吗?
开始使用
Datastead 价格见 datastead.com/purchase.html 公布(TVideoGrabber €700;RTSP/RTMP/HTTP/ONVIF Source Filter 和 Multipurpose Encoder 各 €950;NDI Filters €400;含全部四个产品的 Suite €2,100),按每名开发者计,不含增值税,已于2026-11-02核实。价格如有变更,恕不另行通知。
