Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Jason Voegele
    Guest

    Using linux to generate a FLAC file of a complete CD

    On Sunday 20 March 2005 09:34 am, Andy Hawkins wrote:
    > The only bit I'm stuck with now is how to include tags for each track in
    > the FLAC file, such that the individual tracks can then be selected from
    > within SlimServer.


    http://lists.slimdevices.com/archive...st/009836.html

    That link has some information about how to tag the single FLAC files
    appropriately.

    --
    Jason Voegele

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (GNU/Linux)

    iD8DBQBCPY5cHe0AH0X+WAIRAi5vAKCXj1BcQ95NFvpo1Gb7wg VMq7GImwCbBM93
    Z95KMeWP3SKgqp4JvGhqT/c=
    =/OJM
    -----END PGP SIGNATURE-----

  2. #12
    Andy Hawkins
    Guest

    Using linux to generate a FLAC file of a complete CD

    Hi,

    In article <200503200953.16099.jason (AT) jvoegele (DOT) com>,
    Jason Voegele<jason (AT) jvoegele (DOT) com> wrote:
    > http://lists.slimdevices.com/archive...st/009836.html
    >
    > That link has some information about how to tag the single FLAC files=20
    > appropriately.


    Excellent, that explains a lot.

    I don't suppose anyone has already written some perl or whatever to
    transform .toc or .cue file into an appropriate format? If not, I'll knock
    something up myself and make it available if anyone is interested.

    Thanks to all for their help so far.

    Andy

  3. #13
    Jason Voegele
    Guest

    Using linux to generate a FLAC file of a complete CD

    On Sunday 20 March 2005 10:05 am, Andy Hawkins wrote:
    > I don't suppose anyone has already written some perl or whatever to
    > transform .toc or .cue file into an appropriate format? If not, I'll knock
    > something up myself and make it available if anyone is interested.


    I'm in the process of doing so in Ruby, but it is not quite ready for
    distribution.

    --
    Jason Voegele

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (GNU/Linux)

    iD8DBQBCPZSgHe0AH0X+WAIRAkkTAJ4yzT6mtI0javbze72bX9 mgIU1p7ACgnpJ6
    ioGAdfVD5xN2JxufOMAqA4Y=
    =cV3+
    -----END PGP SIGNATURE-----

  4. #14
    Andy Hawkins
    Guest

    Using linux to generate a FLAC file of a complete CD

    Hi,

    In article <200503201020.00332.jason (AT) jvoegele (DOT) com>,
    Jason Voegele<jason (AT) jvoegele (DOT) com> wrote:
    > I'm in the process of doing so in Ruby, but it is not quite ready for=20
    > distribution.


    Great, sounds good. I might do something myself just to prove I still can

    Out of interest, is there anything that will automatically take a single
    FLAC file (tagged and cued appropriately) and convert it into multiple MP3s
    (for my IPod)?

    Andy

  5. #15
    michael
    Guest

    Using linux to generate a FLAC file of a complete CD

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (GNU/Linux)

    iD4DBQBCPcxCJa41g0n42gMRAhCZAJ9QtwTxdYtHa25OgQeNh7 NKryMTXgCVHEYQ
    /qYwrYaYKkcWzdGBTtBtvA==
    =qU2j
    -----END PGP SIGNATURE-----

  6. #16
    michael
    Guest

    Using linux to generate a FLAC file of a complete CD

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (GNU/Linux)

    iD8DBQBCPc0aJa41g0n42gMRArY8AKCDkznJHzU1b6cMmlFe1p FGDR4KUQCdE4TC
    RvqATZ8v1HTiA3vGty2mdik=
    =EntR
    -----END PGP SIGNATURE-----

  7. #17
    Andy Hawkins
    Guest

    Using linux to generate a FLAC file of a complete CD

    Hi,

    In article <87wts23z5x.fsf (AT) wanderer (DOT) iconoclast.net>,
    michael<michael (AT) fallenangel (DOT) com> wrote:
    > Personally, I like the quality of musicbrainz data over that of cddb.
    > So I've taken the "getalbum" program from the musicbrainz sample code,
    > and tweaked the printf statements to produce the format We're looking
    > for. It's not a perfect solution, but it works well enough that I
    > rarely have to further edit the output. I can send you a diff if you
    > like.
    > I'm working on a more elegant solution, but it's far from ready for
    > use.


    Any chance you could send me the whole source of the program you're using?
    I've had generally good results through CDDB so far to be honest, but it
    would be useful to be able to increase the automation of the process.

    andy (AT) gently (DOT) org.uk

    Thanks

    Andy

  8. #18
    michael
    Guest

    Using linux to generate a FLAC file of a complete CD

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (GNU/Linux)

    iD8DBQBCPmNSJa41g0n42gMRAv4XAJ9DCuKnB/OHRBUm4lhUtnTgKMSY6ACgtSg/
    0BYO6HJyfoNuTK5fKgWG8w0=
    =uCDH
    -----END PGP SIGNATURE-----

  9. #19
    michael
    Guest

    Using linux to generate a FLAC file of a complete CD

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (GNU/Linux)

    iD8DBQBCPmNaJa41g0n42gMRAnyTAJ9QDPweiuv1uOYggp0anZ QwAkzOZACdHIZF
    E+HkX+X8EfV4KPFGjsFCd+4=
    =7wOg
    -----END PGP SIGNATURE-----

  10. #20
    Andy Hawkins
    Guest

    Using linux to generate a FLAC file of a complete CD

    Hi,

    In article <slrnd3r5iu.ifi.andy (AT) gently (DOT) org.uk>,
    Andy Hawkins<andy (AT) gently (DOT) org.uk> wrote:
    > Great, sounds good. I might do something myself just to prove I still can


    Ok, I've knocked up a shell script to do the ripping, and a PERL script to
    convert a toc file to a list of tags.

    The script is simple:

    #!/bin/sh

    rm -f album.*
    cdrdao read-cd --device ATAPI:0,0,0 --driver generic-mmc --with-cddb \
    --datafile album.bin album.toc
    cueconvert -f album.toc -f album.cue
    flac --endian=big --sign=signed --channels=2 --bps=16 --sample-rate=44100 \
    --cuesheet=album.cue album.bin
    cat album.toc | ./toc2tag.pl > album.tags
    metaflac --add-replay-gain --no-utf8-convert --import-tags-from=album.tags \
    album.flac
    ALBUM=`grep ALBUM album.tags | cut -d '=' -f 2`
    ARTIST=`grep ARTIST album.tags | cut -d '=' -f 2`
    mkdir -p "$ARTIST/$ALBUM"
    mv album.flac "$ARTIST/$ALBUM/$ALBUM.flac"
    rm -f album.*

    The perl script parses the toc file and creates a list of tags suitable for
    passing to metaflac:

    #!/usr/bin/perl -w

    $GotAlbum=0;
    $Tracknum=0;
    $IsVarious=0;
    $Artist="";

    while (<>)
    {
    if (/\/\/ Track (\d*)/)
    {
    $Tracknum=$1;
    print "TRACKNUMBER[$Tracknum]=$Tracknum\n";
    }

    if (/TITLE "(.*)"/)
    {
    if (!$GotAlbum)
    {
    $GotAlbum=1;
    $Album=$1;
    $Album=~ s/\// - /;
    print "ALBUM=$Album\n";
    }
    else
    {
    print "TITLE[$Tracknum]=$1\n";
    }
    }

    if (/PERFORMER "(.*)"/)
    {
    if ($Tracknum==0)
    {
    $Artist=$1;
    $Artist=~ s/\// - /;
    print "ARTIST=$Artist\n";
    }
    else
    {
    if ($1 ne $Artist)
    {
    print "ARTIST[$Tracknum]=$1\n";
    }
    }
    }
    }

    I've only run this on one album so far, and it appears to work

    It *might* have a problem with 'Various artists' type albums, but I'll try
    this as and when I need to rip one!

    Hope this might be useful to someone.

    Andy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •