AVI read/write + more source released.
BlitzMax Forums/BlitzMax Programming/AVI read/write + more source released.
| ||
Check it out here: http://www.furi.dk/?page_id=56 The story about the NHSoft AVI tool is that they are closing down their business (to form another one with some other company) and since I wrote the source, the rights belong to me. And I'm releasing it to the public. |
| ||
Outstanding.... Thanks |
| ||
Great Lib, thanks for sharing ;) |
| ||
Looks really good, Thanks. If I can get this to work with OpenGL it could be just what I need. |
| ||
You should be able to do that. Just update your texture with the data pointer you get from GetFrame() and all should be well. Remember to use the glSubTexImage or whatever it's called for the fastest dynamic texture update :) |
| ||
Thanks again for sharing this. I am wondering if fullscreen capture is possible? |
| ||
It should be very possible. However, ATM it pops up a codec dialog but you could just init the AVI writer before changing to fullscreen. It can be disabled in the C code though if you specify a codec manually :) |
| ||
Thanks, I will look at the c code. I think I need to start/stop recording while fullscreen, as before going fullscreen how would you get its handle? |
| ||
Well. I guess the handle is a pointer, so it will be set when you do the graphics call. Give it a try :) |
| ||
this could be used in your game code for creating game video ? looks nice im gona have a look at it. |
| ||
Yep. Only on windows though :) |
| ||
I think the first thing I might try with this is simple tool to stitch two avi's together. |
| ||
Every AVI I try with AVI Reader gets me an Init error :( Does it have to use particular codecs? |
| ||
Weirdly, AviSynth scripts ( http://www.avisynth.org/ ) do not give me an init error, and the window does appear to be set up for the correct dimensions - but the program immediately terminates as soon as it tries to actually draw a frame. It would be fantastic if this supported AviSynth... should it do, when it's working properly? I still can't get any video at all. |
| ||
yeah same problem here too - would love to use this in my latest project :D |
| ||
Well. I get a dialog with installed codecs to choose from. Works fine here :) You don't get any dialog at all? |
| ||
no dialog - cant look more right now because I'm at work, but it always returns number of frames as 0 in the loadAvi function as i remember. |
| ||
I get the same error here. :( |
| ||
You get the errors on the samples that comes along with the library? Also, what OS are you running? |
| ||
Yeah, Ive only used the AVIreadTest.bmx file. Ive downloaded it here at work now and i still get the same error. Using WinXP professional here and Win2000 at home. Dont know if it helps, but here's an example of an avi file I've tried to play: DevelopersVid (not made by me btw, just found this somewhere!) |
| ||
This is really great! I think I'm doing something wrong though. When I play the avi in Media Player it doesn't have the right length. I recorded something that was about 10-15 seconds long and it said it was 3 seconds long in Media Player, it did play for the full 15 seconds though. Could this be something to do with the number of frames I write? Or perhaps some function parameter I haven't set right? |
| ||
Well. I get a dialog with installed codecs to choose from. Works fine here :) You don't get any dialog at all? Were you replying to me? I meant the AVI reader/player, not the writer, I haven't tried that. Or do you have to choose the codec for the reader too...? That'd be kind of inconvenient. Everything I try to play either has zero frames, or (the AVISynth scripts) seems to create the right sized window then shuts down without error when the first frame should be drawn. Running XP Pro. |
| ||
A few FYI: - Only the reader will popup a codec requester. - When creating and AVI be sure to specify the desired playback frame rate or the video will not work properly. - When testing, please use the provided samples as they work on my system. - Playback tested with DivX and Indeo Codecs + uncompressed AVI. Dunno what an AVISynth script is though :) |
| ||
Am I missing something? Can't see any avi samples that come with aviTool...just the bmx files and (i assume) the source files for the dll? Not trying to be difficult, just want to help to get this to work :) |
| ||
Well. There are no AVI samples included :) |
| ||
Ahh, its just you said to use the samples provided ;) In that case I assume you mean the bmx samples. Not tried the writing one yet, mostly interested in the reader which comes up with the errors everyone else has. |
| ||
Dunno what an AVISynth script is though :) It's a file that can be treated as an AVI file by most things (VirtualDub, Media Player etc.) but is actually a text file script. For example if you have AVISynth installed, and this text in a file called "aviscript.avs": AviSource("video1.avi") ++ AviSource("video2.avi")...then it will run as a video that is video1 and video2 spliced together in a single video (as long as they are compatible). But you can do much more complicated things than splicing, you can overlay graphics, mess around with audio tracks, do professional-quality frame-rate changes, etc. It's really worth supporting - an application which dynamically generates and renders AVISynth scripts could be very powerful. |
| ||
Sorry. There are blitzmax source examples included, but no video samples :) |