Class MediaInfo
Inheritance
System.Object
MediaInfo
Implements
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 class MediaInfo : IMediaInfo
Properties
AudioStreams
Declaration
public IEnumerable<IAudioStream> AudioStreams { get; }
Property Value
Type | Description |
---|---|
System. |
Duration
Declaration
public TimeSpan Duration { get; }
Property Value
Type | Description |
---|---|
System. |
Path
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
System. |
Size
Declaration
public long Size { get; }
Property Value
Type | Description |
---|---|
System. |
Streams
Declaration
public IEnumerable<IStream> Streams { get; }
Property Value
Type | Description |
---|---|
System. |
SubtitleStreams
Declaration
public IEnumerable<ISubtitleStream> SubtitleStreams { get; }
Property Value
Type | Description |
---|---|
System. |
VideoStreams
Declaration
public IEnumerable<IVideoStream> VideoStreams { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
Get(FileInfo)
Get MediaInfo from file
Declaration
public static Task<IMediaInfo> Get(FileInfo fileInfo)
Parameters
Type | Name | Description |
---|---|---|
System. |
fileInfo | FileInfo |
Returns
Type | Description |
---|---|
System. |
Get(String)
Get MediaInfo from file
Declaration
public static Task<IMediaInfo> Get(string filePath)
Parameters
Type | Name | Description |
---|---|---|
System. |
filePath | FullPath to file |
Returns
Type | Description |
---|---|
System. |
Get(String, CancellationToken)
Get MediaInfo from file
Declaration
public static Task<IMediaInfo> Get(string filePath, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System. |
filePath | FullPath to file |
System. |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
System. |