LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-24-2003, 01:41 PM   #1
King of Japan
Member
 
Registered: Jul 2003
Location: Lincoln Nebraska
Distribution: Redhat 9
Posts: 61

Rep: Reputation: 15
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.
 
Old 10-24-2003, 03:35 PM   #2
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Rep: Reputation: 30
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 ^_^
 
Old 10-24-2003, 03:50 PM   #3
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
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.

Last edited by vasudevadas; 10-24-2003 at 03:53 PM.
 
Old 10-24-2003, 04:28 PM   #4
King of Japan
Member
 
Registered: Jul 2003
Location: Lincoln Nebraska
Distribution: Redhat 9
Posts: 61

Original Poster
Rep: Reputation: 15
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
 
Old 10-25-2003, 10:36 AM   #5
King of Japan
Member
 
Registered: Jul 2003
Location: Lincoln Nebraska
Distribution: Redhat 9
Posts: 61

Original Poster
Rep: Reputation: 15
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.
 
Old 10-25-2003, 12:37 PM   #6
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Rep: Reputation: 30
no problem, glad everything worked out ^_^
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Totem and Xvid encoded AVIs... Titan_X Linux - Software 2 06-24-2005 11:27 PM
mplayer error with wmv (could be encoded) darkleaf Linux - Software 0 02-19-2005 09:43 AM
Decoding an encoded string The_Nerd Programming 2 12-28-2004 08:32 PM
wget...url-encoded filenames linen0ise Slackware 1 10-26-2003 08:22 AM
Macintosh binhex-encoded files twcinpa Linux - Software 5 08-01-2003 01:44 PM


All times are GMT -5. The time now is 06:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration