Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 23 Oct 2014, 04:05
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
gpRip cd ripper
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Author Message
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Tue 29 May 2007, 04:14    Post subject:  gpRip cd ripper  

This little app I wrote is for ripping audio cd's onto your hard drive, much like RipperX or PBcdripper. However this one does a few things the others don't, and probably skips a few things they already handle. This is in a very ealry prototype stage but should be pretty easy for anyone to use.
Features:
    * Fetches album info from a cddb server and automatically inserts the Artist, Album, Title, and Genre information for all tracks.
    * Put's the output files into a subdirectory named for the album, inside another subdirectory named for the artist.
    * Automatically names all the tracks based on the above info.
    * Rips to wav and mp3, flac if flac is installed, or ogg if oggenc is installed (part of VorbisTools).
    * Unlike PBcdripper it pipes cdparanoia right into the encoder without outputting a wav first. Saves a bit of space and time.
    * Completely graphical with progress bars rather than terminal screens.


There is an included preferences tool which allows you to set up some basic options, but for the most part everything is kept extremely simple. My inspiration was SoundJuicer, clean as possible without a bunch of confusing options on the main window. But there is a little bit of a tradeoff probably when compared with PBcdripper, in terms of the total nuimber of options (PBcdripper can do a bit more, gpRip focuses on the basics). Also there are a few things which are unfinished like output to a single track, or extra meta comments in the files. I tested it pretty thoroughly before uploading though, with all four formats, and got flawless results each time.

To do the cddb lookups the program requires the cdstatus binary, which I'm putting up here with it. This is only 46K so very little impact.

I'll be out of pocket a lot starting a few days from now, taking the family on an extended camping trip. So if you have any questions or comments best to get them in soon.

Nathan
gprip-0.6.pet
Description 
pet

 Download 
Filename  gprip-0.6.pet 
Filesize  104.17 KB 
Downloaded  457 Time(s) 
cdstatus-20070518.pet
Description 
pet

 Download 
Filename  cdstatus-20070518.pet 
Filesize  19.33 KB 
Downloaded  410 Time(s) 

Last edited by Nathan F on Tue 26 Jun 2007, 17:42; edited 5 times in total
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Tue 29 May 2007, 08:34    Post subject:  

Looks good Nathan. I'll give it a try over the next couple of days.
Back to top
View user's profile Send private message 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Tue 29 May 2007, 12:25    Post subject:  

I found one bug in the script that does the actual rip, hadn't noticed it before because the disks I tested with were small (~less than ten songs). Anyway, if there were more than ten tracks then the names of track 10 and above were appended to the name of track 1. Line number 28 of the script "/usr/local/apps/Media/gpRip/ripcli" should be changed from:
Code:
 TRACKNAME="`cat $HOME/.config/tmp/trackinfo.txt | grep "Track${TRACK}" | cut -f 2 -d '='`"

to:
Code:
 TRACKNAME="`cat $HOME/.config/tmp/trackinfo.txt | grep "Track${TRACK}=" | cut -f 2 -d '='`"

I'll make version 0.2 available soon.

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Tue 29 May 2007, 23:58    Post subject:  

I found another issue, minor though it is. In order for this to function prope3rly you have to have a .cdstatus file in you home directory, which specifies "default_first_match=yes". The problem only comes up if there are multiple matches found in the cddb lookup, but this forces it to default to the first one (which is usually right anyway).

I wrote the helpfile this evening, and I'll upload version 0.2 tomorrow sometime.

Nathan
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 30 May 2007, 10:48    Post subject:  

I uploaded 0.2 to the top thread. This mainly fixes a couple bugs, but it adds a fully populated help page as well and also puts in a comment tag (of your choice), date (ogg and flac only) and has a new logo. The cdstatus package is updated as well to include a preferences file. You can also just create a .cdstatus file in your home directory (/root) that says
Code:
default_first_match=yes

It should hopefully be smooth sailing now.

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11120
Location: Arizona USA

PostPosted: Wed 30 May 2007, 11:57    Post subject:  

Looks interesting, Nathan. I'd use it to convert audio book CDs to mp3, to listen to on my mp3 player. I didn't see that the mp3 conversion can be set for 32 kb/s mono, which is what I use. Also, some audio book CDs have 99 tracks. I can't imagine why, but there it is. I haven't seen any with more than 99. Can your program handle that many?
Back to top
View user's profile Send private message 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 30 May 2007, 18:04    Post subject:  

Flash -

You can change the bitrate in the preferences dialog. Just open the program and then from the menubar at the top choose Options > Preferences. The quality settings are on the second tab. You will want to change the bitrate to 32 using the drop down box, and uncheck the "Stereo" button for mono output. I just noticed the program is not restarting like it is supposed to after running the preferences dialog, so you will have to either close it and restart or press the "Rescan" button so that the new settings will take effect.

Quote:
Also, some audio book CDs have 99 tracks. I can't imagine why, but there it is. I haven't seen any with more than 99. Can your program handle that many?

Theoretically that should be no problem, but that means you will have a very large window in order to handle 99 entryboxes for track titles. This is a situation I hadn't really anticipated. The most tracks I've seen on a CD before is 45, which would admittedly cause a bit of the same problem but only by about half. Let me stew on it for a while. Perhaps the gui could be rearranged a bit if you have more than, say 20 tracks. Problem is that could make the code a lot more complex.

At some point in the future if I can figure out how to pipe into ffmpeg from stdin I'm going to probably get rid of the oggenc dependency. The only problem I can see with that is then I also have to figure out how to tag the resulting files, or else just mention to the user that if they want tagged ogg files they will have to install VorbisTools to get oggenc.

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 30 May 2007, 22:19    Post subject:  

