Hi,
I'm developing a custom media foundation source that captures video and/or audio from some capture device. According to the instructions provided in MSDN (https://msdn.microsoft.com/en-us/library/windows/desktop/ms700134(v=vs.85).aspx) a live source should start with a timestamp of zero -
"The first sample should have a time stamp of zero."
However, from what I'm seeing, the media sources that are built in to media foundation (e.g. when I capture from my laptop webcam or microphone) are sending timestamps that seem more like GetTickCount64() * 10000. On some environments / devices, using this value for the initial timestamp is working well for me, but on some I'm seeing considerable differences (few minutes).
Since I would like to use my source in conjunction with standard sources (e.g. capture video using my custom source with audio from the standard microphone source) it is important for me to have aligned timestamps.
Can you please let me know how to set the timestamps correctly so that they will match the builtin sources ?
Thank you !
Eran