Directshow Push Source Filter, sync Audio and Video Streams

490 views Asked by At

I develop a directshow filter that have audio and video output pins.

If i connect only one of those pins to related renderer. playing is very smooth and correct.

But when i connect both pins to renderers, playing is failed.

I know i need to synchronize two streams (audio & video) with usage of timestamp of media samples and GetLatency function. but i don't how use and config those.

Thanks for any help or suggestion.

1

There are 1 answers

4
Roman Ryltsov On BEST ANSWER

The given information suggests that you push data from the same thread or otherwise ignore pre-buffering and blocking taking place during delivery. This would add interference between the streams, be sure to push data from independent worker threads.