aedocw / epub2tts

Turn an epub or text file into an audiobook
Apache License 2.0
496 stars 45 forks source link

Unrecognized option 'p335.m4b' #55

Closed ghost closed 10 months ago

ghost commented 10 months ago

Getting this error on the final concatenation of the m4a into m4b:

 > Processing time: 107.58983039855957
 > Real-time factor: 0.06694619643155328
100.00% spoken so far.
Elapsed: 35 minutes, ETA: 0 minutes
Bitrate: 69k
ffmpeg version 5.1.3-1 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14)
  configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Unrecognized option 'p335.m4b'.
Error splitting the argument list: Option not found

it deleted everything when it crashed, but I believe the .m4a file was named -p335.m4a (with the dash) and nothing else. Could that be the problem? Unfortunately my terminal doesn't spit out what the command it was trying to run in ffmpeg.

Looking at the code, it looks like maybe the book's name didn't parse? I used a shell script that did epub2tts ./books/*.epub, could that be the reason? Looks like you're pulling bookname from args?

If I can't *.epub the files in bash, do you have any recommendations for batch processing a folder of .epubs with minimal overhead?

I'm thinking this is a nothingburger caused by the wildcard. It's late so I'll try again tomorrow morning without the asterisk.

I am running Debian 12 bookworm, using a GPU.

ghost commented 10 months ago

Yeah, it was the asterisk. It works without it. Guess I'll write a bash script to bulk process files.

Thanks for the great application! I'm converting Creative Commons Open Educational Resources to audiobooks.

aedocw commented 10 months ago

Ah yes, the file naming convention part is not the best and could use improvement. But the script itself would not be able to handle multiple books at once.

That's really cool that you're using this to convert creative commons edu resources! Definitely reach out if you have any other issues, or if there are improvements or issues you hit.