CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2007
    Location
    California
    Posts
    136

    Remove frames from AVI files

    Hi all,

    I am using AVIStreamWrite() to write frames to a AVI file, but I can't seem to find an API that removes frames.

    Let's say I got 7 frames to insert to my AVI file, and here is the steps on how I insert frames

    frame 1 comes, put stuff into frame 1
    frame 2 comes, put stuff into frame 2
    frame 3, it's empty, skip a frame
    frame 4, it's empty, skip a frame
    frame 5, it's empty, skip a frame
    frame 6 comes, put stuff into frame 3
    frame 7 comes, put stuff into frame 4

    After these series of insertion, I have 5 frames total in my AVI file, but my 5th frame is empty, so I would like to remove it if possible.

    Any WINAPI for removing frames?

    Thank you,
    kab

  2. #2
    Join Date
    Dec 2003
    Location
    Syracuse, NY
    Posts
    400

    Re: Remove frames from AVI files

    Maybe EditStreamCut

    I'm not sure, haven't worked with AVI files.
    "Windows programming is like going to the dentist: You know it's good for you, but no one likes doing it."
    - Andre LaMothe

    DLL For Beginners(UPDATED)
    Please use CODE tags
    Rate me if I've helped.

  3. #3
    Join Date
    Jun 2007
    Location
    California
    Posts
    136

    Re: Remove frames from AVI files

    Quote Originally Posted by Notsosuperhero View Post
    Maybe EditStreamCut

    I'm not sure, haven't worked with AVI files.
    Hi Notsosuperhero,

    Yes, it seem just like the API I need.

    Thank you,
    kab

  4. #4
    Join Date
    Dec 2003
    Location
    Syracuse, NY
    Posts
    400

    Re: Remove frames from AVI files

    You're welcome.
    "Windows programming is like going to the dentist: You know it's good for you, but no one likes doing it."
    - Andre LaMothe

    DLL For Beginners(UPDATED)
    Please use CODE tags
    Rate me if I've helped.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured