decided on id3

This commit is contained in:
Lars Noack 2023-01-09 11:36:58 +01:00
parent ef299d534c
commit 6cbb90375a
2 changed files with 20 additions and 0 deletions

View File

@ -95,3 +95,15 @@ These destinctions are sorted from top to bottom.
[Wikipedia](https://en.wikipedia.org/wiki/Audio_codec) [Wikipedia](https://en.wikipedia.org/wiki/Audio_codec)
The audio codec is simply software/hardware, to convert audio from an [audio coding format](#audio-coding-format) to playable audio and vice versa. The audio codec is simply software/hardware, to convert audio from an [audio coding format](#audio-coding-format) to playable audio and vice versa.
# ID3
[ID3](https://en.wikipedia.org/wiki/ID3) is a metadata container format for audio. I am going for [ID3v2](https://en.wikipedia.org/wiki/ID3#ID3v2)
An Application can define its own types of frames.
There are standard frames for containing cover art, BPM, copyright and license, lyrics, and arbitrary text and URL data, as well as other things.
Version 2.4 of the specification prescribes that all text fields (the fields that start with a T, except for TXXX) can contain multiple values separated by a null character. The null character varies by [character encoding](https://en.wikipedia.org/wiki/Character_encoding).
[id3 fields docs](https://docs.puddletag.net/source/id3.html)

View File

@ -77,3 +77,11 @@ CREATE TABLE AlbumArtist
FOREIGN KEY(album_id) REFERENCES Album(id), FOREIGN KEY(album_id) REFERENCES Album(id),
FOREIGN KEY(artist_id) REFERENCES Artist(id) FOREIGN KEY(artist_id) REFERENCES Artist(id)
); );
CREATE TABLE id3
(
frame TEXT, -- 4 capital leters like TXXX
value TEXT,
song_id BIGINT,
FOREIGN KEY(song_id) REFERENCES Song(id)
);