UtilFFMediaToolkitExtractVideoFramesAsJPEG(String, String, Int32, ActionInt32, Int32) Method
Extracts all the frames of the specified video file and save them to disk as JPEG images.
Namespace: DevCase.ThirdParty.FFMediaToolkitAssembly: 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(
string videoFile,
string outputPath,
int quality,
Action<int, int> callback = null
)
Public Shared Sub ExtractVideoFramesAsJPEG (
videoFile As String,
outputPath As String,
quality As Integer,
Optional callback As Action(Of Integer, Integer) = Nothing
)
Dim videoFile As String
Dim outputPath As String
Dim quality As Integer
Dim callback As Action(Of Integer, Integer)
UtilFFMediaToolkit.ExtractVideoFramesAsJPEG(videoFile,
outputPath, quality, callback)
public:
static void ExtractVideoFramesAsJPEG(
String^ videoFile,
String^ outputPath,
int quality,
Action<int, int>^ callback = nullptr
)
static member ExtractVideoFramesAsJPEG :
videoFile : string *
outputPath : string *
quality : int *
?callback : Action<int, int>
(* Defaults:
let _callback = defaultArg callback null
*)
-> unit
No code example is currently available or this language may not be supported.
Parameters
- videoFile String
-
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.
This is a code example.
No code example is currently available or this language may not be supported.
' FFMpeg binaries (shared build) (download here: https://www.gyan.dev/ffmpeg/builds/)
' See FFMediaToolkit documentation here: https://github.com/radek-k/FFMediaToolkit#setup
FFMediaToolkit.FFmpegLoader.FFmpegPath = "C:\ffmpeg\"
FFMediaToolkit.FFmpegLoader.LoadFFmpeg()
ExtractVideoFramesAsJPEG("C:\file.mp4", "C:\frames", quality:=80)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.