ID3V1

MP3RootPackage.ID3V1 property

Gets or sets the ID3v1 metadata tag. Please find more information at http://id3.org/ID3v1.

public ID3V1Tag ID3V1 { get; set; }

Property Value

The ID3v1 metadata tag attached to the audio file.

Remarks

The ID3(v1) tag is a small chunk of extra data at the end of an MP3 file.

Examples

This code sample shows how to update the ID3v1 tag in an MP3 file.

using (Metadata metadata = new Metadata(Constants.MP3WithID3V1))
{
    var root = metadata.GetRootPackage<MP3RootPackage>();

    if (root.ID3V1 == null)
    {
        root.ID3V1 = new ID3V1Tag();
    }

    root.ID3V1.Album = "test album";
    root.ID3V1.Artist = "test artist";
    root.ID3V1.Title = "test title";
    root.ID3V1.Comment = "test comment";
    root.ID3V1.Year = "2019";

    // ...

    metadata.Save(Constants.OutputMp3);
}

See Also