ID3 tagging
Bug #1179377 reported by
Björn Torkelsson
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Audio Recorder |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
At least when recording to mp3 it would be nice if Audio Recorder also adds ID3-tags to the files, from the information it has available.
To post a comment you must log in.
Hello,
Here is an easy solution to this question.
We could use the "id3tool". It is a command line program with many options to edit audio tags.
$ sudo apt-get install id3tool
$ id3tool --help
id3tool [<options>] <filename> word=WORD Sets the genre to WORD
-t, --set-title=WORD Sets the title to WORD
-a, --set-album=WORD Sets the album to WORD
-r, --set-artist=WORD Sets the artist to WORD
-y, --set-year=YEAR Sets the year to YEAR [4 digits]
-n, --set-note=WORD Sets the note to WORD
-g, --set-genre=INT Sets the genre code to INT
-G, --set-genre-
-c, --set-track=INT Sets the track number to INT
-l, --genre-list Shows the Genre's and their codes
-v, --version Displays the version
-h, --help Displays this message
The src/utility.c module has couple of functions that can spawn (run) the id3tool command with arguments, like async(gchar **argv, GError **error); command( gchar *cmd, gchar *args);
GPid exec_command_
and
gboolean run_simple_
gchar *find_command_ path(gchar *command);
This function can be used to find the "id3tool" command itself. Audio-recorder would not reports errors if the "id3tool" isis missing. Thought, there should be a some kind of message of this in the [Settings] dialog.