I am looking for a way to clear the genre tag of all my music files (approx. 20.000 files).
I have done my share of Googling etc., but somehow cannot find the right way to do it.
Relevant info:
- Formats: mostly mp3, ogg, flac
- Platform: Linux (Debian/Xubuntu)
- I am looking for a batch / scripted solution
- I would like to preserve the timestamp of the files
- The genre can remain empty after cleaning
I use Kid3-qt and Easytag for regular tagging and Kid3 has CLI support, but I cannot get it working for this purpose.
Any suggestions and/or example scripts?
Results 1 to 9 of 9
-
2017-04-18, 07:09 #1
- Join Date
- Oct 2013
- Posts
- 57
Batch clear genre tag and preserve timestamp
Living Room: HifiBerry DAC+ Pro & piCorePlayer
Attic: HifiBerry DAC+ RCA & piCorePlayer
Kitchen: SB Radio
Other rooms: 4x SB Radio
-
2017-04-18, 13:03 #2
- Join Date
- Sep 2005
- Posts
- 2,432
Hi,
i am using eyeD3 for my things and its exactly my piece of Honey.
Since i have a script that changes genres from x to y (but changes the timestamp just a little to support the rescan feature from lms) i think its no big deal. (scriptwise)
BUT you have a new "genre" called "No Genre" - do you really want to do that?
If [ $answer= yes ]
eyeD3 Download and check this line
Code:find ./ -iname *.mp3 -exec echo eyeD3 --preserve-file-times --genre "" {} \;
If you have a backup - feel free to remove the echo in front of eyeD3 --preserve-file-times --genre ""
-
2017-04-18, 13:51 #3
- Join Date
- Oct 2013
- Posts
- 57
Last edited by zordaz; 2017-04-18 at 13:53.
Living Room: HifiBerry DAC+ Pro & piCorePlayer
Attic: HifiBerry DAC+ RCA & piCorePlayer
Kitchen: SB Radio
Other rooms: 4x SB Radio
-
2017-04-18, 17:24 #4
For Windows, Mp3tag will easily do this, although it's not a batch/script, but is an interactive program. You can easily load your whole library (assuming it's in one folder tree) and run it on tens of thousands of files with only a few clicks. It will take a while to run through 20,000 files, but you won't need to do them individually.
There's an option to preserve file mod times. Be sure you have it enabled.
Tools > Options > Tags > Preserve file modification time when saving tags
I would _highly_ suggest running this on a few copies of files before running it on your entire library. You can use Mp3tag's actions, or use the tag panel (on the left) or use the extended tag dialog (View > Extended Tags) to remove the GENRE field.Last edited by JJZolx; 2017-04-18 at 17:26.
-
2017-04-18, 21:11 #5
PuddleTag on Linux similar to mp3tag ?
--------------------------------------------------------------------
Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3 sub.
Bedroom/Office: Boom
Kitchen: Touch + powered Fostex PM0.4
Misc use: Radio (with battery)
iPad1 with iPengHD & SqueezePad
(spares Touch, SB3, reciever ,controller )
server HP proliant micro server N36L with ClearOS Linux
http://people.xiph.org/~xiphmont/demo/neil-young.html
-
2017-04-18, 23:36 #6
- Join Date
- Oct 2013
- Posts
- 57
Last edited by zordaz; 2017-04-18 at 23:39.
Living Room: HifiBerry DAC+ Pro & piCorePlayer
Attic: HifiBerry DAC+ RCA & piCorePlayer
Kitchen: SB Radio
Other rooms: 4x SB Radio
-
2017-04-19, 02:39 #7
For CLI on Linux, you might want to look at beets. Scriptable and extendable (in python).
"To try to judge the real from the false will always be hard. In this fast-growing art of 'high fidelity' the quackery will bear a solid gilt edge that will fool many people" - Paul W Klipsch, 1953
-
2017-04-19, 12:14 #8
- Join Date
- Apr 2017
- Posts
- 1
-
2017-04-21, 05:14 #9
- Join Date
- Oct 2013
- Posts
- 57