#2211 TaskCfg(cache_folder='C:/pyvideotrans/tmp/6400/926318accd', target_dir='D:/Workspace/PyVideoTrans/tts', remove_noise=Fal

212.253* Posted at: 3 days ago 👁18

Operation failed, please try again later:('not a whole number of frames',):
Traceback (most recent call last):
File "videotrans\task\job.py", line 333, in run
File "videotrans\task\_dubbing.py", line 291, in task_done
File "videotrans\util\help_ffmpeg.py", line 1018, in remove_silence_from_end
File "pydub\audio_segment.py", line 1090, in dBFS
File "pydub\audio_segment.py", line 1086, in rms
audioop.error: not a whole number of frames

TaskCfg(cache_folder='C:/pyvideotrans/tmp/6400/926318accd', target_dir='D:/Workspace/PyVideoTrans/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='tr', source_sub=None, target_sub='D:/Storage/Eğitimler/Andrew Wohan ThreeJs Eğitimleri/ThreeJs Ağırlıklı Portfolyo Tasarımı/tr.srt', source_wav=None, source_wav_output=None, target_wav='D:/Workspace/PyVideoTrans/tts/tr.wav', target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='tr', 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='Ahmet(Male/TR)', 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='D:/Storage/Eğitimler/Andrew Wohan ThreeJs Eğitimleri/ThreeJs Ağırlıklı Portfolyo Tasarımı/tr.srt', basename='tr.srt', ext='srt', dirname='D:/Storage/Eğitimler/Andrew Wohan ThreeJs Eğitimleri/ThreeJs Ağırlıklı Portfolyo Tasarımı', shound_del_name=None, uuid='926318accd', 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:/pyvideotrans

1 Replies

The error audioop.error: not a whole number of frames indicates an issue with the audio processing during the "Remove Silence from End" step. This is often caused by an audio file with an unusual sample rate or an odd number of audio frames.

To resolve this, please follow these steps:

  1. Disable the "Remove Silence from End" feature: This is the most direct solution.

    • In the main interface, click on "Set More Parameters" (or go to Tools -> Options -> Advanced Options).
    • Look for the "Remove Silence from End" option (it might be under "Audio Processing" or "Advanced Audio Settings").
    • Uncheck this option.
    • Restart your task.
  2. Check and Re-encode the Source Audio (if the above doesn't work):

    • If you are processing a video/audio file, use a tool like ffmpeg to re-encode the audio stream to a standard format (e.g., 44100 Hz sample rate, stereo).
    • Command example: ffmpeg -i "input.mp4" -c:v copy -c:a aac -ar 44100 "output.mp4"
    • Then, use the newly created output.mp4 file in pyVideoTrans.
  3. For SRT to Audio (TTS) tasks specifically: The error occurs when the software tries to process the generated TTS audio. Try using a different TTS voice or engine (e.g., switch from Edge-TTS to VITS-cnen or another local option) to see if the generated audio is compatible.

If the problem persists after trying these steps, please provide the complete log file from C:/pyvideotrans/logs/ for further analysis.

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