media

package
v0.0.0-...-379680d Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2019 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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