Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Media ¶
type Media struct {
// Format common file format information.
Format map[string]interface{} `json:"format"`
// Streams item information structure.
Streams []*Stream `json:"streams"`
// Duration is duration of storage file in seconds.
Duration float64
// Size of file in bytes.
Size uint64
}
Media describes file information.
type Stream ¶
type Stream struct {
Index int `json:"index"`
Type string `json:"codec_type"`
CodecName string `json:"codec_name"`
CodecLongName string `json:"codec_long_name"`
Bitrate string `json:"bitRate"`
Duration float64 `json:"duration,string"`
Width int64 `json:"width"`
Height int64 `json:"height"`
Tags map[string]string `json:"tags,omitempty"`
}
Stream information about single stream.
Click to show internal directories.
Click to hide internal directories.