• Documentation
  • Api
  • Xabe.FFmpeg
  • FFmpeg
Show / Hide Table of Contents
  • System
    • TimeExtensions
  • Xabe.FFmpeg
    • AudioCodec
    • AudioStream
    • BitstreamFilter
    • Conversion
    • ConversionPreset
    • ConversionQueue
    • ConversionQueue.ConversionQueueEventHandler
    • FFmpeg
    • Flag
    • Format
    • HardwareAccelerator
    • Hash
    • IAudioStream
    • IConversion
    • IConversionResult
    • IFilterConfiguration
    • IInputBuilder
    • IMediaInfo
    • InputBuilder
    • IProbe
    • IStream
    • ISubtitleStream
    • IVideoStream
    • MediaInfo
    • ParameterPosition
    • PixelFormat
    • Position
    • Probe
    • RotateDegrees
    • StreamType
    • SubtitleStream
    • VideoCodec
    • VideoSize
    • VideoStream
  • Xabe.FFmpeg.Downloader
    • FFmpegDownloader
    • FFmpegVersion
    • IFFMpegDownloaderBase
  • Xabe.FFmpeg.Events
    • ConversionProgressEventArgs
    • ConversionProgressEventHandler
  • Xabe.FFmpeg.Exceptions
    • ConversionException
    • FFmpegNoSuitableOutputFormatFoundException
    • FFmpegNotFoundException
    • HardwareAcceleratorNotFoundException
    • InvalidBitstreamFilterException
    • InvalidInputException
    • UnknownDecoderException

Class FFmpeg

Wrapper for FFmpeg

Inheritance
System.Object
FFmpeg
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Xabe.FFmpeg
Assembly: Xabe.FFmpeg.dll
Syntax
public abstract class FFmpeg

Constructors

FFmpeg()

Initalize new FFmpeg. Search FFmpeg and FFprobe in PATH

Declaration
protected FFmpeg()

Properties

ExecutablesPath

Directory containing FFmpeg and FFprobe

Declaration
public static string ExecutablesPath { get; set; }
Property Value
Type Description
System.String

FFmpegExecutableName

Name of FFmpeg executable name (Case insensitive)

Declaration
public static string FFmpegExecutableName { get; }
Property Value
Type Description
System.String

FFmpegPath

FilePath to FFmpeg

Declaration
protected string FFmpegPath { get; }
Property Value
Type Description
System.String

FFmpegProcessId

FFmpeg process id

Declaration
public int FFmpegProcessId { get; }
Property Value
Type Description
System.Int32

FFprobeExecutableName

Name of FFprobe executable name (Case insensitive)

Declaration
public static string FFprobeExecutableName { get; }
Property Value
Type Description
System.String

FFprobePath

FilePath to FFprobe

Declaration
protected string FFprobePath { get; }
Property Value
Type Description
System.String

Priority

FFmpeg tool process priority

Declaration
public ProcessPriorityClass? Priority { get; set; }
Property Value
Type Description
System.Nullable<System.Diagnostics.ProcessPriorityClass>

Methods

RunProcess(String, String, Nullable<ProcessPriorityClass>, Boolean, Boolean, Boolean)

Run conversion

Declaration
protected Process RunProcess(string args, string processPath, ProcessPriorityClass? priority, bool standardInput = false, bool standardOutput = false, bool standardError = false)
Parameters
Type Name Description
System.String args

Arguments

System.String processPath

FilePath to executable (FFmpeg, ffprobe)

System.Nullable<System.Diagnostics.ProcessPriorityClass> priority

Process priority to run executables

System.Boolean standardInput

Should redirect standard input

System.Boolean standardOutput

Should redirect standard output

System.Boolean standardError

Should redirect standard error

Returns
Type Description
System.Diagnostics.Process
Exceptions
Type Condition
System.InvalidOperationException
System.ObjectDisposedException
In This Article
  • Constructors
    • FFmpeg()
  • Properties
    • ExecutablesPath
    • FFmpegExecutableName
    • FFmpegPath
    • FFmpegProcessId
    • FFprobeExecutableName
    • FFprobePath
    • Priority
  • Methods
    • RunProcess(String, String, Nullable<ProcessPriorityClass>, Boolean, Boolean, Boolean)
Back to top Xabe