Version 0.3 uploaded. Changes:
* Fixed the annoying newline in the album name field.
* Fixed an error causing artist names to be truncated when more than one cddb record is found
* Implemented simple m3u playlist creation when ripping a cd

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Fri 01 Jun 2007, 17:28    Post subject:  

There was a bug causing typed in song titles to be ignored. While I was fixing that I enabled spaces in song titles, just in case somebody felt like doing so. New version (0.4) is now uploaded.

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
zigbert


Joined: 29 Mar 2006
Posts: 5753
Location: Valåmoen, Norway

PostPosted: Sun 03 Jun 2007, 07:48    Post subject:  

Nathan.
Tried GpRip today, and I have to say:
I have never ripped this easy!!!!!!

We have an idiom in Norway - "Much wants More". I am very pleased, but still want even more. So here my wish. It would been nice to set the format of output filenames. In GpRip the output format is like '1-Name_Of_Song.mp3', while I have to rename it to 'Name of artist - Name of song.mp3'.

Thank you!
Sigmund

Last edited by zigbert on Sun 03 Jun 2007, 12:51; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Sun 03 Jun 2007, 11:56    Post subject:  

I considered implementing that in the preferences, but kept it simple for the time being. It wouldn't take too much code to get it done but sorry to say my time is very limited for a while. I'll get it done sometime since it has been requested, but it will probably be quite a while before I can.

Thanks for the feedback,
Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Tue 19 Jun 2007, 10:49    Post subject:  

I uploaded 0.5, which has about three important changes. The progress bar which pops up while the tracks are ripping now says which track is being ripped, and a couple other things depending on the situation. I've also made it possible to change the format of the track names, via the preferences dialog, like Zigbert suggested. And I added something that should have been there the whole time - a Cancel button to stop the rip.

The messages in the progress bar are nice, althought it could still be better. I found that if the script feeding the bar (using gtkdialog3) echoes a line of text that text will appear in the bar itself, which is needless to say very useful to both the developer and end user. But I still think it needs more feedback.

The track title naming still isn't perfect, as I'm sure I probably left off a few combinations that some users might prefer. Let me know if you have any requests in this area and I will get them into the next release. Also, I want to have a preference for whether or not to have spaces in the filenames and paths, or to replace spaces with an underscore. But that, of course, will complicate things further and I make no guarantees about when it might appear.

I have a few other ideas as well but the above should be enough to keep me occupied for a while.

Nathan
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
jcoder24


Joined: 06 May 2005
Posts: 601
Location: Barbados

PostPosted: Tue 19 Jun 2007, 13:37    Post subject:  

Suggestion: A checkbox next to each track so you can decide which track(s) you want to rip.

Question: Is anything other than lame required for encoding mp3? Whenever I try ripping to mp3 gprip indicates that its ripping and finishes in seconds. When inspecting the output dir all I see is a m3u file.
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11120
Location: Arizona USA

PostPosted: Thu 21 Jun 2007, 10:38    Post subject:  

Nathan, maybe I should have mentioned this in my post above: the tracks on an audio book CD are not normally named, only numbered in sequence. Just to clarify: some audio books are composed of as many as 18 CDs, and each CD can have as many as 99 tracks (I haven't seen a CD with more tracks.)

A useful thing (for me) would be the ability to place the tracks of all the CDs from a book into one directory, with the tracks numbered in correct sequence. My mp3 player could then play all the tracks of the book without further instructions from me. I have a Windows-based program which combines tracks and numbers them, but haven't seen a way to do it in Linux.
Back to top
View user's profile Send private message 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Thu 21 Jun 2007, 12:46    Post subject:  

Quote:
Suggestion: A checkbox next to each track so you can decide which track(s) you want to rip.

That's already on my todo list, but it's a tad bit tricky as I'll have to assign variables to each checkbox and we don't know how many tracks there are going to be when I code it. But I do have a method worked out in my head for it.
Quote:
Question: Is anything other than lame required for encoding mp3? Whenever I try ripping to mp3 gprip indicates that its ripping and finishes in seconds. When inspecting the output dir all I see is a m3u file.

Do me a favor and run it in a terminal, just use "gprip" and let's see what is causing it. For mp3 the only thing that should be required is Lame, but something else could be throwing it off.
Quote:
A useful thing (for me) would be the ability to place the tracks of all the CDs from a book into one directory, with the tracks numbered in correct sequence. My mp3 player could then play all the tracks of the book without further instructions from me. I have a Windows-based program which combines tracks and numbers them, but haven't seen a way to do it in Linux.

That's a toughie, but I bet I could find a way given enough time. I think the easiest way would be to allow the user to set the track number manually. A little intervention required on the part of the user, but once ripped no problem at all really.

What I've been working on now is a refinement of the way the files are named. Rather than a combobox with a few format choices (Track-Artist-Title, etc.) I've changed the preferences to have a checkbox for each possible componenet of the filenames, ei one for Track, one for Artist, one for Album, and one for Title. There is also a checkbox to allow or disallow spaces in the filenames now. Untick "Allow spaces in filenames" and all spaces will be converted to underscores. Tick it and the filenames now appear sort of like this:
1 - the artist - the album - the song.ogg
As opposed to this:
1_-_the_artist_-_the_album_-_the_song.ogg
Also affects the directory names similarly.

I'll be working on it from time to time and try to get at least one or two good refinements out maybe every other week. I'm just swamped so any more than that probably won't be possible.

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Display posts from previous:   Sort by:   
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1096s ][ Queries: 13 (0.0171s) ][ GZIP on ]