我可以将 MFTIME 与实际系统时间相关联吗?

Can I relate MFTIME to the real system time?

我正在编写一些代码,将样本从 Windows Media Foundation 转发到 live555。 MF 使用其 100 ns 时间戳,而 live555 使用 "real time" 形式的 struct timeval。我知道如何从 GetSystemTime() 伪造后者,但我想知道是否可以从 MF 采样时间和传递给 IMFClockStateSink::OnClockStart 的数据中推导出 "real time"?

Media Foundation also provides a presentation time source based on the system clock.

虽然此演示源提供基于系统时钟的时间戳(可能使用或与 timeGetTime 共享源,但我没有检查),但此源不是唯一的选择。

所以你基本上不应该假设时钟时间和当前系统时间之间的相关性"absolute"。时间戳应该只提供 10 MHz 速率的相对时间增量。

If the presentation clock uses some other time source, ...