Re: mpeg2 demux output pin buffer size



On Tue, 16 Sep 2008 23:46:39 -0700 (PDT), dev <krt.dev@xxxxxxxxx>
wrote:

1.Buffering input media samples data into temporary buffer and
returning S_FALSE from transofrm for such media samples.Is this
approach right for buffering?

If you're going to stick with a filter derived from CTransformFilter,
then probably you probably want to override Receive to handle the
allocation of output samples only as needed.

2. When the video filter has so much data to be buffered would not the
audio/video sync go for a toss ? Can I control this in any way?

Sync should be ok. The issue is that you need to read more of the file
before you get the first frame output and so I suppose you think that
audio will have already started.

In fact, the cueing mechanism allows for this. The graph enters pause
mode and data flows through the decoders. It does not complete the
transition to Run until all renderers have received data. The increase
in buffering will increase the time for the pause to complete, and so
might slow down startup of the video very slightly, but the video and
audio will both start at the same time.

3. Do I have to handle timestamping manually for this?

I don't see any reason why you should. You just need to ensure that
the input timestamps you receive from the demux are retained with the
frame so they can be correctly attached to the outgoing buffer that
corresponds.

G
.



Relevant Pages

  • Re: How to pause/resume playing from within my source filter?
    ... The graph manager cues the graph by pausing. ... Generally, filters except ... transition to pause to be complete, ... a "buffering" UI indicator). ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Print question
    ... unbuffer output, so it appears immediately, rather than a line at a time. ... You'd think this would print one letter at a time, with a pause in between - ... The FAQ I mentioned addresses the buffering question. ...
    (comp.lang.perl.misc)
  • Re: How to stop Media Center from buffering live TV for 30 minutes
    ... >How do I stop Media Center from buffering for 30 minutes a live TV picture. ... >I do not want to rewind or pause the picture, so there is no need to buffer. ...
    (microsoft.public.windows.mediacenter)
  • Re: How to pause/resume playing from within my source filter?
    ... pause the graph and wait for the pause to complete. ... This means handling the GetState method correctly. ... Then if the filter is still paused and not ready, ... click play, displays buffering status, then starts playing after a bit) except ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: tail -f | less
    ... I need to display a logfile as it's being dumped, and give the user the ability to pause and scroll back. ... The data needs not be kept but can be dumped into a ring buffer. ... There's some buffering issues here, but they can be solved, with a bit of effort. ...
    (comp.os.linux.misc)