Hi,
Know someone about tutorial or source which can extract video frames and audio from avi or mpg video file? Or can someone explain me how to do it?
Thanks
Flyguy
02-22-2008, 10:44 AM
Have a look at Shrinkwrap Visual Basic:
http://www.shrinkwrapvb.com/avihelp/avihelp.htm
Thanks for link, but that code using API functions and i want to do it with out api...
Any other ideas?
thanks
robot313
02-24-2008, 10:50 AM
You basically have to... the only way do to it with no outside functions would be to write all the code from scratch, including to read in the binary file and perform all the functions on it to convert.
Jonny
02-24-2008, 11:18 AM
Thanks for link, but that code using API functions and i want to do it with out api...
Any other ideas?
Most video files are encoded with a codec. Windows provides the API to decode / encode video files with a given codec. You must open a stream, read it, decode it.
Another good resource is http://www.vbaccelerator.com/ they have an example of this I believe. You won't avoid API though, not at any cost, not unless you're getting your ASM hands dirty?
robot313
02-24-2008, 12:13 PM
Another option I thought of is to use a control that someone else has made that might allow you to use video encoding routines. This would require you to find a control that may or may not be free of charge and use, but it is another option to avoid using the API yourself. Having said that, using API functions open up another world of options for yourself when programming and you should really take some time to learn how to use them. I remember being in your position, being a little newer and wanting to avoid API, but when I did learn it, I was glad I did.