Re: Network source filter

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Mon, 22 Dec 2008 22:27:30 -0800 (PST), dev <krt.dev@xxxxxxxxx>
wrote:

I have buffers of size 1316bytes 800 in number.I read in to them in a
thread .
The buffers are dispatched out in FillBuffer call. Both read and
writes synched using semaphores.

I tried the following:
1. output one buffer at once from read pool, 1 buffer of 1316 is
copied into IMediaSample in FillBuffer.
Result: Jerky play out


Of course you could have lots of things wrong, but it is certainly
likely that you would get jerky playback even if the network code was
perfect if your timestamps are late on arrival at the renderers. You
need to think about how you timestamp your data in the playback graph
so that it is comfortably ahead of stream time. With a live source,
you are likely to do this by calling the filter's StreamTime method
and adding on 50-100ms for the first timestamp and then setting all
the other timestamps relative to that.

G
.



Relevant Pages

  • Re: [RFC PATCH 2/6] Driver Tracing Interface (DTI) code
    ... How do you plan to use these timestamps to reorder events across CPUs? ... relay buffer, I'd need a relay_unreserveto remove the unused portion. ... buffers into other buffers at all anyway? ... A solution that would export the static buffers separately to user-space ...
    (Linux-Kernel)
  • Re: Network source filter
    ... The buffers are dispatched out in FillBuffer call. ... likely that you would get jerky playback even if the network code was ... perfect if your timestamps are late on arrival at the renderers. ... He said it was an MPEG2 transport stream. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: CSourceStream, FillBuffer & SetTime
    ... The AvgTimePerFrame in the video header is zero. ... the downstream chain and the time it takes for FillBuffer() ... The timestamps should relate to the stream time (that is the ...
    (microsoft.public.win32.programmer.directx.video)