You are not logged in.

#1 2010-10-21 13:52:45

gtklocker
Member
Registered: 2009-09-01
Posts: 462

A decent cli, CD ripper?

I've been searching for a good cli cd ripper for long, but now I really need one.

I want it to be able to automatically download tags, to have nice output and to be configurable. ATM I use cdparanoid, which only extracts tracks to their native format (wma), butI want them to be encoded to flac, or ogg, (almost) automatically.

Any idea?

Offline

#2 2010-10-21 14:00:46

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: A decent cli, CD ripper?


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#3 2010-10-21 14:02:25

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: A decent cli, CD ripper?

abcde?
http://www.archlinux.org/packages/extra/any/abcde/

EDIT: I use it, but it's the only one I've used so couldn't claim it's the best.

Last edited by skanky (2010-10-21 14:07:47)


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#4 2010-10-21 14:05:15

Lars Stokholm
Member
From: Denmark
Registered: 2009-03-17
Posts: 223

Re: A decent cli, CD ripper?

Definately Abcde.

Offline

#5 2010-10-21 14:36:00

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: A decent cli, CD ripper?

I use rubyripper(-git). It has both GUI & CLI. It uses cdparanoia to rip the WAV off the CD, grabs tags from freedb if available, and encodes the WAVs to FLAC/ogg/mp3/anything you like.


This silver ladybug at line 28...

Offline

#6 2010-10-21 14:46:43

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: A decent cli, CD ripper?

I have made a custom script using cdrdao and flac for this. I post my script here in case it can be usefull (undocumented, but should be easy to understand reading the code, ask a question in case of doubt). This script also embed the TOC into the flac file.

#! /bin/bash
set -e
TEMPODIR="$HOME/.ripcd_$$"
CWD="$PWD"
OUTPUTFILE=""
KEEP=""
DEVICE=/dev/cdrom

while getopts ':o:d:k' name ; do 
    case "$name" in
        'o' )
            OUTPUTFILE="$OPTARG"
            ;;
        'd' )
            DEVICE="$OPTARG"
            ;;
        'k' )
            KEEP=1
            ;;
        ':' )
            echo "Option -$OPTARG require an argument" 2>&1
            exit 1
            ;;
        '?' )
            echo "Illegal option -$OPTARG" 2>&1
            exit 1
    esac
done

if [ -z "$OUTPUTFILE" ] ; then
    echo "Output file must be mentioned via the -o option"
    exit 1
fi

if [ -e "$OUTPUTFILE" ] || [ -L "$OUTPUTFILE" ] ; then
    echo "I will not overwrite $OUTPUTFILE"
    exit 1
fi

OUTPUTFILE="$(readlink -f "$OUTPUTFILE")"
rm -rf "$TEMPODIR"
mkdir "$TEMPODIR"
cd "$TEMPODIR"
cdrdao read-cd --device "$DEVICE" data.toc
toc2cue data.toc data.cue &> /dev/null
flac -o "$OUTPUTFILE" --cuesheet=data.cue --force-raw-format --endian=big --channels=2 --bps=16 --sample-rate=44100 --sign=signed data.bin
cd "$CWD"
if [ -z "$KEEP" ] ; then
    rm -rf "$TEMPODIR"
fi

Offline

Board footer

Powered by FluxBB