Skip to content

IVideoProcessor

Namespace: MJCZone.MediaMatic.Processors

Assembly: MJCZone.MediaMatic

Summary

Provides video processing operations (thumbnails, transcoding).

abstract public

Note: This is an interface that defines a contract. Look for implementing classes in the same or related namespaces.

Contents

Methods (2)

Methods

GenerateThumbnailsAsync

Generates thumbnails from a video file.

csharp
Task<List<string>> GenerateThumbnailsAsync(
    string videoPath,
    ThumbnailOptions options,
    CancellationToken cancellationToken)

Parameters

  • videoPath (string) - Path to the video file.
  • options (ThumbnailOptions) - Thumbnail generation options.
  • cancellationToken (CancellationToken) - Cancellation token.

Returns

Type: Task<List<string>>

List of paths to generated thumbnail files.

TranscodeAsync

Transcodes a video to a different format/codec.

csharp
Task<string> TranscodeAsync(
    string sourcePath,
    string destinationPath,
    TranscodeOptions options,
    CancellationToken cancellationToken)

Parameters

  • sourcePath (string) - Path to the source video file.
  • destinationPath (string) - Path to the destination video file.
  • options (TranscodeOptions) - Transcoding options.
  • cancellationToken (CancellationToken) - Cancellation token.

Returns

Type: Task<string>

Path to the transcoded video file.