tag:blogger.com,1999:blog-9007601562606157016.post2896390053562487597..comments2023-05-11T16:21:37.725+01:00Comments on <Stuff about="code" />: Raspberry Pi - Auto CD RipperMartin O'Hanlonhttp://www.blogger.com/profile/03047799173301971515noreply@blogger.comBlogger38125tag:blogger.com,1999:blog-9007601562606157016.post-58780688154776077182017-04-26T18:32:14.039+01:002017-04-26T18:32:14.039+01:00Awesome, just change:
ripit = subprocess.Popen(&q...Awesome, just change:<br /><br />ripit = subprocess.Popen("ripit --outputdir " + self.outputPath + " --dirtemplate=" + RIPITDIRTEMPLATE + " --nointeraction", shell=True)<br /><br />and you should be good :)Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-67561586032530617442017-04-26T10:08:22.865+01:002017-04-26T10:08:22.865+01:00I discovered in the ripit manual that '--playl...I discovered in the ripit manual that '--playlist 2' gives filenames without full path. I also need to use '--chars NTFS' because I save on NTFS drive.MOBiL4uhttps://www.blogger.com/profile/15782267250515213604noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-55017460789943927812017-04-24T09:07:54.550+01:002017-04-24T09:07:54.550+01:00That will be a feature of ripit rather than the Au...That will be a feature of ripit rather than the AutoRipper program so Im not sure what I can do about that.Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-12210838138976521492017-04-22T15:51:20.466+01:002017-04-22T15:51:20.466+01:00The playlists that are created (m3u) contain absol...The playlists that are created (m3u) contain absolute paths. This is a disadvantage since you can't move the folders without the playlists stop working.MOBiL4uhttps://www.blogger.com/profile/15782267250515213604noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-3139468066519367732017-04-22T03:23:06.516+01:002017-04-22T03:23:06.516+01:00I got an error because my CD-player doesn't ha...I got an error because my CD-player doesn't have a tray -- only a slit. It can eject, but it can't close the tray.<br />AutoRipper - rip complete, ejecting<br />AutoRipper - Waiting for disk<br />AutoRipper - timed out waiting for a disk, quitting<br />eject: CD-ROM tray close command failed: Input/output errorMOBiL4uhttps://www.blogger.com/profile/15782267250515213604noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-10066195873752811992017-04-22T01:15:40.411+01:002017-04-22T01:15:40.411+01:00It seems to work well, but I get a dialog box '...It seems to work well, but I get a dialog box 'Removable medium is inserted' each time I insert a CD. I have to press Cancel each time to make it go away. As OS I use most dist-updated Raspbian Jessie (PIXEL).MOBiL4uhttps://www.blogger.com/profile/15782267250515213604noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-27331016876589409242017-01-10T17:35:00.485+00:002017-01-10T17:35:00.485+00:00Thank you Martin for a fine tutorial, and everyone...Thank you Martin for a fine tutorial, and everyone for their comments and suggestions. I have this encoding FLAC on a Pi 3. Lots of fun.Anonymoushttps://www.blogger.com/profile/03916485607033915899noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-59259468721439198842016-12-03T07:26:12.980+00:002016-12-03T07:26:12.980+00:00I have no idea what would happen if there are 2 un...I have no idea what would happen if there are 2 unknown CDs. In the time I used this to rip 400 CDs I never came across 1 it didn't know. Gut feel say ripit would create a unknown.1 or similar. Perhaps try it.Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-72759397574467690342016-12-02T15:31:56.473+00:002016-12-02T15:31:56.473+00:00This script is amazing!
One problem though: When a...This script is amazing!<br />One problem though: When a CD is not found by freedb, the tracks are ripped as "Unknown artist" - "Unknwown album", etc.<br />When more than one unknown CD is ripped in a session, does the second one overwrite the first one?<br />Is there any way to get an interaction with freedb in such cases (e.g. a search)?Anonymoushttps://www.blogger.com/profile/09408405615488452061noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-73299890391677289892016-11-17T19:27:03.076+00:002016-11-17T19:27:03.076+00:00Ja Alex, du bist Deusch :)?Ja Alex, du bist Deusch :)?Joshi115https://www.blogger.com/profile/17698317234245466150noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-34374618561399096602016-10-15T09:37:25.626+01:002016-10-15T09:37:25.626+01:00This is what it does.This is what it does.Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-51710624445078662572016-10-13T16:35:32.939+01:002016-10-13T16:35:32.939+01:00is there a way to keep this running? if no disk i...is there a way to keep this running? if no disk in x amount of time, close the tray, but when the tray is manually opened and a disk inserted it detects the new disk and continues on? I don't want to have to ssh in to the pi to start ripping again. Would like to just drop in disk and when it's popped back out it's done :)Unknownhttps://www.blogger.com/profile/07782133019958414885noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-2719894642210533502016-02-07T16:52:09.170+00:002016-02-07T16:52:09.170+00:00Thank you!Thank you!Anonymoushttps://www.blogger.com/profile/16395946293563365717noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-39533563050558316872016-02-07T15:58:05.276+00:002016-02-07T15:58:05.276+00:00If you have more than 1 drive I see no reason why ...If you have more than 1 drive I see no reason why not, but you will have to make a small change to the program to pass the right cd drive number to the program, because as you have seen I coded it to just pick the first cd drive it found and raise an error if there was more than one.Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-67179450482129537992016-02-06T17:25:50.443+00:002016-02-06T17:25:50.443+00:00Hey Martin, excellent code! I'm new to program...Hey Martin, excellent code! I'm new to programming and I wanted to know how it would be possible to rip multiple disks at the same time. I noticed the lines<br /><br /> elif pygame.cdrom.get_count() > 1:<br /> print "AutoRipper - More than 1 drive found - this isnt supported - sorry!"<br /><br />which made me wonder why that is. where is the limitation? <br /><br />Thanks!Anonymoushttps://www.blogger.com/profile/16395946293563365717noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-60666672529419202822015-12-21T20:00:23.330+00:002015-12-21T20:00:23.330+00:00Doh, thanks for the reply Martin
Doh, thanks for the reply Martin<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-61406024641676560162015-12-19T12:09:31.585+00:002015-12-19T12:09:31.585+00:00If you follow the instructions in the post above t...If you follow the instructions in the post above the AutoRipper program will be installed at:<br /><br />/home/pi/AutoRipper/autoRipper.pyMartin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-21060664671079137462015-12-18T12:07:20.410+00:002015-12-18T12:07:20.410+00:00This is a really nice project which I am incorpora...This is a really nice project which I am incorporating into the volumio build. I am by no means a programmer but would like to ask where the autoripper.py program files is installed so I can add a menu command to the Volumio interfaceAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-29767331424994295772015-10-12T20:19:17.844+01:002015-10-12T20:19:17.844+01:00Absolutely no idea. Perhaps have a look at the rip...Absolutely no idea. Perhaps have a look at the ripit documentation and see if it gives any clues. use man ripitMartin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-37940997499166903832015-10-12T20:14:17.046+01:002015-10-12T20:14:17.046+01:00I was mistaken(its the ripping progress not encodi...I was mistaken(its the ripping progress not encoding).<br /><br />When it rips the song, it displays a > that goes across the screen to show progress. Sometimes in there, I see "+" or a "V". Example: | +++ v + + > |<br /><br />Does that represent issues reading the disc?<br /><br /><br />Anonymoushttps://www.blogger.com/profile/05957359444801667244noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-67635676665200771012015-10-12T13:05:46.036+01:002015-10-12T13:05:46.036+01:00What ++ in what encode bar?What ++ in what encode bar?Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-7547771086386959462015-10-11T23:11:31.538+01:002015-10-11T23:11:31.538+01:00What does the ++ mean in the encode bar?What does the ++ mean in the encode bar?Anonymoushttps://www.blogger.com/profile/05957359444801667244noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-39689409563818870052015-06-26T11:00:48.770+01:002015-06-26T11:00:48.770+01:00The ripit readme (http://suwald.com/ripit/README) ...The ripit readme (http://suwald.com/ripit/README) suggests you can set a different encoder using the --coder option, with 2 being flac. So just --coder 2 to the following line of code, presuming flac is installed and ready to go!<br /><br /><br />addripit = subprocess.Popen("ripit --coder 2 --outputdir " + self.outputPath + " --dirtemplate=" + RIPITDIRTEMPLATE + " --nointeraction", shell=True)Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-40019322663060044542015-06-26T00:08:42.085+01:002015-06-26T00:08:42.085+01:00Awesome project! Finally getting around to ripping...Awesome project! Finally getting around to ripping my girlfriend's music collection. I always just seemed like a hassle before this :D my only question is, how do I tell your script to rip to FLAC format, as I know it's an option in ripit. Is there a parameter I can feed your script to prefer FLAC over MP3? And it will still do the lookups and try to et metadata etc?Anonymoushttps://www.blogger.com/profile/16118509859447317307noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-47305942904346714592015-02-07T21:18:54.281+00:002015-02-07T21:18:54.281+00:00Thanks :) everything is working (after some trying...Thanks :) everything is working (after some trying around)Anonymoushttps://www.blogger.com/profile/13533656415120023948noreply@blogger.com