The core issue is that the software's default timeout for external API calls (like custom TTS) is insufficient for long videos, and there is no built-in setting to increase this timeout limit.
Solution Steps:
- Understand the Limitation: The timeout is hardcoded within the software's network request logic for external services. There is no user-facing option in the GUI or advanced settings to modify this value.
Optimize TTS Service Performance: Since you cannot change the client-side timeout, you must reduce the processing time on the server side.
- For Local TTS Services (F5-TTS, CosyVoice, etc.): Ensure your TTS service is running on a machine with sufficient GPU resources (CUDA). Check the service's logs for performance bottlenecks.
- Reduce Request Batch Size: In
Menu -> Tools/Options -> Advanced Options -> [Subtitle Dubbing Adjustment], try reducing the value of Concurrent Dubbing Threads to 1. This may prevent overloading the TTS service and reduce per-request latency. - Increase Pause Between Requests: In the same menu, increase
Pause seconds after dubbing to a higher value (e.g., 10 seconds) to give the TTS service more breathing room between requests.
Alternative Workflow for Very Long Videos: Process the video in smaller segments.
- Use video editing software to split your long video into shorter parts (e.g., 10-minute segments).
- Process each segment separately in pyVideoTrans.
- Use the software's "Batch merge video and audio" tool to recombine the finished segments.
- Consider Different TTS Channels: If the custom TTS service is consistently slow, consider switching to a more robust TTS channel for long-form content, such as Edge-TTS (free) or a commercial API like Azure TTS or Qwen-TTS (Bailian), which typically have higher reliability and better throughput.
Please refer to the relevant documentation: