ShotDetector.FastYuv
1.11.0
dotnet add package ShotDetector.FastYuv --version 1.11.0
NuGet\Install-Package ShotDetector.FastYuv -Version 1.11.0
<PackageReference Include="ShotDetector.FastYuv" Version="1.11.0" />
<PackageVersion Include="ShotDetector.FastYuv" Version="1.11.0" />
<PackageReference Include="ShotDetector.FastYuv" />
paket add ShotDetector.FastYuv --version 1.11.0
#r "nuget: ShotDetector.FastYuv, 1.11.0"
#:package ShotDetector.FastYuv@1.11.0
#addin nuget:?package=ShotDetector.FastYuv&version=1.11.0
#tool nuget:?package=ShotDetector.FastYuv&version=1.11.0
ShotDetector.FastYuv
Optional fast path for ShotDetector: with it, ffmpeg sends raw yuv420p and ShotDetector converts only the ~7% of pixels its resize reads, instead of ffmpeg converting every full frame to BGR. Results are identical; on 1080p video detection takes about 10 s instead of 17 s for 5000 frames.
using ShotDetector;
using ShotDetector.FastYuv;
var result = ShotDetection.Detect("video.mp4", new DetectionOptions { Yuv420Converter = new SwscaleYuv420() });
It also has Yadif, a port of FFmpeg's yadif deinterlacer, row by row: with in-process decoding and
deinterlacing on, only the rows the resize reads are deinterlaced (identical results; on 1080i25 MPEG-2 with
2 CPUs, 7.5 s instead of 11.6 s for 2000 frames).
var result = ShotDetection.Detect("broadcast.mxf", new DetectionOptions { Deinterlace = DeinterlaceMode.Auto, Yadif = new Yadif() });
The converter is a bit-exact port of FFmpeg libswscale's yuv420p → BGR24 conversion (verified for all 2^24 Y/U/V values), so this package is licensed under the GNU LGPL 2.1 or later (COPYING.LGPL). The ShotDetector package itself is MIT. Video that isn't 8-bit yuv420p with an even height uses the normal path anyway.
Copyright (C) 2001-2007 Michael Niedermayer, (C) 2009-2010 Konstantin Shishkov (FFmpeg); yadif (C) 2006-2011 Michael Niedermayer, 2010 James Darnley (FFmpeg); C# port (C) 2026 Jakob Boman.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- ShotDetector (>= 1.11.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.11.0 | 0 | 10/12/2026 |
| 1.10.0 | 0 | 10/12/2026 |
| 1.9.0 | 0 | 10/12/2026 |
| 1.8.0 | 0 | 10/12/2026 |
| 1.7.0 | 169 | 10/11/2026 |
| 1.6.0 | 154 | 10/11/2026 |
| 1.5.0 | 63 | 10/11/2026 |
| 1.4.1 | 190 | 10/10/2026 |
| 1.4.0 | 37 | 10/10/2026 |
| 1.3.0 | 124 | 10/10/2026 |
| 1.3.0-preview.1 | 39 | 10/10/2026 |
| 1.2.0 | 102 | 10/10/2026 |
| 1.1.0 | 135 | 10/9/2026 |
| 1.0.0 | 278 | 10/8/2026 |
| 0.10.0 | 74 | 10/8/2026 |
| 0.9.0 | 68 | 10/8/2026 |
| 0.8.0 | 65 | 10/7/2026 |
| 0.7.0 | 65 | 10/7/2026 |
| 0.6.1 | 76 | 10/7/2026 |
| 0.6.0 | 61 | 10/7/2026 |