#4978 TaskCfgVTT(uuid='50a926720d', name='F:/remix/Remix1.mp4', dirname='F:/remix', noextname='Remix1', basename='Remix1.mp4',

166.0* Posted at: 14 hours ago

合并阶段出错 opening input: Invalid data found when processing input opening input file C:/Users/PC/Desktop/pyvid/tmp/9212/50a926720d/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/9212/50a926720d/end-edit.srt', 'C:/Users/PC/Desktop/pyvid/tmp/9212/50a926720d/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/9212/50a926720d/end-edit.srt. opening input files: Invalid data found when processing input
TaskCfgVTT(uuid='50a926720d', name='F:/remix/Remix1.mp4', dirname='F:/remix', noextname='Remix1', basename='Remix1.mp4', ext='mp4', target_dir='F:/yifanyi/Remix/Remix1-mp4', cache_folder='C:/Users/PC/Desktop/pyvid/tmp/9212/50a926720d', is_cuda=True, source_language='英语', source_language_code='en', source_sub='F:/yifanyi/Remix/Remix1-mp4/en.srt', source_wav='C:/Users/PC/Desktop/pyvid/tmp/9212/50a926720d/en.wav', source_wav_output='F:/yifanyi/Remix/Remix1-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='F:/yifanyi/Remix/Remix1-mp4/zh-cn.srt', target_wav='C:/Users/PC/Desktop/pyvid/tmp/9212/50a926720d/target.wav', target_wav_output='F:/yifanyi/Remix/Remix1-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:/yifanyi/Remix/Remix1-mp4/Remix1.mp4', novoice_mp4='C:/Users/PC/Desktop/pyvid/tmp/9212/50a926720d/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='C:/Users/PC/Desktop/pyvid/tmp/9212/50a926720d/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

5 Replies

此错误是因为 end-edit.srt 字幕文件损坏或格式错误,导致 ffmpeg 无法读取并转为 ASS 字幕格式,最终合成失败。

解决方案:

  1. 手动检查该文件(路径:C:/Users/PC/Desktop/pyvid/tmp/9212/50a926720d/end-edit.srt),用记事本打开,确认内容是否为空、混乱或包含非标准字符。如有问题,可删除该文件后重新执行。
  2. 关闭“二次识别”:您当前启用了 recogn2pass=True,该步骤生成的临时字幕文件容易出现问题。在主界面取消勾选“二次识别”后再试。
  3. 确保路径无特殊符号:输入文件 Remix1.mp4 位于 F:/remix/,输出到 F:/yifanyi/,路径均不含中文、空格或特殊符号,暂时排除路径问题,但可确认临时目录 C:/Users/PC/Desktop/pyvid/tmp/9212/... 是否正常(建议不要放在桌面,可移至 D:/ 下)。
  4. 清理缓存:在主界面左上角勾选“清理已生成”,强制重新处理所有阶段。

若仍无效,请提供 end-edit.srt 文件内容的前10行或日志文件完整内容以便进一步分析。

好的 谢谢

如果问题得到解决,请按上述步骤执行。如仍有疑问,欢迎随时提供日志文件(logs/ 文件夹中最新日志的底部30行)。

1
00:00:10,399 --> 00:00:15,160
All right, so with the matching EQ mode of Pro -Q

2
00:00:15,160 --> 00:00:17,560
by a FabFilter, we can calculate the

3
00:00:17,560 --> 00:00:22,240
differences between the frequency ranges of our reference and our to -be

4
00:00:22,240 --> 00:00:23,120
-mastered track

5
00:00:23,380 --> 00:00:28,320
And now we have a huge difference in the overall loudness and we are trying to adjust

6
00:00:28,320 --> 00:00:29,480
for that in the beginning

7
00:00:29,480 --> 00:00:33,500
so that we are able to compare those frequencies in a better way

8
00:00:33,640 --> 00:00:38,500
So I'm going back into the default mode and now we are bringing down the volume

9
00:00:38,500 --> 00:00:39,820
on our reference track

10
00:00:45,740 --> 00:00:49,980
Now you can see the red line is our reference track, the other line is our master

你提供的 SRT 文件内容格式是正常的,但 ffmpeg 在读取时出错,常见原因包括:

  1. 文件编码问题:SRT 文件可能是带有 BOM 的 UTF-8 或 ANSI 编码,导致 ffmpeg 无法解析。请用记事本打开该文件,另存为 UTF-8 无 BOM 格式后再试。
  2. 文件路径特殊字符或过长:临时目录 C:/Users/PC/Desktop/pyvid/tmp/9212/50a926720d/ 路径较长且含数字和横线,可能触发 Windows 路径长度限制。建议将软件根目录移动到 D 盘根目录(如 D:/pyVideoTrans/)并重新执行。
  3. ffmpeg 版本或数据损坏:可能是 ffmpeg 二进制文件异常或临时文件损坏。尝试删除该文件夹下的所有文件(C:/Users/PC/Desktop/pyvid/tmp/9212/),重新运行并勾选 “清理已生成”
  4. 关闭“二次识别”:你正在使用 recogn2pass=True,该步骤生成的临时字幕经常导致此类错误。在主界面取消勾选 "二次识别" 后再试。

如果仍然失败,请提供 logs/ 文件夹中最新日志文件的完整内容(复制最后30行即可),以便进一步定位。

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