Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 08-18-2013, 07:15 PM   #1
valyria
Junior Member
valyria began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2013
Device: iPad
Kindle Previewer Won't Convert OPF file?

Hi,

I'm formatting my ebook using HTML. I started from Word, used Word2HTML.com to remove the redundant codes, then cleaned up and edited the HTML using a text editor. I've created a OPF and NCX file for the ebook. The last step is to use Kindle Previewer to convert OPF into MOBI, but when I tried to open OPF, it says it failed to compile the book. The strange thing is, I find it's a hit and miss because sometimes it works fine. It compiles the book, and I go back to tweak some formatting codes, only to have the Previewer refuse to compile the book again. But I've only changed the simple, formatting stuff (things like line breaks, nothing major).

Why does Kindle Previewer fail to compile the OPF file?
valyria is offline   Reply With Quote
Old 08-18-2013, 08:47 PM   #2
susan_cassidy
Wizard
susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.
 
Posts: 1,934
Karma: 1704270
Join Date: Jan 2009
Device: Kindle, iPad (not used much for reading)
You can't convert only an OPF file, it doesn't have all the relevant data. You still need the HTML.
susan_cassidy is offline   Reply With Quote
 
Advertisement
Old 08-19-2013, 02:31 AM   #3
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 2,045
Karma: 4836606
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by valyria View Post
Why does Kindle Previewer fail to compile the OPF file?
Most likely because the .opf file or one of the files referenced in it was invalid. I'd recommend creating an .ePub file with Sigil. This has several advantages over hand-crafting an ebook:

- Sigil will automatically generate the .ncx file and all other required files
- You can test the validity of your book with Sigil's internal validator and epubcheck.
- You can also automatically generate an HTML TOC from your NCX and add guide items for Start, TOC and Cover.

If your .epub file passes epubcheck it'll also compile without problems with Kindle Previewer. (Kindle Previewer will automatically unzip the epub file.)
Doitsu is offline   Reply With Quote
Old 08-19-2013, 05:17 AM   #4
valyria
Junior Member
valyria began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2013
Device: iPad
Quote:
Originally Posted by susan_cassidy View Post
You can't convert only an OPF file, it doesn't have all the relevant data. You still need the HTML.
Oh, I have the HTML and the NCX file ready to go. It's worked before where Kindle Previewer was able to convert my files into a single mobi file. My concern is that it seems very inconsistent. Sometimes it won't work, and sometimes it will.
valyria is offline   Reply With Quote
Old 08-19-2013, 05:33 AM   #5
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 2,045
Karma: 4836606
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by valyria View Post
Oh, I have the HTML and the NCX file ready to go.
In that case, one of the files is invalid or missing required information. Click the Compilation Details link to display the error messages. For more information see this post.
Doitsu is offline   Reply With Quote
Old 08-19-2013, 05:01 PM   #6
valyria
Junior Member
valyria began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2013
Device: iPad
This is the compilation details I get. Maybe you can help me figure it out, because it just says cover not found when the cover image is in the folder.


************************************************** ***********
Amazon kindlegen(Windows) V2.9 build 0523-9bd8a95
A command line e-book compiler
Copyright Amazon.com and its Affiliates 2013
************************************************** ***********

Info:I9026ption: (hidden) amazon creator tool or pipeline

Info:I9014ption: -verbose: Verbose output

Info(prcgen):I1047: Added metadata dc:Title "FSG"

Info(prcgen):I1047: Added metadata dcate "2013-08-18"

Info(prcgen):I1047: Added metadata dc:Creator "JM"

Info(prcgen):I1047: Added metadata dc:Publisher "TNFEG"

Info(prcgen):I1047: Added metadata dc:Subject "Business & Economics"

Info(prcgen):I1047: Added metadata dcescription "An example of just getting this opf thing to work"

Info(prcgen):I1002: Parsing files 0000001

Info(prcgen):I1003: Parsing file URL: TestFSG.html

Warning(prcgen):W14010: media file not found C:\Users\W\Dropbox\Texts\FSG KIndle\Test FSG\TestFSGcover.jpg

Info(prcgen):I1015: Building PRC file

Info(prcgen):I1006: Resolving hyperlinks

Info(prcgen):I1010: Writing hyperlinks

Info(prcgen):I1008: Resolving start reading location

Info(prcgen):I1049: Building table of content URL: C:\Users\W\Dropbox\Texts\FSG KIndle\Test FSG\TestFSG.ncx

Warning(prcgen):W14016: Cover not specified

Info(prcgen):I1013: Converting and merging image file "C:\Users\W\Dropbox\Texts\FSG KIndle\Test FSG\graphics\TestFSGcover.jpg"

Info(prcgen):I1013: Converting and merging image file "C:\Users\W\Dropbox\Texts\FSG KIndle\Test FSG\graphics\lever.jpg"

Info(prcgen):I1013: Converting and merging image file "C:\Users\W\Dropbox\Texts\FSG KIndle\Test FSG\graphics\studentchart.jpg"

