#4974 TaskCfgVTT(uuid='febd86e482', name='F:/混音/【电子音乐】手把手教你母带-p10-80.mp4', dirname='F:/混音', noextname='【电子音乐】手把手教你母带-p10-80',

166.0* Posted at: 16 hours ago

合并阶段出错 opening input: Invalid data found when processing input opening input file C:/Users/PC/Desktop/pyvid/tmp/6580/febd86e482/end-edit.srt. opening input files: Invalid data found when processing input
Traceback (most recent call last):

File "videotrans\util\help_ffmpeg.py", line 59, in runffmpeg

File "subprocess.py", line 526, in run

subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-nostdin', '-ignore_unknown', '-threads', '0', '-y', '-i', 'C:/Users/PC/Desktop/pyvid/tmp/6580/febd86e482/end-edit.srt', 'C:/Users/PC/Desktop/pyvid/tmp/6580/febd86e482/end.ass']' returned non-zero exit status 3199971767.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 195, in process_task

File "videotrans\task\trans_create.py", line 709, in assembling

File "videotrans\task\trans_create.py", line 1259, in _join_video_audio_srt

File "videotrans\task\trans_create.py", line 1152, in _process_subtitles

File "videotrans\util\help_srt.py", line 281, in set_ass_font

File "videotrans\util\help_ffmpeg.py", line 88, in runffmpeg

videotrans.configure.excepts.FFmpegError: opening input: Invalid data found when processing input opening input file C:/Users/PC/Desktop/pyvid/tmp/6580/febd86e482/end-edit.srt. opening input files: Invalid data found when processing input
TaskCfgVTT(uuid='febd86e482', name='F:/混音/【电子音乐】手把手教你母带-p10-80.mp4', dirname='F:/混音', noextname='【电子音乐】手把手教你母带-p10-80', basename='【电子音乐】手把手教你母带-p10-80.mp4', ext='mp4', target_dir='F:/_video_out/混音/【电子音乐】手把手教你母带-p10-80-mp4', cache_folder='C:/Users/PC/Desktop/pyvid/tmp/6580/febd86e482', is_cuda=True, source_language='英语', source_language_code='en', source_sub='F:/_video_out/混音/【电子音乐】手把手教你母带-p10-80-mp4/en.srt', source_wav='C:/Users/PC/Desktop/pyvid/tmp/6580/febd86e482/en.wav', source_wav_output='F:/_video_out/混音/【电子音乐】手把手教你母带-p10-80-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='F:/_video_out/混音/【电子音乐】手把手教你母带-p10-80-mp4/zh-cn.srt', target_wav='C:/Users/PC/Desktop/pyvid/tmp/6580/febd86e482/target.wav', target_wav_output='F:/_video_out/混音/【电子音乐】手把手教你母带-p10-80-mp4/zh-cn.m4a', translate_type=4, tts_type=1, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=1, model_name='large-v3', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=1, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='F:/_video_out/混音/【电子音乐】手把手教你母带-p10-80-mp4/【电子音乐】手把手教你母带-p10-80.mp4', novoice_mp4='C:/Users/PC/Desktop/pyvid/tmp/6580/febd86e482/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='C:/Users/PC/Desktop/pyvid/tmp/6580/febd86e482/vocal.wav', clear_cache=True, background_music='', subtitle_type=1, only_out_mp4=True, recogn2pass=True, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.19045-SP0
version:v4.01
frozen:True
language:zh
root_dir:C:/Users/PC/Desktop/pyvid

3 Replies

错误原因是视频文件名包含中文及特殊符号 【】,导致 FFmpeg 命令行解析失败。

解决方案

  1. 重命名视频文件:将原视频名改为纯英文字母和数字的组合,例如 music-mastering-p10-80.mp4,移除所有中文、空格、【】 等符号。
  2. 移动视频到浅层目录:确保视频文件所在目录路径不含中文、空格和特殊符号,例如 F:\videos\
  3. 清理缓存后重试:主界面勾选 清理已生成,使软件强制重新处理,不使用旧的临时文件。

请查阅相关文档:

收到 谢谢

不客气,后续有问题随时提出。

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. Dondate: ko-fi.com/jianchang512

Related resource