FFMpegConverter Class

NReco.VideoConverter Class Library Documentation
Video converter component (wrapper to FFMpeg process)
Inheritance Hierarchy

SystemObject
  NReco.VideoConverterFFMpegConverter

Namespace:  NReco.VideoConverter
Assembly:  NReco.VideoConverter (in NReco.VideoConverter.dll) Version: 1.2.0
Syntax

public class FFMpegConverter

The FFMpegConverter type exposes the following members.

Constructors

  NameDescription
Public methodFFMpegConverter
Initializes a new instance of the FFMpegConverter class.
Top
Properties

  NameDescription
Public propertyExecutionTimeout
Gets or sets maximum execution time for conversion process (null is by default - means no timeout)
Public propertyFFMpegExeName
Gets or sets FFMpeg tool EXE file name ('ffmpeg.exe' by default)
Public propertyFFMpegProcessPriority
Gets or sets FFMpeg process priority (Normal by default)
Public propertyFFMpegProcessUser
Gets or sets user credential used for starting FFMpeg process.
Public propertyFFMpegToolPath
Gets or sets path where FFMpeg tool is located
Public propertyLogLevel
Gets or sets ffmpeg loglevel option (by default is "info").
Top
Methods

  NameDescription
Public methodAbort
Abort FFMpeg process started by ConvertMedia or ConcatMedia methods
Protected methodComposeFFMpegCommandLineArgs
Protected methodComposeFFMpegOutputArgs
Public methodConcatMedia
Concatenate several video files
Public methodConvertLiveMedia(String, Stream, String, ConvertSettings)
Create a task for live stream conversion (real-time) without input source. Input data should be passed with Write method.
Public methodConvertLiveMedia(Stream, String, Stream, String, ConvertSettings)
Create a task for live stream conversion (real-time) that reads data from input stream and write conversion result to output stream
Public methodConvertLiveMedia(Stream, String, String, String, ConvertSettings)
Create a task for live stream conversion (real-time) that reads data from stream and writes conversion result to the file
Public methodConvertLiveMedia(String, String, Stream, String, ConvertSettings)
Create a task for live stream conversion (real-time) that reads data from FFMpeg input source and write conversion result to output stream
Public methodConvertMedia(String, Stream, String)
Converts media represented by local file and writes result to specified stream
Public methodConvertMedia(String, String, String)
Converts media represented by local file and writes result to specified local file
Public methodConvertMedia(FFMpegInput, String, String, OutputSettings)
Converts several input files into one resulting output file.
Public methodConvertMedia(String, String, Stream, String, ConvertSettings)
Converts media represented by local file and writes result to specified stream with specified convert settings.
Public methodConvertMedia(String, String, String, String, ConvertSettings)
Converts media represented by local file and writes result to specified local file with specified settings.
Protected methodEnsureFFMpegProcessStopped
Public methodEquals (Inherited from Object.)
Public methodExtractFFmpeg
Extracts ffmpeg binaries (if needed) to the location specified by FFMpegToolPath.
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodGetVideoThumbnail(String, Stream)
Extract video thumbnail (first frame) from local video file
Public methodGetVideoThumbnail(String, String)
Extract video thumbnail (first frame) from local video file
Public methodGetVideoThumbnail(String, Stream, NullableSingle)
Extract video frame from local video file at specified position
Public methodGetVideoThumbnail(String, String, NullableSingle)
Extract video frame from a local video file (or URL) at the specified position
Public methodGetVideoThumbnail(String, Stream, NullableSingle, ConvertSettings)
Extract video frame at the specified position from the local video file (or URL).
Public methodGetVideoThumbnail(String, String, NullableSingle, ConvertSettings)
Extract video frame from local video file at specified position
Public methodInvoke
Invoke FFMpeg process with custom command line arguments
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStop
Stop FFMpeg process "softly" by sending 'q' command to FFMpeg console. This method doesn't stop FFMpeg process immediately and may take some time.
Public methodToString (Inherited from Object.)
Protected methodWaitFFMpegProcessForExit
Top
Events

  NameDescription
Public eventConvertProgress
Occurs when FFMpeg outputs media info (total duration, convert progress)
Public eventLogReceived
Occurs when log line is received from FFMpeg process
Top
See Also

Reference