Click to See Complete Forum and Search --> : Remove frames from AVI files


kabilius
January 13th, 2009, 09:46 AM
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

Notsosuperhero
January 13th, 2009, 12:24 PM
Maybe EditStreamCut (http://msdn.microsoft.com/en-us/library/ms708464(VS.85).aspx)

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

kabilius
January 13th, 2009, 01:28 PM
Maybe EditStreamCut (http://msdn.microsoft.com/en-us/library/ms708464(VS.85).aspx)

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

Hi Notsosuperhero,

Yes, it seem just like the API I need.

Thank you,
kab

Notsosuperhero
January 13th, 2009, 08:34 PM
You're welcome.