Jump to content
  • Advertisement
Sign in to follow this  
KaGeRo

Help in work over AVI files.

This topic is 4830 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Could somebody help me in Win32API with AVI functions? I want to join some avi files in one. I found function AVISave, but can`t understand what should I write in string LPAVICOMPRESSOPTIONS lpOptions Where can I take this param? Or does anyone knows some other ways to join some files? Will be very thankful to any answer...

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by KaGeRo
Could somebody help me in Win32API with AVI functions?
I want to join some avi files in one. I found function AVISave, but can`t understand what should I write in string
LPAVICOMPRESSOPTIONS lpOptions



It's not a string, it's a long pointer (LP) to an AVICOMPRESSOPTIONS struct, which defines options about your video file. You can set them before passing it into the AVISaveOptions call.

More info on the struct can be found here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_avicompressoptions_str.asp

Hope that helps.

Share this post


Link to post
Share on other sites
Could you gave a fragment of code, please...

Or is there some other ways to join 2 .avi files in one?

Share this post


Link to post
Share on other sites
Could you gave a fragment of code, please...

Or is there some other ways to join 2 .avi files in one?

Share this post


Link to post
Share on other sites
Well, I don't know about that, since I have never done it.

An approach that might work is opening the two files, checking if their codecs and bitrates and everything are the same. Then strip the header from the second, attach all its bytes to the first, and update the header of the first with the new total number of frames and so on.

Of course, this could be an overly simplistic method of doing it, have you asked around on Divx/Video editing forums and the like?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!