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 03-12-2023, 02:17 PM   #1
Albretch Mueller
Junior Member
Albretch Mueller began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2023
Device: none
ebook-convert: You must specify the input AND output files ...

I am trying to use ebook-convert to convert compatible files to pdf and I need to log any warnings or messages that ebook-convert would generate while it does its work with each file.
I use essentially the same one liner to convert all webp files to png and I am doing a dry run first to make sure find is feeding the file paths properly. I would like to debug what ebook-convert is or isn't doing and compare it to the output of dwebp to understand why one works just fine but the other doesn't.

# search directory and extensions of files to be fished by find
_SDIR="<...>"
_X=".\(mobi$\|djvu$\|epub$\|azw3$\)"

###
# dry run
shopt -s nocasematch; shopt -s nocaseglob; time find "${_SDIR}" -type f -iregex .*"${_X}"

# conversion attempts
shopt -s nocasematch; shopt -s nocaseglob; time find "${_SDIR}" -type f -iregex .*"${_X}" -exec bash -c '_F="$1"; _PRFX="${_F%.*}"; ebook-convert "${_F}" -o "${_PRFX}".pdf' - {} \;
Albretch Mueller is offline   Reply With Quote
Old 03-12-2023, 09:23 PM   #2
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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
ebook-convert --help
kovidgoyal is offline   Reply With Quote
Reply

Tags
ebook-convert find


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
When Calibre convert, the input language is zh-tw, but the output language become zh wealthtsay Conversion 14 06-06-2019 03:55 PM
Multiple input files for ebook-convert or other Calibre CLI tools? tomcam Calibre 1 04-08-2017 04:49 PM
How does ebook-convert react to plain text input porphyry5 Conversion 7 11-06-2015 07:27 PM
ebook-convert mobi output is different than in windows timoy_kindle Recipes 1 08-27-2013 01:50 AM
ebook-convert error on PDF output without X hiperlink Conversion 3 04-04-2011 07:23 AM


All times are GMT -4. The time now is 02:51 PM.


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