C# Class subtitleMemorize.StreamInfo

Afficher le fichier Open project: ChangSpivey/SubtitleMemorize Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
GetLanguageByLanguageCode ( String l ) : String

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

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

Method Details

GetAttribute() public méthode

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
Résultat String

GetAttributeInt() public méthode

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
Résultat Int32?

HasAttribute() public méthode

Returns true if ffmpeg created attribute with key "name".
public HasAttribute ( String name ) : bool
name String
Résultat bool

ReadAllStreams() public static méthode

Uses ffprobe/avprobe to query all audio, video and subtitle streams in a container file.
public static ReadAllStreams ( String filename ) : List
filename String
Résultat List