UtilFFMediaToolkitExtractVideoFramesAsPNG(MediaFile, String, ActionInt32, Int32) Method
Extracts all the frames of the specified video file and save them to disk as PNG 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 ExtractVideoFramesAsPNG(
MediaFile videoFile,
string outputPath,
Action<int, int> callback = null
)
Public Shared Sub ExtractVideoFramesAsPNG (
videoFile As MediaFile,
outputPath As String,
Optional callback As Action(Of Integer, Integer) = Nothing
)
Dim videoFile As MediaFile
Dim outputPath As String
Dim callback As Action(Of Integer, Integer)
UtilFFMediaToolkit.ExtractVideoFramesAsPNG(videoFile,
outputPath, callback)
public:
static void ExtractVideoFramesAsPNG(
MediaFile^ videoFile,
String^ outputPath,
Action<int, int>^ callback = nullptr
)
static member ExtractVideoFramesAsPNG :
videoFile : MediaFile *
outputPath : string *
?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 MediaFile
-
The video file.
- outputPath String
-
The output path.
- 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()
Using videoFile As MediaFile = MediaFile.Open("C:\file.mp4")
ExtractVideoFramesAsPNG(videoFile, "C:\frames")
End Using
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.