PLAYING AVI in c++ opengl console app
:( :( :(
guys! im desperate! ive spent the last 4 days trying to get some source code to play an avi in a c++ opengl console application. i haven't found too much, but from what i found, they did not help me out too much. lesson 35 on this site is ok but i cant get it to work with a movie that is of different resolutions..
what i need is simple. code to play a movie, say 320x240 with or without sound support.
can anyone help me please!?!! im willing to pay for the source, i really really need it!
thanks a bunch!
paulm.
I played with lesson 35 a bit and whipped together a simply avi player that allows you to rotate the movie in steps of 90 degrees. It does NOT have sound support.
http://www.tegarttech.com/apps/avirotate.zip
You can have the source code for free if you want, but you'll have to wait until this evening.
Brian
http://www.tegarttech.com/apps/avirotate.zip
You can have the source code for free if you want, but you'll have to wait until this evening.
Brian
Here's the source, it's just NeHe's source with some file loading stuff keypress stuff added, so it might not be that helpful. I just tried it with avis of different resolutions, and it works.
http://www.tegarttech.com/apps/avirotate_src.zip
What problems in specific are you having? Are you just wanting to resize the window based on the size of the dimensions of the avi frame?
Brian
http://www.tegarttech.com/apps/avirotate_src.zip
What problems in specific are you having? Are you just wanting to resize the window based on the size of the dimensions of the avi frame?
Brian
hi guys. thanks for the replys. what i need the application to do is play the video in its original dimensions instead of having it stretched to the screen resolution. i will have to play around with this more.
thankyou,
paulm.
thankyou,
paulm.
Well, it should be pretty simple. I added a couple lines of code to my previous example, to pass the OpenGL window to Initialize() and then to OpenAVI() - so when the AVI was opened (and where we were using the width and height of the AVI, I could simply call SetWindowPos() with the new width and height. It's not perfect (it doesn't take into account proper perspective angle or the extra width and height needed for the window frame and title bar), but it should be enough to get you back on track.
http://www.tegarttech.com/apps/avirotate_src.zip
Brian
http://www.tegarttech.com/apps/avirotate_src.zip
Brian
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement