#9003 语音识别阶段出错[faster-whisper(本地)] non-negative timestamp expected:Traceback (most recent call last): File "videotrans\proces

2407**200 Posted at: 1 hour ago

语音识别阶段出错[faster-whisper(本地)] non-negative timestamp expected:Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 239, in faster_whisper
File "faster_whisper\transcribe.py", line 460, in transcribe
File "faster_whisper\utils.py", line 123, in format_timestamp
AssertionError: non-negative timestamp expected

Traceback (most recent call last):

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

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

File "videotrans\task\trans_create.py", line 322, in recogn

File "videotrans\recognition\__init__.py", line 190, in run

File "videotrans\recognition\_base.py", line 94, in run

File "videotrans\recognition\_whisper.py", line 36, in _exec

File "videotrans\recognition\_whisper.py", line 109, in _faster

File "videotrans\configure\base.py", line 253, in _new_process

videotrans.configure.excepts.VideoTransError: non-negative timestamp expected:Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 239, in faster_whisper
File "faster_whisper\transcribe.py", line 460, in transcribe
File "faster_whisper\utils.py", line 123, in format_timestamp
AssertionError: non-negative timestamp expected
TaskCfgVTT(uuid='6a1bf74d11', name='J:/开放平台精选/个人节目/刘永杰/游戏节目/001奇奇解说我的世界/PrestonPlayz/001/三段切割/I Evolved From FAT to MUSCULAR in Minecraft!_Part00.mp4', dirname='J:/开放平台精选/个人节目/刘永杰/游戏节目/001奇奇解说我的世界/PrestonPlayz/001/三段切割', noextname='I Evolved From FAT to MUSCULAR in Minecraft!_Part00', basename='I Evolved From FAT to MUSCULAR in Minecraft!_Part00.mp4', ext='mp4', target_dir='J:/开放平台精选/个人节目/刘永杰/游戏节目/001奇奇解说我的世界/PrestonPlayz/001/三段切割/分割的/I Evolved From FAT to MUSCULAR in Minecraft!_Part00-mp4', cache_folder='F:/videotran/trs/tmp/51516/6a1bf74d11', is_cuda=True, source_language='英语', source_language_code='en', source_sub='J:/开放平台精选/个人节目/刘永杰/游戏节目/001奇奇解说我的世界/PrestonPlayz/001/三段切割/分割的/I Evolved From FAT to MUSCULAR in Minecraft!_Part00-mp4/en.srt', source_wav='F:/videotran/trs/tmp/51516/6a1bf74d11/en.wav', source_wav_output='J:/开放平台精选/个人节目/刘永杰/游戏节目/001奇奇解说我的世界/PrestonPlayz/001/三段切割/分割的/I Evolved From FAT to MUSCULAR in Minecraft!_Part00-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='J:/开放平台精选/个人节目/刘永杰/游戏节目/001奇奇解说我的世界/PrestonPlayz/001/三段切割/分割的/I Evolved From FAT to MUSCULAR in Minecraft!_Part00-mp4/zh-cn.srt', target_wav='F:/videotran/trs/tmp/51516/6a1bf74d11/target.wav', target_wav_output='J:/开放平台精选/个人节目/刘永杰/游戏节目/001奇奇解说我的世界/PrestonPlayz/001/三段切割/分割的/I Evolved From FAT to MUSCULAR in Minecraft!_Part00-mp4/zh-cn.m4a', translate_type=4, tts_type=9, volume='+100%', pitch='+0Hz', voice_rate='+0%', voice_role='clone', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v3', shibie_audio=None, remove_noise=False, enable_diariz=True, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='J:/开放平台精选/个人节目/刘永杰/游戏节目/001奇奇解说我的世界/PrestonPlayz/001/三段切割/分割的/I Evolved From FAT to MUSCULAR in Minecraft!_Part00-mp4/I Evolved From FAT to MUSCULAR in Minecraft!_Part00.mp4', novoice_mp4='F:/videotran/trs/tmp/51516/6a1bf74d11/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal=None, clear_cache=True, background_music='', subtitle_type=0, only_out_mp4=True, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=2.3)

1 Replies

#1 DeepSeek reply at 1 hour ago

该报错来自 faster-whisper 内部 format_timestamp 的断言(non-negative timestamp expected),即识别过程中出现了负值时间戳。此错误在知识库中无对应收录条目,暂无法确定具体原因(可能是音频切片异常、VAD 切分异常或模型/环境问题)。

请先补充以下信息以便定位:

  1. 软件版本号(主界面左上角或 菜单-关于)。
  2. 软件目录下 logs/ 文件夹中对应日期日志文件底部约 30 行报错内容。
  3. 该视频是否本身可正常播放、有无音轨、是否为剪辑/切割后的片段(日志中路径显示为 三段切割 目录下的文件,建议先确认该片段音频完整)。

在等待确认期间,可先做以下排除性尝试(仅用于缩小范围,非确定原因):

  1. 将 识别模型 由 large-v3 降为 medium 或 small 重试。
  2. 换用 openai-whisper(内置) 渠道,或 Qwen-ASR(内置) 渠道重试。
  3. 取消勾选 CUDA加速,用 CPU 跑一次同一片段,判断是否为 GPU 环境问题。
  4. 取消勾选 设置更多参数 中的 识别说话人 后重试。
  5. 将该视频另存/转封装为标准 H.264 + AAC 的 mp4(或先只提取音频试转录),排除源文件音频损坏。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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

Related resource