PDA

View Full Version : Whole album FLAC files, multi-CD albums and tagging



Andy Hawkins
2005-04-16, 02:46
Hi,

For the first time, I have tried to rip a multi-album CD set as single FLAC
files per CD. I am a little confused as regards tagging the files.

Ideally, I would like it to appear as one album in the list of songs, but
with the track numbers of the second CD 'following on' from the track
numbers of the first CD. (e.g. if the first CD has 10 tracks, the first
track number in the FLAC file for the *second* CD will be number 11).

I tried a scheme such as:

For the first file:

ARTIST=artist
ALBUM=album
TRACKNUMBER[1]=1
TITLE[1]=Title 1
TRACKNUMBER[2]=2
TITLE[2]=Title 2

etc.

and for the second

ARTIST=artist
ALBUM=album
TRACKNUMBER[1]=11
TITLE[1]=Title 11
TRACKNUMBER[2]=12
TITLE[2]=Title 12

For the first file:

ARTIST=artist
ALBUM=album
TRACKNUMBER[1]=1
TITLE[1]=Title 1
TRACKNUMBER[2]=2
TITLE[2]=Title 2

etc.

and for the second

ARTIST=artist
ALBUM=album
TRACKNUMBER[1]=11
TITLE[1]=Title 11
TRACKNUMBER[2]=12
TITLE[2]=Title 12

However, this gave me two tracks with number 1, two track with number 2 etc.

I eventually settled on

For the first file:

ARTIST=artist
ALBUM=album
DISCNUMBER=1
TRACKNUMBER[1]=1
TITLE[1]=Title 1
TRACKNUMBER[2]=2
TITLE[2]=Title 2

etc.

and for the second

ARTIST=artist
ALBUM=album
DISCNUMBER=2
TRACKNUMBER[1]=1
TITLE[1]=Title 11
TRACKNUMBER[2]=2
TITLE[2]=Title 12

However, this lists the album twice in the list, one with 'Disc 1' and
another with 'Disc 2'.

Is there any way to achieve what I'm after?

Thanks all

Andy

michael
2005-04-16, 13:14

Andy Hawkins
2005-04-17, 06:09
Hi,

In article <87ekdabhs7.fsf (AT) wanderer (DOT) iconoclast.net>,
michael<michael (AT) fallenangel (DOT) com> wrote:
> I think you have it right with the DISCNUMBER approach, but what
> you're probably looking for is this...
> Server Setting -> Behaviour -> Group Discs
> and choose "Treat multi-disc sets as a single album".

Spot on, many thanks.

I've also gone back to specifying 'TRACKNUMER[1]=11' (etc.) for the second
CD. This then enables me to convert to MP3 and retain the track numbers.

I've knocked up a Perl script that can convert a directory tree containing
FLAC files (either individual tracks or whole CDs) into another directory
tree containing MP3s (suitable tagged) if anyone is interested?

Could probably do with some polishing, but basically appears to work for my
relatively small collection of FLACs.

Andy

michael
2005-04-18, 23:32

David Lutz
2005-04-19, 00:39
michael wrote:
>
> Please pass it along. Most of the conversion scripts posted so far
> have assumed one track per file. And the more the merrier anyway. :)
>

Since you asked, here's my version of flac-split as a python script.
This is truly a version 0.1, very raw and messy. I do use it to convert
my single-album flac files to single-track Ogg Vorbis files for me to
take to work. If anyone wants to polish it up and take it over it
certainly won't hurt my feelings.

D.L.

max.spicer
2005-04-19, 04:23
I practically wrote a bash script to do this but then ran into problems with characters such as '* etc in the filenames - I couldn't work out how to escape them safely. I would be very interested in both the perl script and the python script that has been mentioned here. No attachments have appeared in the online forums - am I missing something, or does vbulletin just strip them out. Either way, how do I go about getting them?

Andy Hawkins
2005-04-19, 04:42
Hi,

In article <max.spicer.1nqgro (AT) no-mx (DOT) forums.slimdevices.com>,
max.spicer<max.spicer.1nqgro (AT) no-mx (DOT) forums.slimdevices.com> wrote:
> I practically wrote a bash script to do this but then ran into problems
> with characters such as '* etc in the filenames - I couldn't work out
> how to escape them safely. I would be very interested in both the perl
> script and the python script that has been mentioned here. No
> attachments have appeared in the online forums - am I missing
> something, or does vbulletin just strip them out. Either way, how do I
> go about getting them?

I'll tidy up my perl script, and upload it to my web site. Probably some
time this week.

Andy

max.spicer
2005-04-19, 04:57
Thanks, I look forward to seeing it. I was going to have one last look at my bash script and then start again in Perl, so I'll hang on a bit.

Niek Jongerius
2005-04-19, 11:49
> I practically wrote a bash script to do this but then ran into problems
> with characters such as '* etc in the filenames - I couldn't work out
> how to escape them safely.

OT and FYI, you were probably looking for "set -f", which will stop
filename generation due to wildcard constructions *, ? and [.
Just add "set -f" in your script before dealing with the filenames (or
start the script with something like "#!/bin/bash -f" if your *nix
supports hashpling).

Niek.