Re: Pause and resume AVI capture (an old chestnut )
- From: rep_movsd <rep.movsd@xxxxxxxxx>
- Date: Sat, 08 Sep 2007 08:18:47 -0000
Hi
Sorry to be beating a dead? horse, but , I still cant get it to
work...
Heres my fillbuffer logic...
1) Wait until its time to render the new frame ( using Advisetime for
laststreamtime + frametime (using the system clock) , I have found
this way gives the most accurate "sampling" unlike Sleep() )
2) Capture the screen
3) Timestamp with currenttime from a internal clock ( I have a private
CBaseReferenceClock member for this)
4) if the state is paused then set the delta of the private clock back
by 1 frame time ( so in effect the timestamp is constant when
paused ), keep a count of the number of "paused" frames
5) If we went from paused to running, set the clock forward by the
number of paused frames * frametime
so timestamps go monotonically upward but stay constant when paused,
then "jump" back to the real time.
or in other words, the current timestamp is the streamtime minus the
total time the graph was paused.
But what i notice is that the fillbuffer gets called regularly when
playing and paused, the moment it is resumed, i get a few calls then
it stalls ( also the internal CbaseReferenceclock doesnt like to jumb
by more than 1 second and issues a warning in the debug output ) and
thereafter the function seems to be called in bursts ... and
irregularly or completely stall.
What would a capture filter do?
( Im going to check what it would do ..)
Vivek
.
- Follow-Ups:
- Re: Pause and resume AVI capture (an old chestnut )
- From: rep_movsd
- Re: Pause and resume AVI capture (an old chestnut )
- References:
- Pause and resume AVI capture (an old chestnut )
- From: rep_movsd
- Re: Pause and resume AVI capture (an old chestnut )
- From: The March Hare [MVP]
- Re: Pause and resume AVI capture (an old chestnut )
- From: rep_movsd
- Re: Pause and resume AVI capture (an old chestnut )
- From: rep_movsd
- Re: Pause and resume AVI capture (an old chestnut )
- From: rep_movsd
- Re: Pause and resume AVI capture (an old chestnut )
- From: Chris P.
- Re: Pause and resume AVI capture (an old chestnut )
- From: rep_movsd
- Re: Pause and resume AVI capture (an old chestnut )
- From: Chris P.
- Pause and resume AVI capture (an old chestnut )
- Prev by Date: Re: Multi-Core Processor and InfTee Filter, need help!
- Next by Date: I420 to YUY2 and rendering on VMR9
- Previous by thread: Re: Pause and resume AVI capture (an old chestnut )
- Next by thread: Re: Pause and resume AVI capture (an old chestnut )
- Index(es):
Relevant Pages
|