Jump to content


Photo

Avi Extract


  • Please log in to reply
14 replies to this topic

#1 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 17 December 2006 - 10:53 AM

This DLL allows you to extract frames from avi files to bitmaps.
You can choose the frame number to extract and the bitmap filename to save to.

It has information functions to get the width,height,number of frames, rate, FPS, number of streams from the file.

(link removed)

Edited by h0bbel, 19 September 2013 - 06:53 PM.

  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#2 cja

cja

    GMC Member

  • New Member
  • 91 posts

Posted 17 December 2006 - 07:37 PM

Wow, this would have been very useful for my GM Video Editing Program.
Great job!
  • 0

#3 Ruby

Ruby

    Ruby Software

  • New Member
  • 203 posts

Posted 17 December 2006 - 08:02 PM

Can you also make a dll which can make an AVI from a number of BMP's?
  • 0
No longer active on GMC

#4 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 17 December 2006 - 09:43 PM

Can you also make a dll which can make an AVI from a number of BMP's?

<{POST_SNAPBACK}>


It is possible, but its more complicated to program than reading a frame.
I will try to do it, but its going to be a new DLL, because if the DLL did both decoding and encoding, it would be less easy to use.
  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#5 IamCalle

IamCalle

    GMC Member

  • GMC Member
  • 444 posts

Posted 18 December 2006 - 01:18 AM

Nice. :)
About the BMPs-to-AVI; I guess we will have to stand by. :)
  • 0

#6 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • GMC Elder
  • 9603 posts
  • Version:GM:Studio

Posted 18 December 2006 - 02:16 AM

This seems to have many bugs, but these are the ones I could find:

1) When the AVI has a large number of frames (I tried one with a little more than 5,800 frames), even extracting 1 frame freezes the game.

2) Sometimes, adding a sprite from an extracted frame fails. I don't know if this is because the file becomes corrupt or the image isn't extracted, but either way, it doesn't work at times.

-IMP :) :)

*EDIT* Also, when you get this working correctly, do you think there's a way to extract the audio from the AVI file as a WAV or MP3?

Edited by IceMetalPunk, 18 December 2006 - 02:17 AM.

  • 1

:GM123: Are you an artist who likes creating original creature designs? Maybe you can help out with Elementa here! Give it a look; you might like the idea :)

:bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny:


#7 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 18 December 2006 - 11:18 AM

This seems to have many bugs, but these are the ones I could find:

1) When the AVI has a large number of frames (I tried one with a little more than 5,800 frames), even extracting 1 frame freezes the game.

2) Sometimes, adding a sprite from an extracted frame fails. I don't know if this is because the file becomes corrupt or the image isn't extracted, but either way, it doesn't work at times.

-IMP :GM107: :GM109:

*EDIT* Also, when you get this working correctly, do you think there's a way to extract the audio from the AVI file as a WAV or MP3?

<{POST_SNAPBACK}>


I will look up that bugs as soon as i can.
  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#8 halo shg

halo shg

    Programmer

  • GMC Member
  • 600 posts
  • Version:GM:Studio

Posted 22 March 2008 - 01:01 PM

Congratulations! Another superb DLL. The speed was great, but it seemed to cause a "Not Responding" error for files over 10000 frames.

This, combined with CyberTwister's BMP-To-AVI DLL would make an amazing video editing program, but with one flaw: It wouldn't keep sound. Bitmaps can't possibly carry any sound, so would it be possible for you to make something that extracts the sound?
  • 0

Dev: MacBook Pro Retina Display 15" w/ Win7 (Parallels) running GM Studio: Master and GM8 (GMS: ANDROID JAVA EXTENSIONS ARE HERE!)
Devices: Samsung Galaxy Note II / Samsung Galaxy S III / iPhone 4S / iPad 2 / iPod Touch 5th gen



Politics' is made up of two words, 'poli,' which is Greek for 'many,' and 'tics,' which are blood-sucking insects.


-Gore Vidal


#9 13bgarli

13bgarli

    GMC Member

  • New Member
  • 177 posts

Posted 28 March 2008 - 10:55 PM

is there a way to save each frame to a texture file. and rewrite the texture file each time at a farly high speed?
  • 0

#10 LegacyCrono

LegacyCrono

    GMC Member

  • GMC Member
  • 616 posts

Posted 16 July 2008 - 04:56 PM

That's something I was looking for...
But I've stepped in failures when trying to extract. Does it works with codecs?

Anyway, nice DLL. :o
SEE YA!!!!!
  • 0

Posted Image


#11 molbal

molbal

    GMC Member

  • GMC Member
  • 59 posts
  • Version:GM:Studio

Posted 04 August 2008 - 09:04 AM

It always return with an error "error loading avi file" or unexpected error when running tha game... What can i do?
  • 0

#12 legocrazy1

legocrazy1

    GMC Member

  • GMC Member
  • 6 posts

Posted 03 February 2009 - 02:14 AM

I am trying to convert a 360 something frame avi file into bmps using this dll, but it crashes performing the extraction of the first frame.

What exactly could be the problem? Do codecs matter?

Thank you - legocrazy1
  • 0

#13 Yambam

Yambam

    GMC Member

  • GMC Member
  • 647 posts
  • Version:GM8

Posted 04 July 2009 - 10:11 AM

Wow!, Thats great!, I can make a program that can reverse videos now! :rambo

*Edit1* Doesn't seem to work :P

*Edit2* Sorry, I opened a MPEG file, But it says Unexpected error

*Edit3* Doesn't seem to extract reverse...
for (i=Frames; i>=1; i-=1) //For loop to extract all frames reverse
	{
		AVX_Extract (i,"Frames\Frame"+string(i)+".bmp"); //Extract frame to bitmap
	}
The code above is to extract reverse, but doesn't do the thing, is there someone that can make a code?

Edited by Yambam, 06 July 2009 - 08:05 PM.

  • 0

#14 newbie013

newbie013

    GMC Member

  • GMC Member
  • 96 posts
  • Version:GM8

Posted 06 July 2009 - 03:07 PM

Any progress ?
  • 0

#15 spikey123

spikey123

    GMC Member

  • GMC Member
  • 12 posts
  • Version:GM7

Posted 19 April 2012 - 09:45 PM

Sorry for really massive bump, but could you please continue on this? I would really like to use it for a greenscreen project and i need to extract the frames. If not, could i please have the source, because i can code in other languages. Thankyou in advance. :)
  • 0
Posted Image