#9042 Error during merge stage Error during final step of subtitle/TTS embeddingopening input: Invalid data found when process

2401**8e29 Posted at: 3 hours ago

Error during merge stage Error during final step of subtitle/TTS embeddingopening input: Invalid data found when processing input opening input file will_embed.m4a. opening input files: Invalid data found when processing input
Traceback (most recent call last):
File "videotrans\util\_ffmpeg_runner.py", line 66, in runffmpeg
File "subprocess.py", line 526, in run
subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-nostdin', '-ignore_unknown', '-y', '-progress', 'compose1796134123.6277773.txt', '-i', 'novoice.mp4', '-i', 'will_embed.m4a', '-map', '0:v', '-map', '1:a', '-c:v', 'copy', '-c:a', 'copy', '-movflags', '+faststart', '-r', '30.0', '-fps_mode', 'cfr', 'laste_target.mp4']' returned non-zero exit status 3199971767.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\task\_stage_assemble.py", line 215, in _join_video_audio_srt
File "videotrans\util\_ffmpeg_runner.py", line 95, in runffmpeg
videotrans.configure.excepts.FFmpegError: opening input: Invalid data found when processing input opening input file will_embed.m4a. opening input files: Invalid data found when processing input

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 206, in run
File "videotrans\task\_stage_assemble.py", line 26, in assembling
File "videotrans\task\_stage_assemble.py", line 264, i
......
survive on for one year. #liminalspaces #analoghorror #retrogaming.mp4,
Output Directory: D:/[12]- Helmet Simulations/_video_out/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming-mp4,
self.cfg.cache_folder='D:/v4.18/tmp/5288/07fcc49321'
Selected Clear Output, Selected Enable CUDA
Selected Denoise,Denoise Model:dpdfnet2.onnx
Selected Restore Punct(zh/en)
STT Service:faster-whisper(Built-in), distil-large-v3, Spoken: English
Max Speech Duration (s): 5s
Min Speech Duration (ms): 3000ms
Min Silence Duration for Split (ms): 600ms
VAD Speech Threshold: 0.45
VAD Engine: silero
Compute Type:float16
Beam Size:5
Best Of:5
Condition on Previous Text:True
Repetition Penalty:1.0
Compression Ratio Threshold:2.4
TranslateSrt:Microsoft Translate (Free),Spoken:English,Target:Hindi
Traditional Translation Batch Size (Lines): 5
TTS Service:OmniVoice(Built-in), Voices:clone, Target:Hindi
Volume:+0%, Speed:+0%, Selected TTS Speedup, Not-Selected Slow Video
Selected Trim Start/End Silence in Dubbed Segments
Silence Removal Intensity: default
Selected: SecondarySTT, Secondary Recognition Model: distil-large-v3
Secondary ASR Max Speech Duration (s): 1.0s
Secondary ASR Min Speech Duration (ms): 300ms
Selected Identify Speakers: No Limit
Speaker Diarization Model: pyannote
No Subtitles
Selected Separate Vocal/BGM, Model:spleeter,Selected Re-embed BGM, Background Audio Volume Multiplier:0.8, Loop BGMD:/v4.18/tmp/5288/07fcc49321/vocal.wavD:/v4.18/tmp/5288/07fcc49321/instrument.wav
video duration:134800ms
video information:{'video_fps': 30.0, 'r_frame_rate': 30.0, 'video_codec_name': 'h264', 'audio_codec_name': 'aac', 'width': 720, 'height': 1280, 'time': 134800, 'streams_len': 3, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
self.cfg=TaskCfgVTT(uuid='07fcc49321', name='D:/[12]- Helmet Simulations/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming.mp4', dirname='D:/[12]- Helmet Simulations', noextname='You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming', basename='You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming.mp4', ext='mp4', target_dir='D:/[12]- Helmet Simulations/_video_out/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming-mp4', cache_folder='D:/v4.18/tmp/5288/07fcc49321', is_cuda=True, source_language='English', source_language_code='en', source_sub='D:/[12]- Helmet Simulations/_video_out/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming-mp4/en.srt', source_wav='D:/v4.18/tmp/5288/07fcc49321/en.wav', source_wav_output='D:/[12]- Helmet Simulations/_video_out/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming-mp4/en.m4a', target_language='Hindi', target_language_code='hi', target_sub='D:/[12]- Helmet Simulations/_video_out/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming-mp4/hi.srt', target_wav='D:/v4.18/tmp/5288/07fcc49321/target.wav', target_wav_output='D:/[12]- Helmet Simulations/_video_out/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming-mp4/hi.m4a', translate_type=1, tts_type=3, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='clone', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='distil-large-v3', shibie_audio=None, remove_noise=True, enable_diariz=True, nums_diariz=0, rephrase=False, fix_punc=1, app_mode='biaozhun', subtitle_language=None, targetdir_mp4='D:/[12]- Helmet Simulations/_video_out/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming-mp4/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming.mp4', novoice_mp4='D:/v4.18/tmp/5288/07fcc49321/novoice.mp4', is_separate=True, embed_bgm=True, instrument='D:/v4.18/tmp/5288/07fcc49321/instrument.wav', vocal='D:/v4.18/tmp/5288/07fcc49321/vocal.wav', clear_cache=True, background_music='', subtitle_type=0, only_out_mp4=False, recogn2pass=True, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8, batch=False)
video_duration_ms=134800


=
system:Windows-10-10.0.26300-SP0
version:v4.18
frozen:True
language:en_US
root_dir:D:/v4.18

1 Replies

#1 DeepSeek reply at 3 hours ago

The direct cause: the assembled dubbing file D:/v4.18/tmp/5288/07fcc49321/will_embed.m4a is empty or corrupted, so ffmpeg cannot demux will_embed.m4a ("Invalid data found when processing input") and the final merge fails. In the vast majority of cases, this file is generated incompletely because the disk is full or because the dubbing/assembly process was interrupted; occasionally, the special characters in the path cause problems.

Troubleshooting steps:

  1. Open D:/v4.18/tmp/5288/07fcc49321/, check the size of will_embed.m4a; if it is 0 KB or only a few KB, the file is indeed corrupt.
  2. Check the free space on drive D:. The current task enabled Separate Vocal/BGM, Re-embed BGM, and SecondarySTT at the same time, which produces a large amount of temporary slices and wav files. If the remaining space is small, clear the D:/v4.18/tmp/ folder and run again.
  3. Rename the source file and move it to a shallow directory. The current file name contains #, [, ] and multiple spaces, for example change it to D:/videos/planet1.mp4; keep the path short and use only English letters, digits, and underscores.
  4. The secondary recognition model does not match the target language. Your target language is Hindi, but Secondary Recognition Model is set to distil-large-v3 (English-only model). Change it to large-v3-turbo or large-v3 under Menu - Tools/Options - Advanced Options - Speech Recognition (ASR) - Secondary Recognition Model; otherwise, the secondary recognition of Hindi dubbing easily produces empty or garbled subtitles, which affects the assembly stage.
  5. Retry after making the changes above. If you want to avoid repeating speech recognition, uncheck Clear Output; if you want to start over from scratch, check it.

If the problem still occurs after the above steps, check the last 30 lines of the latest log in D:/v4.18/logs/ (especially the output of the dubbing stage and the will_embed.m4a generation step) and provide them to determine whether the dubbing channel failed or the disk space was exhausted.

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