Documentation ¶
Overview ¶
Package media provides means for querying information about audio and video data.
Index ¶
Constants ¶
View Source
const ID3v1TagLength = 128
ID3v1TagLength is the length of an MP3 ID3v1 tag in bytes.
Variables ¶
This section is empty.
Functions ¶
func GetMPEGAudioDuration ¶
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 http://www.codeproject.com/Articles/8295/MPEG-Audio-Frame-Header.
func HasID3v1Tag ¶
func HasID3v1Tag(r readerutil.SizeReaderAt) (bool, error)
HasID3V1Tag returns true if an ID3v1 tag is present at the end of r.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.