mp4

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Title       string    `box:"\xa9nam"`
	Artist      string    `box:"\xa9ART"`
	Album       string    `box:"\xa9alb"`
	Description string    `box:"desc"`
	Copyright   string    `box:"\xa9cpy"`
	Released    time.Time `box:"\xa9day"`
}

Metadata contains common metadata fields.

Jellyfin:

See: https://github.com/jellyfin/jellyfin/blob/1dd3792984416e5ff365cd259b270eab94c0cd5a/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs#L31 See: https://github.com/jellyfin/jellyfin/blob/bf00899f92881c987f019ad7d20f0cef42d4e3e7/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs#L1212

  • Name
  • Overview
  • Cast
  • Official rating
  • Genres
  • Studios

Kodi:

See: https://kodi.wiki/view/Video_file_tagging

  • Album
  • Artist
  • Writing Credits
  • Year
  • Genre
  • Plot
  • Plot Outline
  • Title
  • Track

Audiobookshelf:

See: https://www.audiobookshelf.org/docs#book-audio-metadata

  • Author
  • Title
  • Subtitle
  • Publisher
  • Published year
  • ...

func (Metadata) Bytes

func (m Metadata) Bytes() []byte

Bytes returns the MP4 byte representation of the metadata, to be put into a ilst box.

func (Metadata) Write

func (m Metadata) Write(f *os.File) error

Jump to

Keyboard shortcuts

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