C# Class Unosquare.FFmpegMediaElement.Helper

Provides methods and constants for miscellaneous operations
Afficher le fichier Open project: bbougot/Popcorn

Private Properties

Свойство Type Description
ExtractFFmpegDlls string
IsNoPtsValue bool

Méthodes publiques

Méthode Description
GetFFmpegErrorMessage ( int code ) : string

Gets the FFmpeg error mesage based on the error code

RegisterFFmpeg ( ) : void

Registers FFmpeg library and initializes its components.

RoundSeconds ( decimal seconds ) : decimal
RoundTicks ( long ticks ) : long
SecondsToTimestamp ( decimal seconds, FFmpeg.AutoGen.AVRational streamTimeBase ) : long

Converts seconds to a timestamp value.

TimestampToSeconds ( long ts, FFmpeg.AutoGen.AVRational streamTimeBase ) : decimal

Converts a Timestamp to seconds.

Private Methods

Méthode Description
ExtractFFmpegDlls ( string resourcePrefix ) : string

Extracts the FFmpeg Dlls.

IsNoPtsValue ( long timestamp ) : bool

Method Details

GetFFmpegErrorMessage() public static méthode

Gets the FFmpeg error mesage based on the error code
public static GetFFmpegErrorMessage ( int code ) : string
code int The code.
Résultat string

RegisterFFmpeg() public static méthode

Registers FFmpeg library and initializes its components.
public static RegisterFFmpeg ( ) : void
Résultat void

RoundSeconds() public static méthode

public static RoundSeconds ( decimal seconds ) : decimal
seconds decimal
Résultat decimal

RoundTicks() public static méthode

public static RoundTicks ( long ticks ) : long
ticks long
Résultat long

SecondsToTimestamp() public static méthode

Converts seconds to a timestamp value.
public static SecondsToTimestamp ( decimal seconds, FFmpeg.AutoGen.AVRational streamTimeBase ) : long
seconds decimal The seconds.
streamTimeBase FFmpeg.AutoGen.AVRational The stream time base.
Résultat long

TimestampToSeconds() public static méthode

Converts a Timestamp to seconds.
public static TimestampToSeconds ( long ts, FFmpeg.AutoGen.AVRational streamTimeBase ) : decimal
ts long The ts.
streamTimeBase FFmpeg.AutoGen.AVRational The stream time base.
Résultat decimal