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

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 01-09-2012, 12:11 AM   #1
tuebl
Junior Member
tuebl began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2012
Device: server
CLI Convert EPUB -> Mobi

I noticed that zamzar (.com) uses calibre to convert epub into mobi so I am figuring that they are using some sort of CLI function to do it. I was wondering if there was some pre-existing code or better yet does Calibre already have the function to convert epubs to mobi from the command line?

I want to do it automatically from my website, so the GUI wont help me at all. Thanks!
tuebl is offline   Reply With Quote
Old 01-09-2012, 02:10 AM   #2
avantman42
Wizard
avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.
 
avantman42's Avatar
 
Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
Quote:
Originally Posted by tuebl View Post
I noticed that zamzar (.com) uses calibre to convert epub into mobi so I am figuring that they are using some sort of CLI function to do it. I was wondering if there was some pre-existing code or better yet does Calibre already have the function to convert epubs to mobi from the command line?

I want to do it automatically from my website, so the GUI wont help me at all. Thanks!
The functionality is included in a standard Calibre install. The command is ebook-convert

The relevant page of the manual is: http://manual.calibre-ebook.com/cli/ebook-convert.html

You can simply call it with the file to be converted, and the file name of the converted file, but there are lots of options documented in the manual.

eg:
Code:
ebook-convert epub-book.epub converted-book.mobi
Russ
avantman42 is offline   Reply With Quote
Advert
Old 01-09-2012, 03:26 AM   #3
tuebl
Junior Member
tuebl began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2012
Device: server
Man I even looked that up! I found all sorts of other CLI commands but not that one, I must be an idiot.

Thank you.
tuebl is offline   Reply With Quote
Old 01-09-2012, 04:00 AM   #4
tuebl
Junior Member
tuebl began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2012
Device: server
is it possible to only have the CLI backend though, since this is installed on a server, it wants to add xorg and stuff and that's all pointless to me
tuebl is offline   Reply With Quote
Old 01-09-2012, 04:59 AM   #5
avantman42
Wizard
avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.
 
avantman42's Avatar
 
Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
Quote:
Originally Posted by tuebl View Post
is it possible to only have the CLI backend though, since this is installed on a server, it wants to add xorg and stuff and that's all pointless to me
I'm not sure. I seem to recall reading something about that, but it's not something I've really looked into.

Russ
avantman42 is offline   Reply With Quote
Advert
Old 01-09-2012, 10:00 AM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,754
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by tuebl View Post
is it possible to only have the CLI backend though, since this is installed on a server, it wants to add xorg and stuff and that's all pointless to me
There is a FAQ for that

It is linked on the first line of the Help page
theducks is offline   Reply With Quote
Old 01-09-2012, 03:14 PM   #7
tuebl
Junior Member
tuebl began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2012
Device: server
Well after searching even after reading your advice it took me a while trying to find what you were talking about. To anyone who gets here through Google or whatever, it's at the very bottom of the FAQ on the manual.




THanks guys
tuebl is offline   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
What to use to convert Epub or HTML to Mobi? Artha Kindle Formats 2 08-24-2011 07:47 AM
Unable to convert MOBI to EPUB bb46970 Conversion 6 08-21-2011 04:45 PM
Failure to convert from mobi to epub jlmwrite Calibre 9 01-06-2011 11:12 PM
Convert .prc / .mobi to epub goldberry Calibre 3 09-12-2010 03:56 PM
Mobi book won't convert to ePub HarryT Calibre 4 08-09-2009 11:20 AM


All times are GMT -4. The time now is 04:46 AM.


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