Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FormatInfo ¶
type StreamInfo ¶
type StreamInfo struct { Type string `json:"codec_type"` Codec string `json:"codec_name"` CodecLongName string `json:"codec_long_name"` Width int `json:"width"` Height int `json:"height"` DisplayAspectRatio string `json:"display_aspect_ratio"` ExpBitrate string `json:"bit_rate"` ExpDuration string `json:"duration"` ExpRFrameRate string `json:"r_frame_rate"` PixelFormat string `json:"pix_fmt"` }
func (*StreamInfo) AsStream ¶
func (s *StreamInfo) AsStream() *Stream
type VideoInfo ¶
type VideoInfo struct { StreamInfos []StreamInfo `json:"streams"` FormatInfo `json:"format"` FileName string `json:"-"` }
func GetVideoInfo ¶
func (*VideoInfo) FormatSize ¶
Click to show internal directories.
Click to hide internal directories.