MediaInfo.get

Get a piece of information about a file (parameter is a string).

Get a piece of information about a file (parameter is a string)

  1. string get(MediaInfo_stream_t streamKind, size_t streamNumber, size_t parameter, MediaInfo_info_t infoKind)
  2. string get(MediaInfo_stream_t streamKind, size_t streamNumber, string parameter, MediaInfo_info_t infoKind, MediaInfo_info_t searchKind)
    struct MediaInfo
    private public
    string
    get
    (
    MediaInfo_stream_t streamKind
    ,,
    string parameter
    ,
    MediaInfo_info_t infoKind = MediaInfo_info_t.MediaInfo_Info_Text
    ,
    MediaInfo_info_t searchKind = MediaInfo_info_t.MediaInfo_Info_Name
    )

Parameters

streamKind MediaInfo_stream_t

Kind of stream (general, video, audio...)

streamNumber size_t

Stream number in Kind of stream (first, second...)

parameter string

Parameter you are looking for in the stream (Codec, width, bitrate...), in string format ("Codec", "Width"...) See MediaInfo::Option("Info_Parameters") to have the full list

infoKind MediaInfo_info_t

Kind of information you want about the parameter (the text, the measure, the help...)

searchKind MediaInfo_info_t

Where to look for the parameter

Return Value

Type: string

a string about information you search an empty string if there is a problem

Meta