camlistore.org: camlistore.org/pkg/media Index | Files

package media

import "camlistore.org/pkg/media"

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

Index

Package Files

audio.go

Constants

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 http://www.codeproject.com/Articles/8295/MPEG-Audio-Frame-Header.

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.