#2526 TaskCfg(cache_folder='C:/Users/ROG/OneDrive/Desktop/Pyvd/tmp/4832/0dea173cb6', target_dir='C:/Users/ROG/OneDrive/Desktop

92.162* Posted at: 1 day ago 👁15

Operation failed, please try again later:('Unable to process >4GB files',):
Traceback (most recent call last):
File "videotrans\task\job.py", line 333, in run
File "videotrans\task\_dubbing.py", line 293, in task_done
File "videotrans\util\help_ffmpeg.py", line 1002, in remove_silence_from_end
File "pydub\audio_segment.py", line 778, in from_file
File "pydub\audio_segment.py", line 142, in fix_wav_headers
pydub.exceptions.CouldntDecodeError: Unable to process >4GB files

TaskCfg(cache_folder='C:/Users/ROG/OneDrive/Desktop/Pyvd/tmp/4832/0dea173cb6', target_dir='C:/Users/ROG/OneDrive/Desktop/Toart', 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='en', source_sub=None, target_sub='C:/Users/ROG/OneDrive/Desktop/Toart/013.TOART2023角色设计网络班第七期-week05-反馈课.srt', source_wav=None, source_wav_output=None, target_wav='C:/Users/ROG/OneDrive/Desktop/Toart/013.TOART2023角色设计网络班第七期-week05-反馈课.mp3', target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='013.TOART2023角色设计网络班第七期-week05-反馈课', 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='William Multilingual(Male/AU)', copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=0, recogn_type=None, model_name=None, split_type=0, voice_autorate=True, video_autorate=False, cuda=False, name='C:/Users/ROG/OneDrive/Desktop/Toart/013.TOART2023角色设计网络班第七期-week05-反馈课.srt', basename='013.TOART2023角色设计网络班第七期-week05-反馈课.srt', ext='srt', dirname='C:/Users/ROG/OneDrive/Desktop/Toart', shound_del_name=None, uuid='0dea173cb6', remove_silent_mid=False, align_sub_audio=False, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.89
frozen:True
language:en
root_dir:C:/Users/ROG/OneDrive/Desktop/Pyvd

1 Replies

The error Unable to process >4GB files indicates that the audio file generated during the dubbing process is too large (exceeds 4GB) for the underlying library (pydub) to handle. This is a known limitation.

The root cause is likely that your source SRT subtitle file contains a very large amount of text, and the resulting synthesized audio (MP3) file has become excessively long and large.

Here are the solutions, in order of recommendation:

  1. Split the SRT File: The most effective solution is to split your large SRT file into smaller parts (e.g., split by time or number of lines). Process each part separately in pyVideoTrans, and then merge the resulting audio/video files using the "Toolbox -> Merge Audio/Video/Subtitles" function.
  2. Adjust Output Format (Temporary Workaround): The pydub library has issues with very large WAV files. You can try forcing the intermediate audio format to be something other than WAV.

    • Go to the pyVideoTrans installation directory.
    • Open the file videotrans/util/help_ffmpeg.py.
    • Find the function remove_silence_from_end (around line 1002 in your error log).
    • Locate the line audio = AudioSegment.from_file(audio_file).
    • Before this line, add code to convert the large audio file to a segmented or different format using ffmpeg command. However, this requires modifying the source code and is more complex.
  3. Check for "Audio Auto-Rate": In your TaskCfg, voice_autorate=True is set. If the配音加速 process creates an extremely long silent tail due to a bug, it might inflate the file size. As a test, you can try processing again with "Audio Auto-Rate" unchecked in the main interface.

Given the complexity of solutions 2 and 3, splitting the source SRT file (Solution 1) is the most straightforward and reliable approach.

Reference 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.

Donate: https://ko-fi.com/jianchang512

Trending Questions