Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Removing DRM protection from eBooks (http://stream-recorder.com/forum/forumdisplay.php?f=63)
-   -  

MobiDeDRM.py - remove DRM from Mobipocket ebooks (unDRM MOBI and PRC files)

(http://stream-recorder.com/forum/showthread.php?t=5429)

any ANONYMOUS forum user 01-27-2011 02:28 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks (unDRM MOBI and PRC files)


 
OK, this is what I did:
Downloaded MobiDeDrm.py
ran the command MobiDeDrm.py myfile.prc outfile.mobi '#XXXXXXX'
Response "Error: Invalid PID checksum"
So I re-read the instructions and downloaded MobiPocket reader, which would not accept my prc (it says it is corrupted but K4PC opened it fine)
Then I used the PID from MobiPocket Reader and it gave me the same error.

Any tips/ideas? Thanks for taking a moment to assist me

Stream Recorder 01-27-2011 02:36 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks (unDRM MOBI and PRC files)


 
Quote:

Originally Posted by any ANONYMOUS forum user (Post 24870)
ran the command MobiDeDrm.py myfile.prc outfile.mobi '#XXXXXXX'
Response "Error: Invalid PID checksum"

Error: Invalid PID checksum

any ANONYMOUS forum user 01-27-2011 11:20 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks (unDRM MOBI and PRC files)


 
Quote:

Originally Posted by Stream Recorder (Post 24872)

Still says the same thing

If I sent you the prc, do you think you could try to remove the DRM? Nothing I'm trying is working and it's making me upset...

Stream Recorder 02-17-2011 09:50 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks (unDRM MOBI and PRC files)


 
ebook DRM removal tools archive
Quote:

Originally Posted by README_KindleBooks.txt
KindleBooks (Originally called K4MobiDeDRM and Topaz_Tools)

This tools combines functionality of MobiDeDRM with that of K4PCDeDRM, K4MDeDRM, and K4DeDRM. Effectively, it provides one-stop shopping for all your Mobipocket, Kindle for iPhone/iPad/iPodTouch, Kindle for PC, and Kindle for Mac needs and should work for both Mobi and Topaz ebooks.

Preliminary Steps:

1. Make sure you have Python 2.X installed (32 bit) and properly set as part of your SYSTEM PATH environment variable (On Windows I recommend ActiveState's ActivePython. See their web pages for instructions on how to install and how to properly set your PATH). On Mac OSX 10.6 everything you need is already installed.


****
Please Note: If you a happy user of MobiDeDRM, K4DeDRM, K4PCDeDRM, or K4MUnswindle, please continue to use these programs as there is no additional capability provided by this tool over the others. In the long run, if you have problems with any of those tools, you might want to try this one as it will continue under development eventually replacing all of those tools.
****

Instructions:

1. double-click on KindleBooks.pyw

2. In the window that opens:
hit the first '...' button to locate your DRM Kindle-style ebook

3. Then hit the second '...' button to select an output directory for the unlocked file

4. If you have multiple Kindle.Info files and would like to use one specific one, please hit the third "...' button to select it. Note, if you only have one Kindle.Info file (like most users) this can and should be left blank.

5. Then add in any PIDs you need from KindleV1, Kindle for iPhone/iPad/iPodTouch, or other single PID devices to the provided box as a comma separated list of 10 digit PID numbers. If this is a Kindle for Mac or a Kindle for PC book then you can leave this box blank


6. If you have standalone Kindles, add in any 16 digit Serial Numbers as a comma separated list. If this is a Kindle for Mac or a Kindle for PC book then you can leave this box blank

7. hit the 'Start' button

After a short delay, you should see progress in the Conversion Log window indicating is the unlocking was a success or failure.



If your book was a normal Mobi style ebook:
If successful, you should see a "_nodrm" named version Mobi ebook.
If not please examine the Conversion Log window for any errors.



If your book was actually a Topaz book:

Please note that Topaz is most similar to a poor man's image only PDF in style. It has glyphs and x,y positions, ocrText used just for searching, that describe the image each page all encoded into a binary xml-like set of files.

If successful, you will have 3 zip archives created.

1. The first is BOOKNAME_nodrm.zip.
You can import this into calibre as is or unzip it and edit the book.html file you find inside. To create the book.html, Amazon's ocrText is combined with other information to recreate as closely as possible what the original book looked like. Unfortunately most bolding, italics is lost. Also, Amazon's ocrText can be absolutely horrible at times. Much work will be needed to clean up and correct Topaz books.

2. The second is BOOKNAME_SVG.zip
You can also import this into calibre or unzip it and open the indexsvg.xhtml file in any good Browser (Safari, Firefox, etc). This zip contains a set of svg images (one for each pages is created) and it shows the page exactly how it appeared. This zip can be used to create an image only pdf file via post conversion.

3. The third is BOOKNAME_XML.zip
This is a zip archive of the decrypted and translated xml-like descriptions of each page and can be archived/saved in case later code can do a better job converting these files. These are exactly what a Topaz books guts are. You should take a look at them in any text editor to see what they look like.

If the Topaz book conversion is not successful, a large _DEBUG.zip archive of all of the pieces is created and this can examined along with the Conversion Log window contents to determine the cause of the error and hopefully get it fixed in the next release.


any ANONYMOUS forum user 02-21-2011 01:01 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks (unDRM MOBI and PRC files)


 
Hi!

I've been trying to follow your instructions to remove the DRM from my Mobipocket books. I'm stuck at the begininng. I've tried using Calibre. It didn't help. I've been trying to start with the cmd prompt. (I have my PID) It says the file path is invalid. My file path is Documents\My eBooks. I've tried typing it in as Documents\My() eBooks, Documents\My eBooks, & Documents\(My eBooks). Obviously I'm not very savy with this but I can't figure out where I am going wrong. Please help!

Stream Recorder 02-21-2011 01:12 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks (unDRM MOBI and PRC files)


 
Quote:

Originally Posted by any ANONYMOUS forum user (Post 25512)
Hi!

I've been trying to follow your instructions to remove the DRM from my Mobipocket books. I'm stuck at the begininng. I've tried using Calibre. It didn't help. I've been trying to start with the cmd prompt. (I have my PID) It says the file path is invalid. My file path is Documents\My eBooks. I've tried typing it in as Documents\My() eBooks, Documents\My eBooks, & Documents\(My eBooks). Obviously I'm not very savy with this but I can't figure out where I am going wrong. Please help!

Read about Calibre DRM removal plug-ins at:
The simplest option for removing DRM: Calibre Plugins

Also read README_KindleBooks.txt quoted in my previous post.

slayda 02-21-2011 05:10 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks (unDRM MOBI and PRC files)


 
Quote:

Originally Posted by any ANONYMOUS forum user (Post 25512)
Hi!

I've been trying to follow your instructions to remove the DRM from my Mobipocket books. I'm stuck at the begininng. I've tried using Calibre. It didn't help. I've been trying to start with the cmd prompt. (I have my PID) It says the file path is invalid. My file path is Documents\My eBooks. I've tried typing it in as Documents\My() eBooks, Documents\My eBooks, & Documents\(My eBooks). Obviously I'm not very savy with this but I can't figure out where I am going wrong. Please help!

The command prompt doesn't like blanks in the name. try it as Documents\My?eBooks. The "?" allows a single wildcard character so command prompt won't care what that character is.

Also what Stream_Recorder says for using Calibre.


All times are GMT -6. The time now is 04:26 AM.