LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-22-2011, 05:24 PM   #1
Dweeb2010
Member
 
Registered: May 2010
Posts: 33

Rep: Reputation: 1
ripping audio cds manually - cddb lookup


Hi.

I know there are countless programs, as well as scripts out there, that make the task of ripping an audio cd a breeze. However, I'm kind of a stickler to my ways and prefer to do everything manually.

Typically what I do is use cdparanoia to rip the tracks, and then use lame or oggenc to encode them to a compressed format. I am at a real loss on how or when to look up the cddb information (artist, track name, etc), which has left me with quite a few albums with no tags. This can be a real pain when trying to use the music with certain media players.

I prefer to keep it simple on my computer, using programs such as Audacious with minimal dependencies, but I really need to know how to look up cddb from the command line, and when.

At what point during the ripping process do I do this? I have been thinking of writing my own script (I know, re-inventing the wheel) but I'm not sure how looking up the cddb works or how it applies the metadata to the final files.

Any help is greatly appreciated! Thanks.
 
Old 09-25-2011, 01:41 AM   #2
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 91
I can't really help much but since nobody else has replied the best I can tell you is have a look at the source code of cd-discid, for which I provide the following URL:
http://wfeca.net/users/rbandmb/cd-discid.c
Or you can just download the attached file below. It's c source code, I had to append the ".txt" extension before LinuxQuestions would allow the upload (?).
Hope this helps. I had a look at it myself and did not have anything obvious jump out at me. But I might study it a bit more. Maybe we can come up with a command line that will at least dump cddb info.
Attached Files
File Type: txt cd-discid.c.txt (8.0 KB, 60 views)

Last edited by SharpyWarpy; 09-25-2011 at 01:45 AM. Reason: Additional information.
 
Old 09-25-2011, 02:29 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Maybe you can use cddb_query (which is in the libcddb package, at least on a Slackware system) to get the information you need. LAME (and presumably oggenc) can take arguments specifying the title, artist, etc., so obviously you'll have to do the looking up before you run it. There's no man page for cddb_query on my system, but just running the command with no arguments gives you the info you'd need to get going.
 
Old 10-02-2011, 06:34 PM   #4
Dweeb2010
Member
 
Registered: May 2010
Posts: 33

Original Poster
Rep: Reputation: 1
Thanks for the responses! And sorry about my slow response time. I'll take a look at the code as well as cddb_query a shot. I wasn't aware that lame and oggenc could take that information as arguments, so that helps me tremendously. Thank you!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ripping Audio CDs slows down the system seriously w1k0 Slackware 12 02-15-2009 12:03 PM
Ripping Audio CDs in k3b alkos333 Slackware 5 05-04-2007 11:40 AM
Audio CDs ripping nightrider Linux - Newbie 4 10-18-2006 08:34 PM
Grip, Ripping, Audio CDs, many questions fakie_flip Linux - Software 5 09-26-2006 10:10 AM
How to speed up ripping audio CDs. springshades Linux - Software 2 08-01-2005 01:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration