Re: Make multiple avi files in one run
- From: "Ronnie Turrentine" <RonnieTurrentine@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 25 Jul 2005 15:01:05 -0700
I think I've seen the CAviFile wrapper class you are using or at least a
variation of it.
If your CAviFile class has a AppendFrameFirstTime method that sets up the
AVI file, then it should reset the m_lSample (or lStart) parameter to 0.
BTW, sorry about the slow response, I didn't get notified of the reply for
some reason.
"Everett Joline" wrote:
> OK Ronnie & Rhett
> I'll experiment with the AVIStreamWrite lStart parameter
> to get the second instance to playback without a startup lag.
>
> That lStart parameter is a static member of the CAviFile::AppendFrameUsual
> function. Maybe if I make it a global and initialize it each time I start
> a new instance, that will do the trick. (But I don't really understand why)
>
> Thanks
> E-Jo
>
>
>
>
> "Everett Joline" <ejoline@xxxxxxxxxxxxx> wrote in message
> news:%23iJbVCljFHA.3448@xxxxxxxxxxxxxxxxxxxxxxx
> > Thanks much for your response Ronnie
> > I'm new to this subject, but I had assumed that by
> > deleting and reinitializing the AViFile it would forget any previous
> > parameters that were stored. So instead of doing it once
> > at the start and end of my program, I do it before/after each
> > avi file is generated. But it seems, as you say, that its memory
> > spans these gaps. I don't really attempt to set any params of
> > AviStreamWrite but if I did, I don't see one named framenumber.
> > How do I do that?
> >
> > Thanks,
> > E-Jo
> >
> > "Ronnie Turrentine" <RonnieTurrentine@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
> > message news:C63EE954-161D-4446-B2E2-A7EE94E826F4@xxxxxxxxxxxxxxxx
> >> First, you should try to call AVIFileInit and AVIFileExit only once, at
> >> the
> >> start of your program and at the end.
> >>
> >> The blank frames at the start of the AVI files may be caused by how you
> >> write the frames to the AVI File. What API are you using to do this? I
> >> assume AVIStreamWrite? If so, I believe the problem could be the frame
> >> number you provide to the call. Whenever you start a new AVI file, be
> >> sure
> >> to reset this counter to 0. If you don't, you will have empty frames to
> >> start with.
> >>
> >> Ronnie
> >
> >
>
>
>
.
- Follow-Ups:
- Re: Make multiple avi files in one run
- From: Everett Joline
- Re: Make multiple avi files in one run
- References:
- Make multiple avi files in one run
- From: Everett Joline
- RE: Make multiple avi files in one run
- From: Ronnie Turrentine
- Re: Make multiple avi files in one run
- From: Everett Joline
- Re: Make multiple avi files in one run
- From: Everett Joline
- Make multiple avi files in one run
- Prev by Date: Re: Looping Streamed Audio Using WaveOut
- Next by Date: Controling printers at a detailed level
- Previous by thread: Re: Make multiple avi files in one run
- Next by thread: Re: Make multiple avi files in one run
- Index(es):
Relevant Pages
|