Documentation
¶
Overview ¶
Package mp4 implements metadata found in ISO/IEC 14496-14:2003 (3GPP/ISO MP4) files.
Index ¶
- Variables
- func NewModel(name string) xmp.Model
- type MP4Info
- func (m *MP4Info) Can(nsName string) bool
- func (x *MP4Info) CanTag(tag string) bool
- func (x *MP4Info) GetTag(tag string) (string, error)
- func (x *MP4Info) ListTags() (xmp.TagList, error)
- func (m *MP4Info) Namespaces() xmp.NamespaceList
- func (x *MP4Info) SetTag(tag, value string) error
- func (x *MP4Info) SyncFromXMP(d *xmp.Document) error
- func (x *MP4Info) SyncModel(d *xmp.Document) error
- func (x MP4Info) SyncToXMP(d *xmp.Document) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NsMP4 = xmp.NewNamespace("mp4", "http://ns.apple.com/quicktime/mp4/1.0/", NewModel)
)
Functions ¶
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) Namespaces ¶
func (m *MP4Info) Namespaces() xmp.NamespaceList
Click to show internal directories.
Click to hide internal directories.