Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffmpeg error #52

Open
citadella opened this issue Feb 3, 2025 · 3 comments
Open

ffmpeg error #52

citadella opened this issue Feb 3, 2025 · 3 comments

Comments

@citadella
Copy link

citadella commented Feb 3, 2025

When running a conversion, I see the following error on every run, it seems. I make progress each time, and it picks up where it left off, but I only seem to make 3-6 chapters of progress each time I run it:

pydub.exceptions.CouldntDecodeError: Decoding failed. ffmpeg returned error code: 183

Output from ffmpeg/avlib:

ffmpeg version 7.1 Copyright (c) 2000-2024 the FFmpeg developers
built with Apple clang version 16.0.0 (clang-1600.0.26.4)
configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.1_4 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.100 / 61. 19.100
libavformat 61. 7.100 / 61. 7.100
libavdevice 61. 3.100 / 61. 3.100
libavfilter 10. 4.100 / 10. 4.100
libswscale 8. 3.100 / 8. 3.100
libswresample 5. 3.100 / 5. 3.100
libpostproc 58. 3.100 / 58. 3.100
[mp3 @ 0x13f7049c0] Format mp3 detected only with low score of 1, misdetection possible!
[mp3 @ 0x13f7049c0] Failed to find two consecutive MPEG audio frames.
[in#0 @ 0x600002d1ca00] Error opening input: Invalid data found when processing input
Error opening input file sntnc3.mp3.
Error opening input files: Invalid data found when processing input

@citadella
Copy link
Author

For reference, above that point:

Generating audio files: 88%|████████████████████████████████████████████████████████████████████████████▍ | 238/271 [02:02<00:16, 1.95pg/s]
Traceback (most recent call last):
File "/Users/xxx/.pyenv/versions/3.11.11/bin/epub2tts-edge", line 8, in
sys.exit(main())
^^^^^^
File "/Users/xxx/.pyenv/versions/3.11.11/lib/python3.11/site-packages/epub2tts_edge/epub2tts_edge.py", line 463, in main
files = read_book(book_contents, args.speaker, args.paragraphpause, args.sentencepause)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/.pyenv/versions/3.11.11/lib/python3.11/site-packages/epub2tts_edge/epub2tts_edge.py", line 286, in read_book
combined += AudioSegment.from_file(file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/.pyenv/versions/3.11.11/lib/python3.11/site-packages/pydub/audio_segment.py", line 773, in from_file
raise CouldntDecodeError(

@flowerforest0123
Copy link

flowerforest0123 commented Feb 4, 2025

could u share the text if possible, and whether you used special inputs?

@citadella
Copy link
Author

No special inputs and there's nothing obvious about the text. From Part 5-30 it only managed 3-4 chapters at a time, then it got better and gave me 5-7 chapters to 45, then did the last 40 chapters with no issues. Weird...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants