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

115.54* Posted at: 14 hours ago

non-negative timestamp expected:Traceback (most recent call last):
File "videotrans\process\_stt_faster.py", line 117, 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 46, in run
File "videotrans\task\_stage_recogn.py", line 62, in recogn
File "videotrans\recognition\__init__.py", line 205, in run
File "videotrans\recognition\_base.py", line 91, in run
File "videotrans\recognition\_whisper.py", line 38, in _exec
File "videotrans\recognition\_whisper.py", line 124, in _faster
File "videotrans\configure\base.py", line 272, in _new_process
videotrans.configure.excepts.VideoTransError: non-negative timestamp expected:Traceback (most recent call last):
File "videotrans\process\_stt_faster.py", line 117, 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]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/BaiduNetdiskDownload/Constant效果大百科/ori/19——粒子噪波震荡.mp4,
输出结果保存到文件夹: D:/BaiduNetdiskDownload/Constant效果大百科/ori/19——粒子噪波震荡-mp4,
临时文件夹: D:/SetupFiles/pyvideotrans/win-pyvideotrans-v4.05-0711/tmp/436/2a03c3c697
已选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
代理地址:


=
system:Windows-10-10.0.26100-SP0
version:v4.05
frozen:True
language:zh
root_dir:D:/SetupFiles/pyvideotrans/win-pyvideotrans-v4.05-0711

1 Replies

这是由于音频时间戳出现负值导致 faster-whisper 内部断言失败。常见于 VAD 预分割后产生长度极短或异常的音频片段。

解决方案:

  1. 进入 菜单 → 工具 → 高级选项 → 语音识别参数取消勾选 "Whisper预分割音频?"(即不使用VAD预分割),保存后重试。
  2. 如果仍报错,将 ASR 模型从 large-v3-turbo 切换为 mediumlarge-v3,并确保计算数据类型为 float16
  3. 检查原始视频文件 19——粒子噪波震荡.mp4 的音频轨道是否正常(可用播放器试听确认无异常)。
  4. 若以上均无效,尝试更新至最新版本(当前 v4.05,最新为 v4.05-0711,请从官网下载补丁覆盖)。

请查阅相关文档:

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