C# Class subtitleMemorize.StreamInfo

Mostrar archivo Open project: ChangSpivey/SubtitleMemorize Class Usage Examples

Public Methods

Method 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

Method 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 method

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
return String

GetAttributeInt() public method

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
return Int32?

HasAttribute() public method

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

ReadAllStreams() public static method

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