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

91.196**4 Posted at: 1 hour ago

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

Output from ffmpeg/avlib:

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: 3221225477

Output from ffmpeg/avlib:
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/5788/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/5788/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.22621-SP0
version:v4.18
frozen:True
language:en_US
root_dir:C:/Dubs/app

1 Replies

#1 DeepSeek reply at 1 hour ago

The ffmpeg return code 3221225477 is the decimal form of 0xC0000005 (memory access violation), meaning the ffmpeg process crashed while decoding one of the dubbed audio segments during the A/V sync stage; it is not a subtitle-format or language problem. The usual triggers are a corrupted or 0-byte TTS output segment, security software blocking or killing ffmpeg.exe, or hardware decoding glitches.

Try the following in order:

  1. Clear the cache and rerun: open C:/Dubs/app/tmp/5788/e7e68bbae0, check whether any .wav files are 0 bytes or abnormally small, then delete everything inside the tmp folder. In the main window, check Clear Output, and rerun.
  2. Simplify the file name and path: ep1.uk.srt has two dots in the name. Rename it to ep1_uk.srt, keep it in a shallow directory with only English letters and digits ( C:/Dubs is fine), and avoid special characters.
  3. Add the software directory to the security software whitelist: the portable build is not signed, so antivirus software may intercept or terminate ffmpeg.exe mid-run, which produces exactly this access-violation crash.
  4. Disable hardware processing: in Menu → Tools/Options → Advanced Options → Video Output, uncheck Enable CUDA Hardware Decoding, and check Force Software Video Encoding.
  5. Isolate the silence-trim step: in Advanced Options → Subtitle Dubbing, temporarily uncheck Trim Start/End Silence in Dubbed Segments, then rerun. If it then passes, the crash is caused by a specific broken TTS segment; after confirming this, check Keep Segment Audio Files and inspect which segment is corrupted.
  6. Check the Edge-TTS output: run a single line through Text-to-Speech with the same voice (Ostap(Male/UA)) to see whether the generated wav plays normally, ruling out a bad file from that voice.

If none of the above works, the specific cause cannot be determined from the traceback alone. Please provide the last ~30 lines of the latest log file in the logs/ folder under the software installation directory (C:/Dubs/app/logs/), plus the exact size of the audio file that fails to decode.

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