LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   renaming encoded cd tracks? (https://www.linuxquestions.org/questions/linux-newbie-8/renaming-encoded-cd-tracks-108067/)

King of Japan 10-24-2003 01:41 PM

renaming encoded cd tracks?
 
Ok, I know this is gonna sound dumb, but I know it should be an easy answer. I apologize for my ineptitude but here it goes:

So I rip and encode a cd using Grip. the tracks left are named: track_01.mp3 - track_x.mp3. My linux box is not connected to the internet.
The track listing nomenclature I want to use is:

Artist - Title - Track# - song title.mp3

The problem is that it's a pain to type in the Artist name and cd title for every track when they are the same.

Could some one tell me the command to just rename every file in the cd directory that would have

Artist - CdTitle - track_01.mp3

so I would only have to edit the file name to just add the song title.

So from this:

track_01.mp3 through track_12.mp3

to (in example)

Frank Zappa - Roxy and Elsewhere - track_01.mp3 through Frank Zappa - Roxy and Elsewhere - track_12.mp3

or better yet (if possible)

Frank Zappa - Roxy and Elsewhere - 01.mp3 through
Frank Zappa - Roxy and Elsewhere - 12.mp3

Then I would just have to put the name of the song in.

I know there is a setting in GRIP to do this as you rip and encode, but I already have quite a few cd's encoded this way.

I hope this makes sense to you. If not let me know and I'll try to explain it better

Thanks.

GT_Onizuka 10-24-2003 03:35 PM

i think i get what you are saying an i would recommend an app i use called EasyTAG its your basic ID3 tag editor but it can also edit filenames and such and i think there are ways to tag it from the filename and vice-versa. hope this helps ^_^

vasudevadas 10-24-2003 03:50 PM

If you're using grip, then here's how to do it. On the Config tab, the Rip sub-tab, Ripper sub-sub-tab (!), you should see a field marked "Rip file format". In it there'll probably be something like:

~/mp3/%A/%d/%n.wav

at least that's what it says in mine, anyway. What that means is, when ripping a track, create the wav file as %n.wav, in a directory called %d, which itself is in a directory called %A, which is in a directory called mp3 in your home directory (~ is unix shorthand for your home folder). The substitution variables are:

%A - artist name
%d - album (disk) name
%n - track name.

So, if you want the ripped track filenames of the form Artist - Disc - Track Name.mp3, simply change the contents of this field to read something like:

~/mp3/%A-%d-%n.wav

(When it encodes the wav into an mp3 then *.wav becomes *.mp3, if you get my meaning).

If you're connected to the internet, then grip will look up the disc, artist and track names for you, unless you instruct it not to do so. If you're on a standalone machine, you can edit the track names before ripping by using the disc editor (press the button with a pencil on it).

Hope that isn't too complicated an answer.

King of Japan 10-24-2003 04:28 PM

Thanks for the replies. However a couple of points.

Point 1: I do not have internet access on the linux machine so CDDB is not really an option at this time.

Point 2
I know now how to change the path when I rip and encode cds while using GRIP

Point 3
I didn't know how to use GRIP before, so I have several cd's that I have ripped and encoded and then placed into separate directories.

The problem is that a directory that contains the mp3's has all the tracks named as, track_01.mp3, track_02.mp3, and so on and so on.

The answer I think I am looking for is more along the lines of a mv command with whatever wildcard or argument I need to rename the files without typing the same artist and cd title over and over again for every track.

Here's an example

I want to rename every song on a cd like this:
Artist - CDTitle - track# - songtitle.mp3

I want to properly name all the songs on Frank Zappa's Roxy and Elsewhere. Currently the songs are called Track_01.mp3, Track_02.mp3 and so on.
So I use:

mv Track_01.mp3 Frank Zappa - Roxy and Elsewhere - 01 - Penguin in Bondage.mp3

mv Track_02.mp3 Frank Zappa - Roxy and Elsewhere - 02 - Pygmy Twylyte.mp3

(I know the issue with the spaces in the file name. I do the naming in the gui not at the command line)

The renaming of the files that way is all good and fine, however it's time consuming because I have to type in Frank Zappa and Roxy and Elsewhere for every single file.

So what I'd like is to be able to run a command that renames all the files in the directory from Track_01.mpg, Track_02.mp3, and so on to Frank Zappa - Roxy and Elsewhere - Track_01.mp3, Frank Zappa - Roxy and Elsewhere - Track_02.mp3, and so on and so. In this way all I would have to do is just to change the Track_xx.mp3 part of the file name to the song title. I wouldn't have to retype Frank Zappa - Roxy and Elsewhere everytime I edit the name. It would just save a lot of time.

What's done is done since the file names of many of the CDs are already named just Track_01.mp3 The Grip advice will only help with future CD's I rip and encode. CDDB will not really help me since linux box is a stand alone and not networked.

I think what I need is just a mv command of some time.

Sorry about the confusion

King of Japan 10-25-2003 10:36 AM

GT_Onizuka:

After a second look at the Easytag site that you recomended, I decided to try it. Well it does what I need it to do. It took awhile to figure it out, but after I did it was smoothe sailing.
Thanks alot man.

GT_Onizuka 10-25-2003 12:37 PM

no problem, glad everything worked out ^_^


All times are GMT -5. The time now is 07:43 PM.