ShotDetector.FastYuv
3.4.0
See the version list below for details.
dotnet add package ShotDetector.FastYuv --version 3.4.0
NuGet\Install-Package ShotDetector.FastYuv -Version 3.4.0
<PackageReference Include="ShotDetector.FastYuv" Version="3.4.0" />
<PackageVersion Include="ShotDetector.FastYuv" Version="3.4.0" />
<PackageReference Include="ShotDetector.FastYuv" />
paket add ShotDetector.FastYuv --version 3.4.0
#r "nuget: ShotDetector.FastYuv, 3.4.0"
#:package ShotDetector.FastYuv@3.4.0
#addin nuget:?package=ShotDetector.FastYuv&version=3.4.0
#tool nuget:?package=ShotDetector.FastYuv&version=3.4.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, and large video is faster (the current numbers: ShotDetector's weekly benchmarks).
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, and only those rows'
work). It is a FrameReader IRowDeinterlacer, so a FrameDecoder takes
it too (FrameDecoderOptions.RowDeinterlacer).
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 (>= 3.4.0 && < 4.0.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 |
|---|---|---|
| 3.30.0 | 541 | 11/6/2026 |
| 3.29.0 | 112 | 11/6/2026 |
| 3.28.0 | 720 | 11/3/2026 |
| 3.27.0 | 317 | 11/2/2026 |
| 3.26.0 | 284 | 11/1/2026 |
| 3.25.0 | 497 | 11/1/2026 |
| 3.24.0 | 365 | 10/31/2026 |
| 3.23.0 | 524 | 10/31/2026 |
| 3.22.0 | 346 | 10/30/2026 |
| 3.21.0 | 183 | 10/30/2026 |
| 3.20.1 | 186 | 10/29/2026 |
| 3.20.0 | 356 | 10/28/2026 |
| 3.19.0 | 312 | 10/28/2026 |
| 3.18.0 | 159 | 10/27/2026 |
| 3.17.0 | 345 | 10/27/2026 |
| 3.16.1 | 399 | 10/25/2026 |
| 3.16.0 | 182 | 10/25/2026 |
| 3.15.0 | 245 | 10/25/2026 |
| 3.14.0 | 325 | 10/24/2026 |
| 3.4.0 | 199 | 10/17/2026 |