C# 클래스 subtitleMemorize.StreamInfo

파일 보기 프로젝트 열기: ChangSpivey/SubtitleMemorize 1 사용 예제들

공개 메소드들

메소드 설명
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