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

2408:**:2852 Posted at: 6 hours 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 61, 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/翻译片段/真千金第三十九集.mp4,
输出结果保存到文件夹: C:/Users/Administrator/Desktop/翻译片段/翻译输出/真千金第三十九集-mp4,
临时文件夹: D:/win-pyvideotrans-v4.08/tmp/42756/d0e5bfc3a3
未选 清理已存在
已启用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

3 Replies

该报错发生在 faster-whisper 语音识别阶段:faster_whisper/utils.pyformat_timestamp 在格式化时间戳时接收到了负数时间戳,触发了 AssertionError: non-negative timestamp expected

此报错暂无法从现有信息中确定具体原因,需结合完整日志进一步分析。建议按以下步骤排查:

  1. 确认软件已更新到最新补丁版本 v4.08-0802(软件左上角版本号仍显示 v4.08,若安装的是早期 v4.08,请下载最新补丁包覆盖完整版目录)。
  2. 提供软件安装目录下 D:/win-pyvideotrans-v4.08/logs/ 文件夹中最新的日志文件(复制底部约30行报错信息),以便进一步定位。

麻烦提供给我最新安装包的地址

软件最新完整版及补丁包下载地址:

https://pyvideotrans.com/downpackage

建议下载完整版压缩包(约2.7GB),解压到纯英文路径(如 D:\pyVideoTrans)后运行 sp.exe。若已有旧版,也可下载补丁包覆盖到完整版目录下使用。

请查阅相关文档:

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