Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoInfoFound is the error returned when the metadata format cannot be identified. ErrNoInfoFound = tag.ErrNoTagsFound )
Functions ¶
func CheckSystems ¶
CheckSystems checks that ffmpeg is installed
func ConvertMusicFile ¶
ConvertMusicFile converts src to out file with bitrate
func ConvertPictureAlbum ¶
Types ¶
type Music ¶
type Music struct { FileType string // "", MP3, M4A, M4B, M4P, ALAC, FLAC, OGG Format string // "", ID3v1, ID3v2.2, ID3v2.3, ID3v2.4, MP4, VORBIS Title string // Title of the track Album string // Album name of the track Artist string // Artist name of the track Year int // Year of the track Genre string // Genre of the track Track int // Track number TotalTrack int // Total tracks Disc int // Disc number Lyrics string // Lyrics Picture *tag.Picture // Attached picture }
Music is information from music file tags
func GetFileInfo ¶
func GetFileInfo(f io.ReadSeeker) (*Music, error)
GetFileInfo returns information about music file
Click to show internal directories.
Click to hide internal directories.