Re: Make multiple avi files in one run

Tech-Archive recommends: Fix windows errors by optimizing your registry



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
> >
> >
>
>
>
.



Relevant Pages

  • Re: Creating AVI file from bitmaps
    ... an AVI file using DirectShow to be lacking. ... > For extracting the frames from the source file I use the AviFileWrapper ... > have the Mandelbrot example) By the way, the video is uncompressed RGB ...
    (microsoft.public.dotnet.languages.csharp)
  • writing avi file on ppc2005
    ... i want to make avi file by writing some frames in it. ... for this i parse one avi file frame by frame and write each frame using ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: exporting stills with timecode in file name
    ... timecode embedded in the audio track. ... will export frames to .bmp files with the timecode in the filename - ... but only if I convert the .avi file to .mov. ... Each tape is imported as all one video with no pre-set clips. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Missing the video frames
    ... .avi file, but in my final .AVI file the some of the ... frames are missing, this happens only in the case of the ... frames are missing int the resultant .AVI file. ... Are you using the SG in sample mode or buffer mode? ...
    (microsoft.public.win32.programmer.directx.video)
  • Extracting individual frames from a video clip (AVI)
    ... the form of an AVI file as input, and produce a series of still images ... I'm currently using JMF to do this, ... but even so the problem of skipping frames still ... and I think that extracting frames from a video clip should ...
    (comp.lang.java.programmer)