Info(prcgen):I1013: Converting and merging image file "C:\Users\W\Dropbox\Texts\FSG KIndle\Test FSG\graphics\avalanche.jpg"

Info(prcgen):I1013: Converting and merging image file "C:\Users\W\Dropbox\Texts\FSG KIndle\Test FSG\graphics\extendtable.png"

Info(prcgen):I1013: Converting and merging image file "C:\Users\W\Dropbox\Texts\FSG KIndle\Test FSG\graphics\archery.jpg"

Info(prcgen):I1013: Converting and merging image file "C:\Users\W\Dropbox\Texts\FSG KIndle\Test FSG\graphics\checkmark.jpg"

Info(prcgen):I1014: Converting and merging media file "C:\Users\WEN-CH~1\AppData\Local\Temp\mbt7DD_8_13_C_38_10_267_13 38_1B70_A99AA.tmp"

Info(pagemap):I8000: No Page map found in the book

Info(prcgen/inflections):I1012: Compiling inflections

Info(prcgen):I1019: Building index into record 0000000 Index name: $NCX

Info(prcgen):I1026: Unicode index using utf-8 encoding

Info(prcgen):I1045: Computing UNICODE ranges used in the book

Info(prcgen):I1046: Found UNICODE range: Basic Latin [20..7E]

Info(prcgen):I1046: Found UNICODE range: Latin-1 Supplement [A0..FF]

Info(prcgen):I1046: Found UNICODE range: General Punctuation - Windows 1252 [2026..2026]

Info(prcgen):I1017: Building PRC file, record count: 0000012

Info(prcgen):I1018: Building PRC file record 0000000

Info(prcgen):I1018: Building PRC file record 0000001

Info(prcgen):I1018: Building PRC file record 0000002

Info(prcgen):I1018: Building PRC file record 0000003

Info(prcgen):I1018: Building PRC file record 0000004

Info(prcgen):I1018: Building PRC file record 0000005

Info(prcgen):I1018: Building PRC file record 0000006

Info(prcgen):I1018: Building PRC file record 0000007

Info(prcgen):I1018: Building PRC file record 0000008

Info(prcgen):I1018: Building PRC file record 0000009

Info(prcgen):I1018: Building PRC file record 0000010

Info(prcgen):I1018: Building PRC file record 0000011

Info(prcgen):I1044: Uncompressed record size: 0004096

Info(prcgen):I2001: Final stats - TEXT: 000024216 bytes 000000012 records

Info(prcgen):I2002: Final stats - PICTURES: 000000000 bytes 000000000 records

Info(prcgen):I2003: Final stats - INDEXES: 000000828 bytes 000000003 records

Info(prcgen):I2004: Final stats - TRAILING: 000000060 bytes 000000012 records

Info(prcgen):I2005: Final stats - FRAMES: 000000080 bytes 000000002 records

Info(prcgen):I2006: Final stats - OTHER: 001191715 bytes 000000012 records

Info(prcgen):I2007: Final stats - TOTAL: 001216899 bytes 000000029 records

Info(prcgen):I1039: Final stats - text compressed to (in % of original size): 51.96%

Info(prcgen):I1040: The document identifier is: "FSG"

Info(prcgen):I1041: The file format version is V6

Info(prcgen):I1031: Saving PRC file

Info(prcgen):I1033: PRC built with WARNINGS!

Info(prcgen):I1016: Building enhanced PRC file

Info(prcgen):I1007: Resolving mediaidlinks

Info(prcgen):I1011: Writing mediaidlinks

Info(prcgen):I1009: Resolving guide items

Info(prcgen):I1014: Converting and merging media file "C:\Users\W\Dropbox\Texts\FSG KIndle\Test FSG\graphics\TestFSGcover.jpg"

Info(prcgen):I1014: Converting and merging media file "C:\Users\W\Dropbox\Texts\FSG KIndle\Test FSG\graphics\lever.jpg"

Info(prcgen):I1019: Building index into record 0000000 Index name: $FRAG

Info(prcgen):I1019: Building index into record 0000003 Index name: $SKEL

Info(prcgen):I1019: Building index into record 0000005 Index name: $GUIDE

Info(prcgen):I1019: Building index into record 0000008 Index name: $NCX

Info(prcgen):I1029: The default lookup index is: "$FRAG"

Info(prcgen):I1017: Building PRC file, record count: 0000013

Info(prcgen):I1018: Building PRC file record 0000012

Info(prcgen):I2001: Final stats - TEXT: 000026700 bytes 000000013 records

Info(prcgen):I2003: Final stats - INDEXES: 000002436 bytes 000000011 records

Info(prcgen):I2004: Final stats - TRAILING: 000000064 bytes 000000013 records

Info(prcgen):I2006: Final stats - OTHER: 000008920 bytes 000000002 records

Info(prcgen):I2007: Final stats - TOTAL: 000038200 bytes 000000028 records

Info(prcgen):I1039: Final stats - text compressed to (in % of original size): 51.23%

Info(prcgen):I1041: The file format version is V8

