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
 
Error :(

EventType : clr20r3 P1 : exportbitmap.exe P2 : 1.0.2638.30231
P3 : 460404af P4 : exportbitmap P5 : 1.0.2638.30231 P6 : 460404af
P7 : 23 P8 : 6 P9 : system.dllnotfoundexception

GeForce 6800GS
Windows XP Pro
 
I get an error as well

Code:
EventType : clr20r3     P1 : exportbitmap.exe     P2 : 1.0.2638.30231     
P3 : 460404af     P4 : exportbitmap     P5 : 1.0.2638.30231     P6 : 460404af
P7 : 23     P8 : 6     P9 : system.dllnotfoundexception

HIS ATI Radeon X1950 Pro
Windows XP Pro (SP1)
 
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??).
 
Installed the Win32 version, hope that was the right one, but I still got the following error:

Code:
EventType : clr20r3     P1 : exportbitmap.exe     P2 : 1.0.2638.30231     
P3 : 460404af     P4 : exportbitmap     P5 : 1.0.2638.30231     P6 : 460404af
P7 : 2c     P8 : 1a9     P9 : exportbitmap.videotexture

It got a little further in the execution this time, it opened a window called 'GLFW Window' before it crashed

EDIT:

Ran from the command line and and got the following error which may be a little more use to you:

Code:
C:\Release\Release>ExportBitmap.exe
Opening avi...
FRAME OPEN

Unhandled Exception: ExportBitmap.VideoTextureException: Exception of type 'Expo
rtBitmap.VideoTextureException' was thrown.
   at ExportBitmap.AviTexture.OpenAvi(String fileName)
   at ExportBitmap.AviTexture.getVideoTexture(String iFileName)
   at ExportBitmap.Triangle.initGl()
   at ExportBitmap.Triangle.Main()

C:\Release\Release>
 
Last edited:
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?
 
Yep, that's it running now. It spins insainly fast but it's running

untitled1ae2.jpg

That what I should be seeing
 
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