Mailinglist Archive: opensuse (3336 mails)

< Previous Next >
Re: [SLE] RE: id3v2 help
  • From: Carl William Spitzer IV <cwsiv@xxxxxxxxxxxxx>
  • Date: Wed, 30 Nov 2005 19:50:36 -0800
  • Message-id: <1133409037.18927.10.camel@xxxxxxxxxx>
On Sat, 2005-11-26 at 13:53 -0800, Martin wrote:
> Hi experts,
>
> I'd like to ask for a bit of help with using id3v2. My mp3 files have names in form 'author_author__song_name.mp3' and don't have id3 tag at all. I'm trying to get author and song name to id3 tag from file name like this:
>
> ls *.mp3 | xargs -n1 -i basename \{\} .mp3 | xargs -n1 -i id3v2 -t `ls *.mp3 | basename \{\} .mp3 | awk -F__ '{print $1}'` -A Greatest_Hits_80s -g Pop {}.mp3
>
> This does not produce what I would expect and title is "author_author__song_name" instead of "author_author". When I try
>
> ls *.mp3 | xargs -n1 -i basename \{\} .mp3 | awk -F__ '{print $1}'
>
> or
> ls *.mp3 | xargs -n1 -i basename \{\} .mp3 | awk -F__ '{print $2}'
>
> I get author or song_name as expected. How can I combine the two and achieve what I want? Is there any other way to do this?
>
> Thx, Martin
>
>
First of all lame provides tag insertion

lame track_01.mp3 Track001.mp3 --tl "Sample" --ta "Fran Martin" --tn
"01" --ty "2005" --tg "Jazz" --tc "Converted by CWSIV using Suse Linux"
--tt "Everytime We Say Goodbye"

all on one like of course. So if your going to pull the names apart for
the information to insert you will have to use variables and feed them
to the relavant tag and then execute the "lame" line.

man lame

--
___ _ _ _ ____ _ _ _
| | | | [__ | | |
|___ |_|_| ___] | \/


< Previous Next >
This Thread
  • No further messages