UtilFFMediaToolkitExtractVideoFramesAsJPEG(MediaFile, String, Int32, ActionInt32, Int32) Method

Extracts all the frames of the specified video file and save them to disk as JPEG images.

Definition

Namespace: DevCase.ThirdParty.FFMediaToolkit
Assembly: DevCase.net48.ThirdParty.FFMediaToolkit (in DevCase.net48.ThirdParty.FFMediaToolkit.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void ExtractVideoFramesAsJPEG(
	MediaFile videoFile,
	string outputPath,
	int quality,
	Action<int, int> callback = null
)

Parameters

videoFile  MediaFile
The video file.
outputPath  String
The output path.
quality  Int32
The JPEG quality, from 1 (minimum quality) to 100 (best quality).
callback  ActionInt32, Int32  (Optional)
An encapsulated method that is invoked with {currentFrameNumber, totalFrames} arguments to report progress.

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:

FFMediaToolkit by Radosław Kmiotek

https://www.nuget.org/packages/AForge.Imaging/

https://www.nuget.org/packages/AForge.Math/

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also