Page 1 of 9 123 ... LastLast
Results 1 to 10 of 83

Thread: [HOWTO] abcde

  1. #1
    Join Date
    Apr 2005
    Location
    Vienna - Austria
    Beans
    125
    Hello and welcome to my first HOWTO at ubuntuforums.org

    The reason why i wrote this HOWTO is, that i dont like all this stuff with many eyecandy. I know that there are loads of real nice CD Encoders based on GTK+ or stuff like that, but as you already know shell-based applications are faster and in my opinion they dont lose usability. So this tutorial is about encoding your music-cds with the nice gadget called abcde.

    abcde stands for a better cd encoder and is your comfortable front-end, so you dont have to deal with LAME (for example) directly.

    Ok let's start.

    At first, we have to install abcde. You can use Synaptic for that, or just apt-get it directly (thats what i like to do, because its faster )

    Code:
    sudo apt-get -y install abcde
    Note: the -y options only answers all questions with yes. if you dont want apt-get to do so, just remove the -y parameter.

    If you read the apt-get output you can see the dependencies installed

    Code:
    cd-discid (0.9-1)
    liboggflac3 (1.1.2-1ubuntu2)
    vorbis-tools(1.0.1-1.4)
    Optional:
    If you want to encode your CD's as mp3-files you have to install LAME too.

    Code:
    sudo apt-get -y install lame

    Configuration
    So now we have all the important stuff on our system. We now have to find the config file and copy it to our home-directory

    Code:
    find / -name abcde.conf 2> /dev/null
    Lets have a look at the find-output. There you can see, that the file is located in the /etc/ directory. so now lets copy it to our home directory...

    Code:
    cp /etc/abcde.conf ~/.abcde.conf
    ...and open it

    Code:
    gedit ~/.abcde.conf
    Lets have a look at the important sections. every option is well-commented and should be easy to understand. if you have specific questions about a section dont hesitiate to ask!
    By default, abcde uses the .ogg codec to encode your files. if you want to encode your files with the LAME-Encoder you have to uncomment this line

    Code:
    # Paths of programs to use
    LAME=lame
    #GOGO=gogo
    #BLADEENC=bladeenc
    #L3ENC=l3enc
    #XINGMP3ENC=xingmp3enc
    #MP3ENC=mp3enc
    #VORBIZE=vorbize
    #OGGENC=oggenc
    #FLAC=flac
    #SPEEXENC=speexenc
    #MPPENC=mppenc
    important is this parameter. you have to set it to your cd-drive

    Code:
    # CD device you want to read from
    #CDROM=/dev/cdrom
    CDROM=/dev/hdc
    in my case i have to change it to /dev/hdc. DONT use /media/cdrom, because audio-cds never get mounted

    if you want to encode your files to a fixed directory, and not to your current directory change this parameter for example

    Code:
    # If you'd like to make a default location that overrides the current
    # directory for putting mp3's, uncomment this.
    #OUTPUTDIR=`pwd`
    OUTPUTDIR=~/music/
    there are loads of other options, if you have a specific question just ask here.

    finish
    so now, if you want to encode a cd all you have to do is

    (1) put the music cd in your drive
    (2) open a terminal
    (3) type "abcde"

    and just wait for the output. abcde automatically searches for the names and if you want to change this, you can do so. otherwise press return twice and wait until the files are encoded

    i hope you liked this short tutorial and please post your questions underneath

    kind regards,
    daschl
    free speech and free beer

    When you create a new thread
    - post _all_ necessary logfiles

    - a good structure is essential

    - highlight important stuff

  2. #2
    Join Date
    Nov 2004
    Beans
    117

    Re: [HOWTO] abcde

    Nice How To, thanks

    I also thought i'd share my .abcde.conf

    Code:
    # no submitting of cddb info 
    NOSUBMIT=y  
    
    # rip to mp3 via lame
    MP3ENCODERSYNTAX='lame'
    
    # selection of cd reader
    CDROMREADERSYNTAX=cdparanoia 
    
    # zero ifront of tr.no. below 10
    PADTRACKS=y
    
    # lame encoder settings
    LAMEOPTS="--alt-preset standard"
    
    # Actions to do
    ACTIONS=cddb,read,encode,tag,move,clean
    
    # Output dir
    OUTPUTDIR='/home/ben/Music'
    
    # temp dir 
    WAVOUTPUTDIR='/tmp'
    
    # output type
    OUTPUTTYPE=mp3
    
    # naming 
    OUTPUTFORMAT='${ARTISTFILE}/${ALBUMFILE}/${TRACKNUM} - ${TRACKFILE}'
    
    # naming of multi artist albums (same)
    VAOUTPUTFORMAT='${ARTISTFILE}/${ARTISTFILE} - ${ALBUMFILE}/${ARTISTFILE} - ${TRACKNUM} - ${TRACKFILE}'
    
    # don't convert spaces to underscores
    mungefilename ()
    {
    echo "$@" | sed s,:,\ -,g | tr / _ | tr -d \"\?\[:cntrl:\]
    }
    Ben

  3. #3
    Join Date
    Aug 2005
    Location
    London, Canada
    Beans
    69

    Re: [HOWTO] abcde

    I've always been a huge abcde fan. It's biggest advantages are the shear number of options in .abcde.conf and that it's written in Bash (so it's a joke to tweak something to suit your personal needs.) I also like that it uses the cdparanoia executable, not just the library, so you get to see those ever so informative cdparanoia progress bars. I like to number the tracks on multidisc albums as 101, 102, ... , 201, 202... and abcde is that only ripper I've ever seen that supports this.

    It's certainly not pretty, but nothing does a better job of getting .cda to .flac, .ogg or .mp3.

  4. #4
    Join Date
    Apr 2005
    Beans
    17

    Re: [HOWTO] abcde

    Thank you for this How To. abcde works great. I was having problems getting Sound Juicer and Grip working so I had been going back to Windows to rip and encode with EAC. Now I am very happy to be ripping and encoding in Linux.

  5. #5
    Join Date
    Aug 2005
    Beans
    992

    Re: [HOWTO] abcde

    im getting this error:

    bill@ubuntu:~$ abcde
    /home/bill/.abcde.conf: line 129: MP3:: command not found
    abcde error: id3v2 is not in your path.
    I have lame installed:

    bill@ubuntu:~$ lame
    LAME version 3.96.1 (http://lame.sourceforge.net/)

    usage: lame [options] <infile> [outfile]

    <infile> and/or <outfile> can be "-", which means stdin/stdout.

    Try:
    "lame --help" for general usage information
    or:
    "lame --preset help" for information on suggested predefined settings
    or:
    "lame --longhelp"
    or "lame -?" for a complete options list

  6. #6
    Join Date
    Apr 2005
    Beans
    17

    Re: [HOWTO] abcde

    I had the Id3v2 error. You need to:
    Code:
    sudo apt-get install id3v2
    If you post the contents of your .abcde.conf file I will compare it to mine and see if I can spot the cause of the MP3 command not found error.

  7. #7
    Join Date
    Jul 2005
    Location
    Rotterdam, NL
    Beans
    443

    Re: [HOWTO] abcde

    Hey, I guess the above description is missing one big issue: don't you have to copy the .abcde.conf back to etc?

    Plus, I'd like to rip albums that contain non-english characters. Daschl, you should know how. For example: an Album By Die Ertsä Allgämeine Värunsicherung. abcde just turns it into Die Erst? Allg?meine V?runsicherung.

    How do I keep the Umlauts?

    Thanx

    G
    Last edited by GabrielWolff; April 1st, 2006 at 06:28 PM.
    The first thing we do, let's kill all the lawyers.
    Shakespeare, "Henry VI", Part IV

  8. #8
    Join Date
    Apr 2006
    Beans
    2

    Re: [HOWTO] abcde

    Ok, Time to throw this out to the world. I've scoured the web for ideas. I'm using Kubuntu 5.10 and abcde 2.2.6. When I try to run abcde as me, I get the following error: __________________________________________________ __________

    johnd@SlimServer:~$ abcde /home/johnd/.abcde.conf: line 185: /home/johnd/Music/: is a directory
    /home/johnd/.abcde.conf: line 189: /home/johnd/temp/: is a directory
    Grabbing entire CD - tracks: 01 02 03 04 05 06 07 08 09 10 11 12
    mkdir: cannot create directory `/abcde.aa0c970c': Permission denied
    abcde: Temp directory /abcde.aa0c970c could not be created. __________________________________________________ __________

    It works when I run it as root, since root has permission to create files/folders in /, so I know that everything seems to be working correctly. I've checked the permissions on abcde itself, and it looks fine. The Music directory is a symbolic link to /Music, which is the mount dir for a USB attached 300 gb drive. Its probably something goofy I'm missing. Here's my abcde.conf file with the comments removed for clarity: (hence the line 185 in the above message)
    __________________________________________________ _________ CDDBURL="http://freedb.freedb.org/~cddb/cddb.cgi"
    HELLOINFO="`whoami`@`hostname`"
    CDDBSUBMIT=freedb-submit@freedb.org
    NOCDDBQUERY=n
    FLACENCODERSYNTAX=default
    CDROMREADERSYNTAX=cdparanoia
    KEEPWAVS=n
    PADTRACKS=y
    INTERACTIVE=n
    ENCNICE=10
    READNICE=10
    DISTMP3NICE=10
    VORBIZE=vorbize
    FLAC=flac
    ID3=id3
    ID3V2=id3v2
    CDPARANOIA=cdparanoia
    CDDBTOOL=cddb-tool
    EJECT=eject
    MD5SUM=md5sum
    DISTMP3=distmp3
    VORBISCOMMENT=vorbiscomment
    NORMALIZE=normalize-audio
    CDSPEED=eject
    HTTPGET=wget
    HTTPGETOPTS="-q -O -"
    FLACOPTS=
    CDROM=/dev/cdrom
    OUTPUTDIR=`$HOME/Music/`
    WAVOUTPUTDIR=`$HOME/temp/`
    OUTPUTTYPE=flac
    OUTPUTFORMAT='${ARTISTFILE}/${ALBUMFILE}/${TRACKNUM}.${TRACKFILE}' VAOUTPUTFORMAT='${ARTISTFILE}/${ARTISTFILE}-${ALBUMFILE}/${ARTISTFILE}-${TRACKNUM}.${TRACKFILE}'
    mungefilename ()
    {
    echo "$@" | sed s,:,\ -,g | tr \ /\* __+ | tr -d \'\"\?\[:cntrl:\]
    }
    EJECTCD=y
    __________________________________________________ ________________

    Any suggestions are welcome.
    Thanks
    JD
    Last edited by jgdempsey; April 6th, 2006 at 09:26 PM.

  9. #9
    Join Date
    Jun 2005
    Location
    /world/OldEurope
    Beans
    184
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: [HOWTO] abcde

    I also have the problem with non-ASCII characters and abcde. That's sad, as this seems to be the only program which can rip and encode in several formats (for me vorbis and flac) at the same time.

  10. #10
    Join Date
    Feb 2005
    Beans
    130

    Re: [HOWTO] abcde

    Quote Originally Posted by jgdempsey
    johnd@SlimServer:~$ abcde /home/johnd/.abcde.conf: line 185: /home/johnd/Music/: is a directory
    /home/johnd/.abcde.conf: line 189: /home/johnd/temp/: is a directory
    Grabbing entire CD - tracks: 01 02 03 04 05 06 07 08 09 10 11 12
    mkdir: cannot create directory `/abcde.aa0c970c': Permission denied
    abcde: Temp directory /abcde.aa0c970c could not be created.
    ...
    OUTPUTDIR=`$HOME/Music/`
    WAVOUTPUTDIR=`$HOME/temp/`
    You've got the wrong kind of quotes there. You need the " type of quote. The kind of quote you have there is trying to save the result of executing the command $HOME/Music/ into the variable $OUTPUTDIR...which is why you are getting the error "that's a directory"...you can't execute directories.

Page 1 of 9 123 ... LastLast

Bookmarks

Posting Permissions

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