#2559 TaskCfg(cache_folder='D:/pyvideotrans/tmp/16668/c7174ad009', target_dir='D:/video/_video_out/The Prodigy Who Escaped Nor

2401:b60* Posted at: 2 days ago 👁15

合并阶段出错 连接被重置,网络可能不稳定
Traceback (most recent call last):
File "videotrans\task\job.py", line 299, in run
File "videotrans\task\trans_create.py", line 590, in assembling
File "videotrans\task\trans_create.py", line 1033, in _join_video_audio_srt
File "videotrans\util\help_misc.py", line 311, in is_novoice_mp4
RuntimeError: c7174ad009 split no voice error:setting option preset to value veryfast. applying encoder options: Invalid argument opening output file D:/pyvideotrans/tmp/16668/c7174ad009/novoice.mp4. opening output files: Invalid argument

TaskCfg(cache_folder='D:/pyvideotrans/tmp/16668/c7174ad009', target_dir='D:/video/_video_out/The Prodigy Who Escaped North Korea-mp4', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='简体中文', source_language_code='en', target_language_code='zh-cn', source_sub='D:/video/_video_out/The Prodigy Who Escaped North Korea-mp4/en.srt', target_sub='D:/video/_video_out/The Prodigy Who Escaped North Korea-mp4/zh-cn.srt', source_wav='D:/pyvideotrans/tmp/16668/c7174ad009/en.wav', source_wav_output='D:/video/_video_out/The Prodigy Who Escaped North Korea-mp4/en.m4a', target_wav='D:/pyvideotrans/tmp/16668/c7174ad009/target.wav', target_wav_output='D:/video/_video_out/The Prodigy Who Escaped North Korea-mp4/zh-cn.m4a', subtitles='', novoice_mp4='D:/pyvideotrans/tmp/16668/c7174ad009/novoice.mp4', noextname='The Prodigy Who Escaped North Korea', shibie_audio=None, targetdir_mp4='D:/video/_video_out/The Prodigy Who Escaped North Korea-mp4/The Prodigy Who Escaped North Korea.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=4, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', copysrt_rawvideo=False, clear_cache=False, translate_type=4, tts_type=0, recogn_type=0, model_name='tiny', split_type=0, voice_autorate=True, video_autorate=False, cuda=False, name='D:/video/The Prodigy Who Escaped North Korea.mp4', basename='The Prodigy Who Escaped North Korea.mp4', ext='mp4', dirname='D:/video', shound_del_name=None, uuid='c7174ad009', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.91
frozen:True
language:zh
root_dir:D:/pyvideotrans

1 Replies

错误核心是 Invalid argument opening output file D:/pyvideotrans/tmp/16668/c7174ad009/novoice.mp4,表明在合并阶段,软件尝试创建一个无声视频文件时,因参数无效而失败。这通常与输出路径过长、包含特殊字符或系统权限有关。

根据您的配置 TaskCfg,视频文件名为 The Prodigy Who Escaped North Korea.mp4,路径为 D:/video/。虽然路径本身不复杂,但临时文件路径 D:/pyvideotrans/tmp/16668/c7174ad009/novoice.mp4 较长,且可能因文件名中的空格或特殊字符导致 ffmpeg 处理异常。

请按以下步骤解决:

  1. 简化文件名和路径(最有效)

    • 将原视频文件 The Prodigy Who Escaped North Korea.mp4 重命名为一个简短的英文名,例如 test.mp4
    • 将其移动到磁盘根目录下的一个简单文件夹中,例如 D:/input/
    • 重新使用软件处理这个新路径下的文件(如 D:/input/test.mp4)。
  2. 检查软件安装路径

    • 确保 pyVideoTrans 软件本身没有安装在 C:/Program FilesC:/Windows 等需要管理员权限的目录。建议解压到 D:/pyvideotrans 这样的纯英文路径。
  3. 清理缓存后重试

    • 在主界面处理新文件时,务必勾选 “清理已生成” 选项,以确保使用新的临时文件。
  4. 检查磁盘空间和权限

    • 确保 D: 盘有足够的剩余空间。
    • 确保您对 D:/pyvideotrans/D:/video/ 目录有完整的读写权限。

执行以上操作后,问题应能得到解决。如果错误依旧,请提供 D:/pyvideotrans/logs/ 目录下的最新日志文件以便进一步分析。

请查看更多参考文档:

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