#4004 TaskCfgVTT(is_cuda=True, uuid='e78b9e7b72', cache_folder='E:/pyvideotrans-v3.98/tmp/4108/e78b9e7b72', target_dir='O:/CRT

91.199* Posted at: 9 hours ago 👁14

预处理阶段出错 文件 O:/CRTubeGet Downloaded/AI二战精彩片段/Military History Visualized - Videos/1. BMP-1 Explording in FPS Mode.f401.mp4 中不存在有效音频,无法处理,请手动播放确认存在声音
Traceback (most recent call last):
File "videotrans\task\job.py", line 61, in run
File "videotrans\task\trans_create.py", line 186, in prepare
RuntimeError: 文件 O:/CRTubeGet Downloaded/AI二战精彩片段/Military History Visualized - Videos/1. BMP-1 Explording in FPS Mode.f401.mp4 中不存在有效音频,无法处理,请手动播放确认存在声音
TaskCfgVTT(is_cuda=True, uuid='e78b9e7b72', cache_folder='E:/pyvideotrans-v3.98/tmp/4108/e78b9e7b72', target_dir='O:/CRTubeGet Downloaded/AI二战精彩片段/Military History Visualized - Videos/_video_out/1. BMP-1 Explording in FPS Mode.f401-mp4', source_language='英语', source_language_code='en', source_sub='O:/CRTubeGet Downloaded/AI二战精彩片段/Military History Visualized - Videos/_video_out/1. BMP-1 Explording in FPS Mode.f401-mp4/en.srt', source_wav='E:/pyvideotrans-v3.98/tmp/4108/e78b9e7b72/en.wav', source_wav_output='O:/CRTubeGet Downloaded/AI二战精彩片段/Military History Visualized - Videos/_video_out/1. BMP-1 Explording in FPS Mode.f401-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='O:/CRTubeGet Downloaded/AI二战精彩片段/Military History Visualized - Videos/_video_out/1. BMP-1 Explording in FPS Mode.f401-mp4/zh-cn.srt', target_wav='E:/pyvideotrans-v3.98/tmp/4108/e78b9e7b72/target.wav', target_wav_output='O:/CRTubeGet Downloaded/AI二战精彩片段/Military History Visualized - Videos/_video_out/1. BMP-1 Explording in FPS Mode.f401-mp4/zh-cn.m4a', name='O:/CRTubeGet Downloaded/AI二战精彩片段/Military History Visualized - Videos/1. BMP-1 Explording in FPS Mode.f401.mp4', noextname='1. BMP-1 Explording in FPS Mode.f401', basename='1. BMP-1 Explording in FPS Mode.f401.mp4', ext='mp4', dirname='O:/CRTubeGet Downloaded/AI二战精彩片段/Military History Visualized - Videos', shound_del_name=None, translate_type=10, tts_type=1, volume='+10%', pitch='+0Hz', voice_rate='+0%', voice_role='ceshi.wav', voice_autorate=True, video_autorate=True, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='O:/CRTubeGet Downloaded/AI二战精彩片段/Military History Visualized - Videos/_video_out/1. BMP-1 Explording in FPS Mode.f401-mp4/1. BMP-1 Explording in FPS Mode.f401.mp4', novoice_mp4='E:/pyvideotrans-v3.98/tmp/4108/e78b9e7b72/novoice.mp4', is_separate=False, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=1, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False)


=
system:Windows-10-10.0.22621-SP0
version:v3.98
frozen:True
language:zh
root_dir:E:/pyvideotrans-v3.98

1 Replies

这是由于视频文件不包含有效的音频轨道,或音频轨道无法被软件提取。

根据日志,软件在预处理阶段尝试从视频文件 O:/CRTubeGet Downloaded/AI二战精彩片段/Military History Visualized - Videos/1. BMP-1 Explording in FPS Mode.f401.mp4 中提取音频时失败,提示“不存在有效音频”。

请按以下步骤排查:

  1. 手动播放确认:使用系统自带的播放器(如 Windows Media Player)或 VLC 播放该视频文件,确认视频本身是否包含声音。如果播放时确实没有声音,说明视频文件本身音频已丢失或损坏。
  2. 检查文件来源:该文件路径显示为从 CRTubeGet 下载。某些下载工具可能因网络问题或合并错误,导致下载的视频文件音轨缺失。
  3. 重新获取源文件:如果确认原视频应有声音,请尝试重新下载或从其他来源获取该视频文件。
  4. 检查文件路径和名称:确保文件路径和文件名不包含特殊符号或表情符,并且路径长度不宜过长。可以尝试将文件重命名为简短英文名称(如 test.mp4),并移动到浅层目录(如 D:\test.mp4),然后再次尝试处理。
  5. 使用格式转换工具:如果视频有声音但软件无法识别,可以尝试使用格式转换工具(如格式工厂、FFmpeg命令行)将视频重新封装或转换为标准的 H.264 MP4 格式,再导入软件处理。

如果以上步骤无法解决,请提供更多信息,例如手动播放视频的结果。

请查阅相关文档:

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.

Related resource