minfo

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2022 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audio

type Audio struct {
	Header
	Frame
	Codec

	Samples         float64 `json:"SamplingCount,omitempty,string"`
	SampleRate      float64 `json:"SamplingRate,omitempty,string"`
	SamplesPerFrame float64 `json:"SamplesPerFrame,omitempty,string"`

	Channels  string `json:",omitempty"`
	Layout    string `json:"ChannelLayout,omitempty"`
	Positions string `json:"ChannelPositions,omitempty"`

	CompressionMode string `json:"Compression_Mode,omitempty"`
	AlternateGroup  string `json:"AlternateGroup,omitempty"`
	Default         string `json:",omitempty"`
}

type Box

type Box struct {
	Header
	Codec

	AudioCount,
	FrameCount,
	VideoCount,
	DataSize,
	FileSize,
	FooterSize,
	HeaderSize int `json:",string,omitempty"`

	EncodedApplication string `json:"Encoded_Application,omitempty"`

	OverallBitRate     float64 `json:",omitempty,string"`
	OverallBitRateMode string  `json:"OverallBitRate_Mode,omitempty"`
	IsStreamable       string  `json:"IsStreamable,omitempty"`
}

type Codec

type Codec struct {
	ID   string `json:"CodecID,omitempty"`
	Name string `json:"CodecID_Compatible,omitempty"`

	Format    string `json:"Format,omitempty"`
	Profile   string `json:"Format_Profile,omitempty"`
	Level     string `json:"Format_Level,omitempty"`
	RefFrames string `json:"Format_Settings_RefFrames,omitempty"`
	CABAC     string `json:"Format_Settings_CABAC,omitempty"`
	Features  string `json:"Format_AdditionalFeatures,omitempty"`

	BitRate,
	BitRateMaximum float64 `json:",string,omitempty"`
	BitRateMode string `json:"BitRate_Mode,omitempty"`
}

type File

type File struct {
	Path string `json:",omitempty"`

	Header
	Codec

	AudioCount,
	FrameCount,
	VideoCount,
	DataSize,
	FileSize,
	FooterSize,
	HeaderSize int `json:",string,omitempty"`

	EncodedApplication string `json:"Encoded_Application,omitempty"`

	OverallBitRate     float64 `json:",omitempty,string"`
	OverallBitRateMode string  `json:"OverallBitRate_Mode,omitempty"`
	IsStreamable       string  `json:"IsStreamable,omitempty"`

	Track []interface{} `json:",omitempty"`
}

func ReadURL

func ReadURL(c context.Context, path string) (media File, err error)

func (File) Audio

func (f File) Audio() (track []Audio)

func (*File) Decode

func (f *File) Decode(p []byte) error

func (File) Duration

func (f File) Duration() time.Duration

func (File) String

func (f File) String() string

func (File) Video

func (f File) Video() (track []Video)

type Frame

type Frame struct {
	Count            int     `json:"FrameCount,omitempty,string"`
	Rate             float64 `json:"FrameRate,omitempty,string"`
	RateMode         string  `json:"FrameRate_Mode,omitempty"`
	RateModeOriginal string  `json:"FrameRate_Mode_Original,omitempty"`
}
type Header struct {
	Type string `json:"@type,omitempty"`
	ID,
	StreamOrder,
	StreamSize int `json:",omitempty,string"`
	Duration float64 `json:",omitempty,string"`
}

type Text

type Text struct {
	Header
	Frame
	Codec

	Width, Height   int     `json:",omitempty,string"`
	CompressionMode string  `json:"Compression_Mode,omitempty"`
	Language        string  `json:",omitempty"`
	Delay           float64 `json:",omitempty,string"`
}

type Timecode

type Timecode struct {
	Header
	Frame
	Codec

	FirstFrame string  `json:"TimeCode_FirstFrame,omitempty"`
	Settings   string  `json:"TimeCode_Settings,omitempty"`
	Delay      float64 `json:",omitempty,string"`
}

type Video

type Video struct {
	Header
	Frame
	Codec

	Width, Height int `json:",omitempty,string"`

	DisplayAspectRatio,
	PixelAspectRatio,
	Rotation,
	BitDepth float64 `json:",omitempty,string"`

	ScanType,
	ColorSpace,
	ChromaSubsampling string `json:",omitempty"`

	Extra struct {
		CodecConfigurationBox string `json:"Codec_configuration_box,omitempty"`
	} `json:"extra,omitempty"`
}

Directories

Path Synopsis
cmd
minfo command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL