Index | Files

package media

import ""

Package media provides means for querying information about audio and video data.


Package Files



const ID3v1TagLength = 128

ID3v1TagLength is the length of an MP3 ID3v1 tag in bytes.

func GetMPEGAudioDuration Uses

func GetMPEGAudioDuration(r readerutil.SizeReaderAt) (time.Duration, error)

GetMPEGAudioDuration reads the first frame in r and returns the audio length with millisecond precision. Format details are at

func HasID3v1Tag Uses

func HasID3v1Tag(r readerutil.SizeReaderAt) (bool, error)

HasID3V1Tag returns true if an ID3v1 tag is present at the end of r.

Package media imports 7 packages (graph) and is imported by 22 packages. Updated 2018-02-28. Refresh now. Tools for package owners.