Please could some of you test this

Associate
Joined
25 Jul 2003
Posts
1,980
I'm trying to write some code that will render a video to an openGL texture. It works fine on my machine, but fails on another - and I cant work out why. Could some of you please test this and tell me what you see:

http://www.ollywoodman.tsohost.co.uk/Release.zip

(just extract and run ExportBitmap.exe)

If you see 2 videos each being rendered onto 2 spinning squares then it works fine :-). Otherwise it might crash - in which case could you please say what appears in the program's console (if anything). If it crashes could you say what the crash message is.

Could you also let me know what graphics card and OS you are running.

Thanks
 
Eek. Must have forgotten to put something in that zip file. I'll take a look. Out of interest do you have a file called avifil32.dll in your System32 folder?
 
Last edited:
:-(! Ok thanks for you help.

One last try: Would it be possible for you to install Tao bindings (just run the exe file here http://www.mono-project.com/Tao) and see if that helps? Dont worry if you dont want to install anything / if it is hassle.

Think I will have to look for another way to do this. It works on my machine fine though :-(!
 
lol, well its written in .Net 2.0, so that explains why it wont work for you (although I thought .Net 2.0 came as standard in Vista??).
 
Finally worked it out.

The dll error is if you are missing the Tao framework (I thought I could avoid this by packaging the dlls in the zip file, but obviously not!).

The videotextureexception is thrown if you are missing the divx codec (although this doesnt mean that it wont play in media player etc etc). If you download it from http://www.divx.com/divx/windows/codec/ then everything should finally work. Would it be possible for you to confirm this Spuds?
 
Thanks for your help. I've been trying to use DirectShow instead, since it is very intelligent about finding codecs etc etc, but its a nightmare to use when you want to start jumping around files / playing videos backwards etc etc. Seems like you cant get best of both worlds :( !


ps: It was probably spinning insanely fast because you have vsync disabled on your graphics card (I would guess) - and my demo just rotated the scene a little each time it was redrawn (so fast framerate ends up giving you fast rotation as well).
 
Back
Top Bottom