mp4

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mp4 implements metadata found in ISO/IEC 14496-14:2003 (3GPP/ISO MP4) files.

Index

Constants

This section is empty.

Variables

View Source
var (
	NsMP4 = xmp.NewNamespace("mp4", "http://ns.apple.com/quicktime/mp4/1.0/", NewModel)
)

Functions

func NewModel

func NewModel(name string) xmp.Model

Types

type MP4Info

type MP4Info struct {
	AlbumAndTrack        string         `mp4:"albm" xmp:"mp4:AlbumAndTrack"`
	Author               string         `mp4:"auth" xmp:"mp4:Author"`
	Classification       string         `mp4:"clsf" xmp:"mp4:Classification"`
	CollectionName       string         `mp4:"coll" xmp:"mp4:CollectionName"`
	Copyright            string         `mp4:"cprt" xmp:"mp4:Copyright"`
	CreationDate         xmp.Date       `mp4:"date" xmp:"mp4:CreationDate"`
	Description          string         `mp4:"dscp" xmp:"mp4:Description"`
	GenreName            string         `mp4:"gnre" xmp:"mp4:GenreName"`
	KeywordList          xmp.StringList `mp4:"kywd" xmp:"mp4:KeywordList"`
	Location             *qt.Location   `mp4:"loci" xmp:"mp4:Location"`
	MediaRatingText      string         `mp4:"rtng" xmp:"mp4:MediaRatingText"`
	Performer            string         `mp4:"perf" xmp:"mp4:Performer"`
	RecordingYear        int            `mp4:"yrrc" xmp:"mp4:RecordingYear"`
	TaggedCharacteristic string         `mp4:"tagc" xmp:"mp4:TaggedCharacteristic"`
	Thumbnail            []byte         `mp4:"thmb" xmp:"mp4:Thumbnail"`
	Title                string         `mp4:"titl" xmp:"mp4:Title"`
	UserRating           int            `mp4:"urat" xmp:"mp4:UserRating"`
}

Note: all tags are single-language versions

func (*MP4Info) Can

func (m *MP4Info) Can(nsName string) bool

func (*MP4Info) CanTag

func (x *MP4Info) CanTag(tag string) bool

func (*MP4Info) GetTag

func (x *MP4Info) GetTag(tag string) (string, error)

func (*MP4Info) ListTags

func (x *MP4Info) ListTags() (xmp.TagList, error)

func (*MP4Info) Namespaces

func (m *MP4Info) Namespaces() xmp.NamespaceList

func (*MP4Info) SetTag

func (x *MP4Info) SetTag(tag, value string) error

func (*MP4Info) SyncFromXMP

func (x *MP4Info) SyncFromXMP(d *xmp.Document) error

func (*MP4Info) SyncModel

func (x *MP4Info) SyncModel(d *xmp.Document) error

func (MP4Info) SyncToXMP

func (x MP4Info) SyncToXMP(d *xmp.Document) error

Jump to

Keyboard shortcuts

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