Table of Contents

Class ImageExtractor

Namespace
VAST.File.Utility
Assembly
VAST.File.dll

Provides functionality to extract a single image frame from a video file at a specified position.

public class ImageExtractor
Inheritance
ImageExtractor
Inherited Members

Constructors

ImageExtractor()

public ImageExtractor()

Properties

DecoderParameters

Gets or sets the video decoding parameters.

public DecoderParameters DecoderParameters { get; set; }

Property Value

DecoderParameters

ErrorDescription

Gets the last error description if the last method call returned false.

public string ErrorDescription { get; }

Property Value

string

MaxMediaFoundationInstanceCount

Gets or sets the maximum number of concurrent Media Foundation decoder instances.

public static int MaxMediaFoundationInstanceCount { get; set; }

Property Value

int

Methods

Execute(string, TimeSpan)

Extracts an image frame from the specified video file at the given position.

public Task<SKImage> Execute(string filePath, TimeSpan position)

Parameters

filePath string

The path to the video file.

position TimeSpan

The position in the video to extract the frame from.

Returns

Task<SKImage>

A task that returns the extracted image, or null if extraction failed.