class Tags

Overview

Uses FFMPEG binary to add metadata to mp3 files

t = Tags.new("bohem rap.mp3")
t.add_album_art("a night at the opera album cover.jpg")
t.add_text_tag("title", "Bohemian Rhapsody")
t.save

Defined in:

interact/tagger.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(filename : String) #

initialize the class with an already created MP3


[View source]

Instance Method Detail

def add_album_art(image_location : String) : Nil #

Add album art to the mp3. Album art must be added BEFORE text tags are. Check the usage above to see a working example.


[View source]
def add_text_tag(key : String, value : String) : Nil #

Add a text tag to the mp3. If you want to see what text tags are supported, check out: https://wiki.multimedia.cx/index.php?title=FFmpeg_Metadata


[View source]
def save : Nil #

Run the necessary commands to attach album art to the mp3


[View source]