mediainfo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Lib mapping
	ExecCommand         = glts.ExecCommand
	ExecCommandProgress = glts.ExecCommandProgress
)

Functions

This section is empty.

Types

type MediaInfoStruct

type MediaInfoStruct struct {
	Media []media `json:"media"`
}

MediaInfoStruct that hold MediaInfo data provided by 'mediainfo' shell command.

func MediaInfoStructNew

func MediaInfoStructNew(filename string) (*MediaInfoStruct, error)

MediaInfoStructNew create a new MediaInfo structure

type Track

type Track struct {
	Type     string `json:"@type"`
	UniqueID string `json:"UniqueID"`

	FileExtension                  string `json:"FileExtension,omitempty"`
	Format                         string `json:"Format"`
	FormatVersion                  string `json:"Format_Version,omitempty"`
	FileSize                       string `json:"FileSize,omitempty"`
	Duration                       string `json:"Duration,omitempty"`
	OverallBitRate                 string `json:"OverallBitRate,omitempty"`
	FrameRate                      string `json:"FrameRate,omitempty"`
	FrameCount                     string `json:"FrameCount,omitempty"`
	StreamSize                     string `json:"StreamSize,omitempty"`
	IsStreamable                   string `json:"IsStreamable,omitempty"`
	EncodedDate                    string `json:"Encoded_Date,omitempty"`
	FileModifiedDate               string `json:"File_Modified_Date,omitempty"`
	FileModifiedDateLocal          string `json:"File_Modified_Date_Local,omitempty"`
	EncodedApplication             string `json:"Encoded_Application,omitempty"`
	EncodedLibrary                 string `json:"Encoded_Library,omitempty"`
	StreamOrder                    string `json:"StreamOrder,omitempty"`
	ID                             string `json:"ID,omitempty"`
	InStreamID                     int
	FormatProfile                  string `json:"Format_Profile,omitempty"`
	FormatLevel                    string `json:"Format_Level,omitempty"`
	FormatSettingsCABAC            string `json:"Format_Settings_CABAC,omitempty"`
	FormatSettingsRefFrames        string `json:"Format_Settings_RefFrames,omitempty"`
	CodecID                        string `json:"CodecID,omitempty"`
	BitRate                        string `json:"BitRate,omitempty"`
	Width                          string `json:"Width,omitempty"`
	Height                         string `json:"Height,omitempty"`
	StoredHeight                   string `json:"Stored_Height,omitempty"`
	SampledWidth                   string `json:"Sampled_Width,omitempty"`
	SampledHeight                  string `json:"Sampled_Height,omitempty"`
	PixelAspectRatio               string `json:"PixelAspectRatio,omitempty"`
	DisplayAspectRatio             string `json:"DisplayAspectRatio,omitempty"`
	FrameRateMode                  string `json:"FrameRate_Mode,omitempty"`
	FrameRateModeOriginal          string `json:"FrameRate_Mode_Original,omitempty"`
	ColorSpace                     string `json:"ColorSpace,omitempty"`
	ChromaSubsampling              string `json:"ChromaSubsampling,omitempty"`
	BitDepth                       string `json:"BitDepth,omitempty"`
	ScanType                       string `json:"ScanType,omitempty"`
	Delay                          string `json:"Delay,omitempty"`
	Default                        string `json:"Default,omitempty"`
	Forced                         string `json:"Forced,omitempty"`
	Typeorder                      string `json:"@typeorder,omitempty"`
	FormatCommercialIfAny          string `json:"Format_Commercial_IfAny,omitempty"`
	FormatSettingsEndianness       string `json:"Format_Settings_Endianness,omitempty"`
	FormatAdditionalFeatures       string `json:"Format_AdditionalFeatures,omitempty"`
	BitRateMode                    string `json:"BitRate_Mode,omitempty"`
	Channels                       string `json:"Channels,omitempty"`
	ChannelPositions               string `json:"ChannelPositions,omitempty"`
	ChannelLayout                  string `json:"ChannelLayout,omitempty"`
	SamplesPerFrame                string `json:"SamplesPerFrame,omitempty"`
	SamplingRate                   string `json:"SamplingRate,omitempty"`
	SamplingCount                  string `json:"SamplingCount,omitempty"`
	CompressionMode                string `json:"Compression_Mode,omitempty"`
	DelaySource                    string `json:"Delay_Source,omitempty"`
	StreamSizeProportion           string `json:"StreamSize_Proportion,omitempty"`
	Language                       string `json:"Language,omitempty"`
	ServiceKind                    string `json:"ServiceKind,omitempty"`
	ElementCount                   string `json:"ElementCount,omitempty"`
	Title                          string `json:"Title,omitempty"`
	Movie                          string `json:"Movie,omitempty"`
	FormatTier                     string `json:"Format_Tier,omitempty"`
	EncodedLibraryName             string `json:"Encoded_Library_Name,omitempty"`
	EncodedLibraryVersion          string `json:"Encoded_Library_Version,omitempty"`
	EncodedLibrarySettings         string `json:"Encoded_Library_Settings,omitempty"`
	Extra                          extra  `json:"extra,omitempty"`
	ColourDescriptionPresent       string `json:"colour_description_present,omitempty"`
	ColourDescriptionPresentSource string `json:"colour_description_present_Source,omitempty"`
	ColourRange                    string `json:"colour_range,omitempty"`
	ColourRangeSource              string `json:"colour_range_Source,omitempty"`
	ColourPrimaries                string `json:"colour_primaries,omitempty"`
	ColourPrimariesSource          string `json:"colour_primaries_Source,omitempty"`
	TransferCharacteristics        string `json:"transfer_characteristics,omitempty"`
	TransferCharacteristicsSource  string `json:"transfer_characteristics_Source,omitempty"`
	MatrixCoefficients             string `json:"matrix_coefficients,omitempty"`
	MatrixCoefficientsSource       string `json:"matrix_coefficients_Source,omitempty"`
	FormatSettingsSBR              string `json:"Format_Settings_SBR,omitempty"`
	BitRateNominal                 string `json:"BitRate_Nominal,omitempty"`
	FormatSettingsGOP              string `json:"Format_Settings_GOP,omitempty"`
	DisplayAspectRatioOriginal     string `json:"DisplayAspectRatio_Original,omitempty"`

	PixelAspectRatioOriginal string `json:"PixelAspectRatio_Original,omitempty"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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