Table of Contents

Class FFMPEGInfoEventArgs

Namespace
VisioForge.Core.Types.Events
Assembly
VisioForge.Core.dll

Provides data for FFMPEG informational events.

public class FFMPEGInfoEventArgs : EventArgs

Inheritance

Inherited Members

Examples

encoder.OnFFMPEGInfo += (sender, e) =>
{
    // Parse FFMPEG output for progress information
    if (e.Message.Contains("frame="))
    {
        UpdateProgressBar(ParseProgress(e.Message));
    }
    else if (e.Message.Contains("Stream #"))
    {
        LogStreamInfo(e.Message);
    }
    else if (e.Message.Contains("Warning:"))
    {
        LogWarning(e.Message);
    }
};

Remarks

This event arguments class is used to relay informational messages from FFMPEG operations.

FFMPEG is a comprehensive multimedia framework used for audio/video encoding, decoding, and processing.

Messages can include encoding progress, format detection results, stream information, warnings, or debug output.

This event is particularly useful for monitoring long-running operations like transcoding or streaming.

Constructors

FFMPEGInfoEventArgs(string)

Initializes a new instance of the VisioForge.Core.Types.Events.FFMPEGInfoEventArgs class.

public FFMPEGInfoEventArgs(string message)

Parameters

message string

The informational message text from FFMPEG operations.

Remarks

This constructor is typically called internally by FFMPEG wrapper components during media processing operations.

The message parameter contains raw output from FFMPEG which may include progress updates, warnings, or diagnostic information.

Applications should handle null or empty messages gracefully as FFMPEG may produce blank output lines.

Exceptions

ArgumentNullException

Thrown when the message parameter is null.

Properties

Message

Gets the informational message from FFMPEG.

public string Message { get; }

Property Value

string

Remarks

Common message types include:

  • Encoding progress: frame numbers, bitrate, speed, time elapsed
  • Stream information: codec details, resolution, frame rate, sample rate
  • Format detection: container format, metadata, duration
  • Warning messages: deprecated features, potential issues
  • Error diagnostics: codec compatibility, format support issues
  • Debug output: detailed processing information when verbose mode is enabled

The message format follows FFMPEG's standard output conventions and may require parsing for structured data extraction.

See Also