#6477 non-negative timestamp expected:Traceback (most recent call last): File

2408:**:c384 Posted at: 1 hour ago

non-negative timestamp expected:Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 118, in faster_whisper
File "faster_whisper\transcribe.py", line 460, in transcribe
File "faster_whisper\utils.py", line 124, in format_timestamp
AssertionError: non-negative timestamp expected

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 62, in run
File "videotrans\task\_stage_recogn.py", line 62, in recogn
File "videotrans\recognition\__init__.py", line 206, in run
File "videotrans\recognition\_base.py", line 92, in run
File "videotrans\recognition\_whisper.py", line 41, in _exec
File "videotrans\recognition\_whisper.py", line 129, in _faster
File "videotrans\configure\base.py", line 267, in _new_process
videotrans.configure.excepts.VideoTransError: non-negative timestamp expected:Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 118, in faster_whisper
File "faster_whisper\transcribe.py", line 460, in transcribe
File "faster_whisper\utils.py", line 124, in format_timestamp
AssertionError: non-negative timestamp expected

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: C:/Users/Administrator/Desktop/翻译片段/6_new.mp4,
输出结果保存到文件夹: C:/Users/Administrator/Desktop/翻译片段/翻译输出/6_new-mp4,
临时文件夹: D:/win-pyvideotrans-v4.08/tmp/2204/02d25daaf1
未选 清理已存在
已启用CUDA加速
未选 降噪
已选 识别说话人,最大说话人数量不限制
语音识别:faster-whisper(内置), model_name: large-v3, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Qwen3-TTS(内置), 角色:clone, 配音语言:英语, 未选 二次语音识别
音量:+100%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入硬字幕
已选 仅输出mp4
代理地址:


=
system:Windows-10-10.0.19045-SP0
version:v4.08
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v4.08

1 Replies

这是 faster-whisper 在语音识别阶段收到负时间戳导致的断言错误,常见原因是音频切片时生成了负的时间轴(如视频音轨时间戳异常、预分割/VAD 切分异常),或使用了上次遗留的损坏缓存。

请按顺序尝试:

  1. 勾选主界面“清理已生成”,重新执行,排除旧缓存/临时切片干扰。
  2. 高级选项 → 语音识别参数:取消勾选“Whisper预分割音频”,或调整“最长语音持续秒数 / 最短语音持续毫秒”为合理区间(最短小于最长),再重试。
  3. 暂时关闭“识别说话人”(设置更多参数里取消勾选),因为说话人分离可能与预分割共同作用产生异常片段。
  4. 用第三方工具将原视频重新转码为标准的 H.264/MP4(或转成 WAV 音频)后再导入软件,修正可能为非 0 起点的音轨时间戳;视频文件名也建议改为纯英文/数字的简单路径。
  5. 如果仍失败,请升级至 v4.08-0802 或更新版本,并用完整包覆盖安装(配置文件在 videotrans/ 下的 json 文件,可先备份)。

如果以上均无效,请提供软件安装目录下 logs/ 文件夹中最新日志文件底部约30行报错信息,以及软件左上角版本号(当前显示 v4.08),以便进一步分析。

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 via ko-fi.com

Dondate via PayPal

Related resource