#8753 Audio/Video Speed Sync Stage An Error Occurred Decoding failed. ffmpeg returned error code: 3199971767

91.196**4 Posted at: 1 hour ago

Audio/Video Speed Sync Stage An Error Occurred Decoding failed. ffmpeg returned error code: 3199971767

Output from ffmpeg/avlib:

ffmpeg version 7.1.1-full_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 14.2.0 (Rev1, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-lcms2 --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-libdvdnav --enable-libdvdread --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libopenjpeg --enable-libquirc --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-libqrencode --enable-librav1e --enable-libsvtav1 --enable-libvvenc --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libs
......
stproc 58. 3.100 / 58. 3.100
[in#0 @ 000001c1d5c5e740] Error opening input: Invalid data found when processing input
Error opening input file C:/Dubs/app/tmp/14524/e7e68bbae0/dubb-1-7586748a8100d6a7533f3d8e205c8d38.wav.
Error opening input files: Invalid data found when processing input

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 163, in process_task

File "videotrans\task\dubbing.py", line 300, in align

File "videotrans\task\_rate.py", line 811, in run

File "videotrans\task\_rate.py", line 844, in _prepare_data

File "pydub\audio_segment.py", line 773, in from_file

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

Output from ffmpeg/avlib:

ffmpeg version 7.1.1-full_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 14.2.0 (Rev1, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-lcms2 --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-libdvdnav --enable-libdvdread --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libopenjpeg --enable-libquirc --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-libqrencode --enable-librav1e --enable-libsvtav1 --enable-libvvenc --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-liblc3 --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.101 / 61. 19.101
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
[in#0 @ 000001c1d5c5e740] Error opening input: Invalid data found when processing input
Error opening input file C:/Dubs/app/tmp/14524/e7e68bbae0/dubb-1-7586748a8100d6a7533f3d8e205c8d38.wav.
Error opening input files: Invalid data found when processing input
trk=Text-to-Speech
self.cfg.name='C:/Dubs/ep1.uk.srt',
Output Directory: C:/Dubs/app/output/tts,
self.cfg.cache_folder='C:/Dubs/app/tmp/14524/e7e68bbae0'
self.cfg.is_cuda=False
TTS Service:Edge-TTS (Free), Voices:Ostap(Male/UA), Target:uk
Volume:+0%, Speed:+0%, Selected TTS Speedup
Output Format: wav
Selected Trim Start/End Silence in Dubbed Segments
Silence Removal Intensity: default
self.cfg=TaskCfgTTS(uuid='e7e68bbae0', name='C:/Dubs/ep1.uk.srt', dirname='C:/Dubs', noextname='ep1.uk', basename='ep1.uk.srt', ext='srt', target_dir='C:/Dubs/app/output/tts', cache_folder='C:/Dubs/app/tmp/14524/e7e68bbae0', is_cuda=False, source_language='', source_language_code='', source_sub=None, source_wav=None, source_wav_output=None, target_language='', target_language_code='uk', target_sub='C:/Dubs/ep1.uk.srt', target_wav='C:/Dubs/app/output/tts/ep1.uk.wav', target_wav_output=None, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Ostap(Male/UA)', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=False)


=
system:Windows-10-10.0.22631-SP0
version:v4.18
frozen:True
language:en_US
root_dir:C:/Dubs/app

1 Replies

#1 DeepSeek reply at 1 hour ago

The direct cause: the dubbing fragment dubb-1-7586748a8100d6a7533f3d8e205c8d38.wav generated by Edge-TTS is an invalid/empty audio file (0 bytes or incomplete data), so when the alignment stage calls ffmpeg/pydub to decode it, ffmpeg returns Invalid data found when processing input and throws CouldntDecodeError. In other words, the problem is not in the alignment stage itself, but in the dubbing stage that produced the bad file. This is typically caused by an Edge-TTS request being rejected (403/rate limit), the proxy interfering, or the file being locked or deleted by security software.

Check and handle in the order below:

  1. Confirm the file is bad: go to C:/Dubs/app/tmp/14524/e7e68bbae0/, find dubb-1-7586748a8100d6a7533f3d8e205c8d38.wav, and check its size. If it is 0 KB or only a few hundred bytes, that confirms Edge-TTS returned empty data.
  2. Clear the cache and start over: delete the entire C:/Dubs/app/tmp/14524 folder, check Clear Output on the main interface, and start the task again. Otherwise, the program will keep reusing the bad cache file.
  3. Reduce the request rate (the most effective fix for Edge-TTS): open Menu → Tools/Options → Advanced Options → Dubbing, set EdgeTTS Max Concurrency to 1, Post-Dubbing Delay (s) to 5~10, and set EdgeTTS Retry Attempts to 3.
  4. Bypass the proxy: if you have entered a proxy in the main interface, Edge-TTS may fail through it. Create an empty file named edgetts-noproxy.txt in the software root directory (C:/Dubs/app/) to force Edge-TTS to skip the proxy.
  5. Rule out interference from the environment: make sure the drive where C:/Dubs is located has enough free space, and that the software directory C:/Dubs/app is added to the security software's trust list (otherwise the generated wav may be quarantined or locked).
  6. If only a few lines fail, you can also switch the dubbing channel temporarily (for example, to another TTS channel that supports Ukrainian), or use Single-Video Interactive Mode to delete the problematic line and re-dub.

If the same error still occurs after the steps above, please provide the last 30 or so lines of the latest log in C:/Dubs/app/logs/ (especially the part that records the Edge-TTS return status) so that we can further determine whether it is a rate limit or a network issue.

Please refer to the related documentation:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource