praks411
praks411

Reputation: 1992

PushSource filter pushing sample too for render

I'm bit new to directshow. I'm using PushSource filter sample provided with DirectShow to push sequence of bmp image to avi file. But before that I'm trying to see whether filter is able to render the samples. The render is able to display just the first frame, though the filter is running properly and filling the buffers. I put printf at various stages to see the flow.
I feel that PushSource is running too fast and render is getting hanged.
Please provide some suggesting how to synchronize the two.
Also let me know if I'm missing something.

Upvotes: 1

Views: 192

Answers (1)

Roman Ryltsov
Roman Ryltsov

Reputation: 69724

You are likely to miss time stamps, you are omitting them or possibly leaving garbage where they are supposed to be correct. You will want the pushing filter to stamp samples correctly, so that multiplexers and renderers have no doubts as for sample presentation times.

Upvotes: 1

Related Questions