C# Класс subtitleMemorize.StreamInfo

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetAttribute ( String name ) : String

ffmpeg generates a lot of information about streams as a key-value pair like index:"7" codec_type:"attachment" ... This function returns the value for a key, or "null" if key was not found.

GetAttributeInt ( String name ) : Int32?

See for general information. This method finds the value as string in dicionary and then tries to parse it as int. Returns "null" if key was not found or there was an error while parsing.

HasAttribute ( String name ) : bool

Returns true if ffmpeg created attribute with key "name".

ReadAllStreams ( String filename ) : List

Uses ffprobe/avprobe to query all audio, video and subtitle streams in a container file.

Приватные методы

Метод Описание
GetLanguageByLanguageCode ( String l ) : String

Gets the language by short language code ("ja" -> "Japanese").

StreamInfo ( int streamIndex, StreamType st, String streamName, String>.Dictionary attributeDictionary ) : System

Описание методов

GetAttribute() публичный Метод

ffmpeg generates a lot of information about streams as a key-value pair like index:"7" codec_type:"attachment" ... This function returns the value for a key, or "null" if key was not found.
public GetAttribute ( String name ) : String
name String
Результат String

GetAttributeInt() публичный Метод

See for general information. This method finds the value as string in dicionary and then tries to parse it as int. Returns "null" if key was not found or there was an error while parsing.
public GetAttributeInt ( String name ) : Int32?
name String
Результат Int32?

HasAttribute() публичный Метод

Returns true if ffmpeg created attribute with key "name".
public HasAttribute ( String name ) : bool
name String
Результат bool

ReadAllStreams() публичный статический Метод

Uses ffprobe/avprobe to query all audio, video and subtitle streams in a container file.
public static ReadAllStreams ( String filename ) : List
filename String
Результат List