Info(prcgen):I1032: PRC built successfully

Info(prcgen):I15000: Approximate Standard Mobi Deliverable file size : 0000406KB

Info(prcgen):I15001: Approximate KF8 Deliverable file size : 0000410KB

Error(prcgen):E23028: Final mobi building failed.

Info(prcgen):I1038: MOBI file could not be generated because of errors!
valyria is offline   Reply With Quote
Old 08-19-2013, 09:00 PM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,418
Karma: 43257592
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
That's the strangest failure I've ever seen. It successfully built both the V6 and KF8 portions of the ebook and then promptly bombs when trying to combine them apparently.

I would first suggest not building from within your Dropbox folder -- or at least temporarily suspend Dropbox's syncing while you compile.
DiapDealer is online now   Reply With Quote
Old 08-20-2013, 06:20 AM   #8
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,589
Karma: 14407087
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by DiapDealer View Post
That's the strangest failure I've ever seen. It successfully built both the V6 and KF8 portions of the ebook and then promptly bombs when trying to combine them apparently.

I would first suggest not building from within your Dropbox folder -- or at least temporarily suspend Dropbox's syncing while you compile.
Well....this is in passing, at a glance, but I suspect it might be the tmp file that got included in the build. Now...I could be completely blowing smoke, but I don't think that .tmp is a valid media file type, and I think that could be corrupting the build.

That's seriously "FWIW," which is less than $.02, because I just glanced and typed. Naught more.

ETA: We build out of dropboxes all the time, without trouble, but something in your directory structure seems odd to me, so you should look into that as well. FWIW, as stated.

Hitch

Last edited by Hitch; 08-20-2013 at 06:21 AM. Reason: ETA; about the Dropbox
Hitch is offline   Reply With Quote
Old 08-20-2013, 09:34 AM   #9
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,418
Karma: 43257592
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Hitch View Post
Well....this is in passing, at a glance, but I suspect it might be the tmp file that got included in the build. Now...I could be completely blowing smoke, but I don't think that .tmp is a valid media file type, and I think that could be corrupting the build.
Admittedly, I've never built a Kindlebook with a "media" file, so I don't know what that looks like in a successful build. Perhaps the tmp file (and path) is a normal part of the build process? It does seem odd that THAT file is the only one found at a different location than the rest of the resources.

Quote:
ETA: We build out of dropboxes all the time, without trouble, but something in your directory structure seems odd to me, so you should look into that as well. FWIW, as stated.

Hitch
The Dropbox thing was just a WAG on my part.
DiapDealer is online now   Reply With Quote
Old 08-20-2013, 01:39 PM   #10
GMcG
Writer
GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.
 
GMcG's Avatar
 
Posts: 95
Karma: 556222
Join Date: Mar 2011
Location: Munich, Germany
Device: none
Could it be the missing cover in the first version?
Warning(prcgen):W14010: media file not found C:\Users\W\Dropbox\Texts\FSG KIndle\Test FSG\TestFSGcover.jpg
Warning(prcgen):W14016: Cover not specified
Info(prcgen):I2002: Final stats - PICTURES: 000000000 bytes 000000000 records

And then you have:
Info(prcgen):I1013: Converting and merging image file "C:\Users\W\Dropbox\Texts\FSG KIndle\Test FSG\graphics\TestFSGcover.jpg"

This is a different path, including the folder \graphics\.

So in version V6 the result is without cover, in version V8 it is with cover.
Info(prcgen):I1033: PRC built with WARNINGS!
Info(prcgen):I1032: PRC built successfully

I think the merging of both formats causes the trouble. The results don't fit together and the combination of them fails.

Error(prcgen):E23028: Final mobi building failed.
Info(prcgen):I1038: MOBI file could not be generated because of errors!

George
GMcG is offline   Reply With Quote
Old 08-20-2013, 02:29 PM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,418
Karma: 43257592
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
The different paths to the same cover image do seem a little strange ("\Texts\Test FSG\graphics\TestFSGcover.jpg" as opposed to "\Texts\Test FSG\TestFSGcover.jpg" in the warning). I realize you've probably edited some personal info out of the log, but is that otherwise the "straight-up" representation of the compile details? Or have you stitched together bits and pieces from multiple attempts?
DiapDealer is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with creating MOBI from HTML, OPF & NCX using Kindle Previewer Grzanka Kindle Formats 16 08-05-2012 02:36 AM
Problem with using Kindle Previewer 2.4 to convert epub files emslondon Kindle Formats 4 04-26-2012 06:31 PM
TWO OPF files or something like Media Queries in the OPF file for KF8 and MOBI? DHahn Kindle Formats 3 04-17-2012 05:06 AM
OPF file OPS/package.opf is missing Run2Eat ePub 2 05-31-2011 07:52 PM
ebook-convert won't work in a batch file since 0.6.17 mbovenka Calibre 20 01-13-2011 08:03 PM


All times are GMT -4. The time now is 10:49 PM.


MobileRead.com is a privately owned, operated and funded community.