Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I'm looking for a way to rip my CDs to Ogg complete with tags from CDDB from the command line. What I'm using right now is, for example:
cdparanoia 1 - | oggenc - -q 3 -o 01\ Ashes.ogg
I can do this for every track and then edit the tags in amaroK, but I'm sure there's a simpler way. I just have an older computer, so I'd prefer a command line utility as opposed to a GUI tool.
Was going to start a new thread, but my question is almost the same, so I'll continue this one
I just found a scipt called cd2ogg that will rip a CD directly to ogg.
I'm running it through one now, and it's quite nice, though my box is a bit slow.
One thing I would like to do is rip an entire CD to a single file (mp3, ogg, etc), but I haven't found a way to do it yet. I figure this would mean no tags, but that's ok.
The crip site is not available for me (connection refused), so I can't check it out.
WRT lame, I have found some google references to an ogg mode in lame, but I doubt it's worth using.
One thing I would like to do is rip an entire CD to a single file (mp3, ogg, etc), but I haven't found a way to do it yet. I figure this would mean no tags, but that's ok.
cdparanoia can rip an entire cd to 1 file (I believe it will by default if you don't specify batch mode).
P.S. Thanks for the cd2ogg link, just what I needed.
From what I can tell, cdparanoia won't do any encoding on the fly. I figure there's a way to do it with pipes on the command line, but that's a bit beyond me.
Edit: just looked at the processes while ripping a CD:
cdparanoia -e -q -d /dev/cdrom -w 6 -
oggenc -Q --comment=comment=encoded by cd2ogg 2.4.18 -d 1996 -G rock -t Track -N 6 -l CDTitle -a Band -b 192 - -o file.ogg
[names removed to protect the innocent ]
According to the man pages, cdparanoia output is going to stdout and oggenc is reading from stdin. Given this, this script does indeed do a direct rip to ogg.
Can anyone confirm ?
Yeah, looks like it does, so you could just pipe those commands together to rip on the fly. If you don't specify any track numbers to cdparanoia, it will rip the entire cd.
Oops, sorry, my mistake, you need to specify the tracks to rip. I thought it defaulted to the entire cd if you didn't but apparently that is not the case. You can use "1-" to specify the whole cd, so a simple modification should suffice:
Yes
I've changed the
-b 192 to
-q 7
because I've been reading that ogg vorbis is inheritly vbr and specifying a bit rate is a bit pointless.
Specifying a quality setting means that the incoming bit rate is irrelevant.
Obviously this thread is way out of date, but in case anybody else like me Google-stumbles upon it:
I think a script called abcde (an acronym for A Better CD Encoder) might be the best solution for the problem. From apt-cache show:
Quote:
A frontend program to cdparanoia, wget, cd-discid, id3, and your favorite Ogg/Vorbis, MP3, FLAC, Ogg/Speex and/or MPP/MP+(Musepack) encoder (defaults to oggenc). Grabs an entire CD and converts each track to the specified formats and then comments or ID3-tags each file, with one command.
With abcde you can encode several formats with one single command, using a single CD read operation. It also allows you to read and encode while not on the internet, and later query a CDDB server to tag your files.
Works dynamite for me so far. (Although I don't think it will convert FLAC to Vorbis -- Caysho's script looks good for that.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.