Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-13-2015, 08:02 PM   #1
fncll
Enthusiast
fncll began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Oct 2002
Location: AK
Generate command line equivalent?

When I convert a particular .mobi file to .epub using the Calibre GUI on my main computer, it works fine. When I try to convert the same file using the command line on a VPS server, it fails near the end saying "killed."

Can I generate a command-line from the calibre GUI so I can figure out what option(s) are causing the failure on my remote computer? Or do I need to use the verbose output and compare all the options one-by-one?
fncll is offline   Reply With Quote
Old 01-13-2015, 08:22 PM   #2
fncll
Enthusiast
fncll began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Oct 2002
Location: AK
Conversion "killed" -- why?

I have a .mobi file that converts fine using Calibre GUI on my main computer (OS X) but fails on the command line on a Linux (CentOS) VPS. Here's what I get (as you can see, I've been testing some options...without specifying options the conversion stalls, forever, at removing "fake margins"):

Spoiler:
$ ../calibre-bin/calibre/ebook-convert 0877798222-dt.mobi 0877798222-dt.epub --disable-unwrap-lines --disable-remove-fake-margins --dont-split-on-page-breaks --flow-size=10000 --disable-dehyphenate -v -v -v
Resolved conversion options
calibre version: 2.16.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0,
'book_producer': None,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': None,
'debug_pipeline': None,
'dehyphenate': False,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': True,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_toc_at_end': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': None,
'fix_indents': True,
'flow_size': 10000,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x7f156b8c80d0>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.OutputProfile object at 0x7f156b8c8490>,
'page_breaks_before': "//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': None,
'remove_fake_margins': False,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': '',
'search_replace': None,
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': '',
'sr1_search': '',
'sr2_replace': '',
'sr2_search': '',
'sr3_replace': '',
'sr3_search': '',
'start_reading_at': None,
'subset_embedded_fonts': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'unsmarten_punctuation': False,
'unwrap_lines': False,
'use_auto_toc': False,
'verbose': 3}
1% Converting input to HTML...
InputFormatPlugin: MOBI Input running
on /home/fncll/tmp/0877798222-dt.mobi
Extracting text...
Adding anchors...
Extracting images...
Cleaning up HTML...
Parsing HTML...
Converting style information to CSS...
Creating OPF...
Parsing all content...
Parsing styles.css ...
Parsing index.html ...
Forcing index.html into XHTML namespace
Reading TOC from NCX...
34% Running transforms on ebook...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'images/00002.jpg' from manifest
Trimming u'images/00003.jpg' from manifest
Creating EPUB Output...
67% Running EPUB Output plugin
Rescaling image from 1139x1600 to 844x1186 images/00024.jpg
Splitting markup on page breaks and flow limits, if any...
Looking for large trees in index.html...
Found large tree #0
Splitting...
Split point: {http://www.w3.org/1999/xhtml}div /*/*[2]/*[48979]
Killed


I posted a different thread about how I might figure out the difference in the options that the GUI version is using vs the command line, but trying to compare one by one is painful...so, any ideas what to try?
fncll is offline   Reply With Quote
Advert
Old 01-13-2015, 09:55 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,259
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Copy paste the debug output from the GUI and command line into two separate files and use a diff program to see the differences.

Although if I had to guess, I'd guess your VPS is killing the process because it runs out of memory.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Equivalent in command line to convert to azw3 in gui? dawood Conversion 7 10-22-2013 01:08 AM
Command line - HOW? bookfanmd Calibre 19 01-12-2013 09:17 AM
Help with command line shotsky Conversion 6 07-23-2012 09:40 AM
Need help using command line tsger Recipes 2 07-16-2011 03:23 AM
Why use the command line? slantybard Calibre 6 07-22-2009 12:17 PM


All times are GMT -4. The time now is 12:41 PM.


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