对于 VLC 来说,“PTS 超出范围”是什么意思?

对于 VLC 来说,“PTS 超出范围”是什么意思?

我的 VLC (v2.0.6) 显示了许多不同的错误,例如这些

主音频输出警告:PTS 超出范围 [...] 掉线

主音频输出警告:计算的 PTS 超出范围 [...] 清除

这些错误会导致音频故障。PTS 代表什么?如何解决此错误?

这是我的日志的一部分,

[0x7fcef4000978] main audio output warning: computed PTS is out of range (121844), clearing out
[0x7fcef4000978] main audio output warning: PTS is out of range (121844), dropping buffer
[0x7fcef4000978] main audio output warning: computed PTS is out of range (122275), clearing out
[0x7fcef4000978] main audio output warning: PTS is out of range (102275), dropping buffer
[0x7fcef4000978] main audio output warning: computed PTS is out of range (122650), clearing out
[0x7fcef4000978] main audio output warning: PTS is out of range (82650), dropping buffer
[0x7fcef4000978] main audio output warning: computed PTS is out of range (123016), clearing out
[0x7fcef4000978] main audio output warning: PTS is out of range (63016), dropping buffer
[0x7fcef4000978] main audio output warning: computed PTS is out of range (123408), clearing out
[0x7fcef4000978] main audio output warning: PTS is out of range (43408), dropping buffer
[0x7fcef4000978] main audio output warning: computed PTS is out of range (124218), clearing out
[0x7fcef4000978] main audio output warning: PTS is out of range (24218), dropping buffer
[0x7fcef4000978] main audio output warning: computed PTS is out of range (125181), clearing out
[0x7fcef4000978] main audio output warning: PTS is out of range (5181), dropping buffer
[0x7fcef4000978] main audio output warning: computed PTS is out of range (126122), clearing out
[0x7fcef4000978] main audio output warning: PTS is out of range (-13878), dropping buffer
[0x7fcef4000978] main audio output warning: computed PTS is out of range (126720), clearing out
[0x7fcef4000978] main audio output warning: PTS is out of range (-33280), dropping buffer
[0x7fcef4000978] main audio output warning: computed PTS is out of range (127091), clearing out

答案1

VideoLan 错误追踪器—— 这是谷歌上针对此错误信息搜索到的第二个结果。

您可能正在播放带有流的视频文件PES封包基本流)。由于这些数据的设计限制,它们无法正确同步。因此,当您的视频以不规则的速率播放时,或者当专用硬件无法保持流同步时,软件会注意到(当为时已晚)它们不同步,并丢弃音频缓冲区中的帧以修复它。

几乎所有的图形驱动程序都会在帧速率中产生一些延迟或抖动,即使如此,驱动显示定时的压电石英晶体也无法与音频定时晶体完全匹配,因此,如果软件没有数据来使音频和视频与视频文件中的数据保持同步,就会遇到这样的问题。

请注意,有非常昂贵的硬件可能能够在硬件定时级别保持流同步,但这些系统通常用于工作室的制作团队。

相关内容