directx sdk中由篇介绍: For playback and preview, it is important to maintain the correct playback rate, and to synchronize audio and video streams. To this end, each media sample carries a time stamp, which specifies the presentation time for that sample. The Filter Graph Manager maintains a clock for the entire graph. This clock is called the reference clock, and the time that it reports is called the reference time. Reference time is measured in units of 100 nanoseconds.In some filter graphs, a filter can provide the reference clock. For example, the audio renderer can usually provide an accurate clock based on the sound card. If no filter can provide a clock, the Filter Graph Manager uses a default clock (based on the system time). 另外更详细的在:directx sdk->direct show->using directshow->write directshow filters->timecode and clocks in directshow
DWORD dwOffset; // 在桢中的偏移位
char[11] szTC; // 在偏移值中的时间码的值
// hh:mm:ss:ff是非掉桢的格式 hh:mm:ss;ff 是掉桢的格式
} TIMECODE;
例如,这里可以给出一个视频捕获流中的时间码: {0, 02:00:00:02},
{16305, 15:21:13:29} // 位于16305桢的时间格式使用了这张表,任何桢的时间码都会很好计算。 B、还有一种做法就是将时间码作为视频和音频数据写入。这种我们不推荐使用因此不作介绍了。被写入时间码的文件就可以编辑,复合,同步等操作了。这里就写到这里,对于我们理解时间码已经足够了。其它的很多是关于标准的介绍,大家感兴趣可以参阅一下。
REFERENCE_TIME 这个东西 到底怎么用啊
能不能多给我点这方面的文章! 谢谢
For playback and preview, it is important to maintain the correct playback rate, and to synchronize audio and video streams. To this end, each media sample carries a time stamp, which specifies the presentation time for that sample. The Filter Graph Manager maintains a clock for the entire graph. This clock is called the reference clock, and the time that it reports is called the reference time. Reference time is measured in units of 100 nanoseconds.In some filter graphs, a filter can provide the reference clock. For example, the audio renderer can usually provide an accurate clock based on the sound card. If no filter can provide a clock, the Filter Graph Manager uses a default clock (based on the system time).
另外更详细的在:directx sdk->direct show->using directshow->write directshow filters->timecode and clocks in directshow