Re: Network source filter
- From: Geraint Davies <geraintd@xxxxxxxxxx>
- Date: Tue, 23 Dec 2008 10:57:12 +0000
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
.
- Follow-Ups:
- Re: Network source filter
- From: Tim Roberts
- Re: Network source filter
- From: dev
- Re: Network source filter
- References:
- Network source filter
- From: dev
- Re: Network source filter
- From: Tim Roberts
- Re: Network source filter
- From: dev
- Re: Network source filter
- From: dev
- Network source filter
- Prev by Date: Re: delay in calling fillbuffer() in the source filter
- Next by Date: Re: Can any one tell I am going in the correct way or not!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- Previous by thread: Re: Network source filter
- Next by thread: Re: Network source filter
- Index(es):
Relevant Pages
|