#3542 TaskCfg(cache_folder='C:/pyvideotrans/tmp/10972/bfe7ec9918', target_dir='C:/pyvideotrans/output/tts', remove_noise=False

108.7* Posted at: 3 hours ago 👁5

Conversion failed!
Traceback (most recent call last):
File "videotrans\task\job.py", line 323, in run
File "videotrans\task\_dubbing.py", line 296, in task_done
File "videotrans\util\help_ffmpeg.py", line 970, in remove_silence_from_end
File "pydub\audio_segment.py", line 773, in from_file
pydub.exceptions.CouldntDecodeError: Decoding failed. ffmpeg returned error code: 69

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
......
[dec:mp3float @ 00000287047c7f00] Error submitting packet to decoder: Invalid data found when processing input
[mp3float @ 00000287047c8800] Header missing
[aist#0:0/mp3 @ 0000028704d20300] [dec:mp3float @ 00000287047c7f00] Error submitting packet to decoder: Invalid data found when processing input
[mp3float @ 00000287047c8800] Header missing
[aist#0:0/mp3 @ 0000028704d20300] [dec:mp3float @ 00000287047c7f00] Error submitting packet to decoder: Invalid data found when processing input
[mp3float @ 00000287047c8800] Header missing
[aist#0:0/mp3 @ 0000028704d20300] [dec:mp3float @ 00000287047c7f00] Error submitting packet to decoder: Invalid data found when processing input
[mp3float @ 00000287047c8800] Header missing
[aist#0:0/mp3 @ 0000028704d20300] [dec:mp3float @ 00000287047c7f00] Error submitting packet to decoder: Invalid data found when processing input
[mp3float @ 00000287047c8800] Header missing
[aist#0:0/mp3 @ 0000028704d20300] [dec:mp3float @ 00000287047c7f00] Error submitting packet to decoder: Invalid data found when processing input
[mp3float @ 00000287047c8800] Header missing
[aist#0:0/mp3 @ 0000028704d20300] [dec:mp3float @ 00000287047c7f00] Error submitting packet to decoder: Invalid data found when processing input
[mp3float @ 00000287047c8800] Header missing
[aist#0:0/mp3 @ 0000028704d20300] [dec:mp3float @ 00000287047c7f00] Error submitting packet to decoder: Invalid data found when processing input
[aist#0:0/mp3 @ 0000028704d20300] [dec:mp3float @ 00000287047c7f00] Decode error rate 1 exceeds maximum 0.666667
[aist#0:0/mp3 @ 0000028704d20300] [dec:mp3float @ 00000287047c7f00] Task finished with error code: -1145393733 (Error number -1145393733 occurred)
[aist#0:0/mp3 @ 0000028704d20300] [dec:mp3float @ 00000287047c7f00] Terminating thread with return code -1145393733 (Error number -1145393733 occurred)
[graph_-1_in_0:0 @ 00000287047cd540] Neither number of channels nor channel layout specified
Error initializing filters!
[af#0:0 @ 00000287047c59c0] Task finished with error code: -22 (Invalid argument)
[af#0:0 @ 00000287047c59c0] Terminating thread with return code -22 (Invalid argument)
[aost#0:0/pcm_s16le @ 00000287047c4dc0] Could not open encoder before EOF
[aost#0:0/pcm_s16le @ 00000287047c4dc0] Task finished with error code: -22 (Invalid argument)
[aost#0:0/pcm_s16le @ 00000287047c4dc0] Terminating thread with return code -22 (Invalid argument)
[out#0/wav @ 00000287047b7740] Nothing was written into output file, because at least one of its streams received no packets.
size= 0KiB time=N/A bitrate=N/A speed=N/A
Conversion failed!
TaskCfg(cache_folder='C:/pyvideotrans/tmp/10972/bfe7ec9918', target_dir='C:/pyvideotrans/output/tts', remove_noise=False, is_separate=False, detect_language=None, subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code='es', source_sub=None, target_sub='C:/pyvideotrans/tmp/10972/20260309-181113.srt', source_wav=None, source_wav_output=None, target_wav='C:/pyvideotrans/output/tts/20260309-181113.mp3', target_wav_output=None, subtitles='', novoice_mp4=None, noextname='20260309-181113', shibie_audio=None, targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Achird', copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=18, recogn_type=None, model_name=None, voice_autorate=True, video_autorate=False, cuda=False, name='C:/pyvideotrans/tmp/10972/20260309-181113.srt', basename='20260309-181113.srt', ext='srt', dirname='C:/pyvideotrans/tmp/10972', shound_del_name=None, uuid='bfe7ec9918', remove_silent_mid=False, align_sub_audio=False, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False, fix_punc=False, recogn2pass=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.96
frozen:True
language:en
root_dir:C:/pyvideotrans

1 Replies

The conversion failed because the generated MP3 audio file (C:/pyvideotrans/output/tts/20260309-181113.mp3) is corrupted or invalid. The error pydub.exceptions.CouldntDecodeError: Decoding failed. ffmpeg returned error code: 69 and the ffmpeg output [mp3float @ ...] Header missing indicate that the audio file lacks proper headers, making it unreadable for the subsequent processing step (removing silence from the end).

This is typically caused by the Text-to-Speech (TTS) service returning an invalid or empty audio stream. Given that you are using tts_type=18 (likely Edge-TTS) and the target language is Spanish (es), the most probable cause is that Edge-TTS has been rate-limited or encountered a network issue, resulting in a failed or corrupted download.

Solution Steps:

  1. Check the Audio File: Navigate to C:/pyvideotrans/output/tts/ and try to play the file 20260309-181113.mp3. If it's silent, very short, or cannot be played, this confirms the issue.
  2. Adjust Edge-TTS Settings (Most Likely Fix): Edge-TTS has request limits. To avoid being throttled:

    • Go to Menu -> Tools/Options -> Advanced Options.
    • In the 【Subtitle Dubbing Adjustment】 section:

      • Set EdgeTTS Dubbing Channel Concurrency to 1.
      • Set Pause Seconds After Dubbing to 5 or higher (e.g., 10).
    • Click Save.
  3. Retry the Task:

    • Go back to the main translation interface.
    • Ensure Clean Generated is checked to force regeneration of all files, including the corrupted audio.
    • Click Start to run the task again.
  4. If the Problem Persists (Alternative TTS):

    • Temporarily switch to a different TTS channel for testing, such as Qwen-TTS (local) if you have it configured, or another free/paid service you have access to.
    • This will help isolate whether the problem is specific to Edge-TTS or a more general issue.

Preventive Measures for Edge-TTS:

  • Avoid processing a large number of videos in quick succession using Edge-TTS.
  • The settings adjustment in Step 2 is recommended for stable long-term use of the free Edge-TTS service.

Please refer to the relevant documentation:

Post Your Reply
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.

Related resource