Hello!
Please help.
I need to play a DivX movie in the middle of my SDL/OpenGL program.
- How do I play DivX movies? I know there’s SMpeg, but I didn’t see
examples of using it, and I’m not sure it can play DivX movies as well…
Well… Can anything but one of these so called “DivX ;-)” codecs? AFAIK, the truly interesting versions are modified and won’t play with Microsoft’s official codecs.
Oh well - if you have the codec (and I think it’s available for various platforms, including Linux and Win32, of course), you can probably use the normal Win32 API for codecs - although that’s not quite my area. (Applies to Win32 as well as video, really.)
- Is there a way to play the movie without destroying and recreating
the OpenGL context (I.e. not changing video to SDL surface, playing, and
then changing to GL surface)? That is, seamlessly moving between the GL
scene and the movie.
I’m afraid the only truly reliable way of doing that is to pipe a software codec into a procedural texture, and have OpenGL render that in whatever size you want.
The advantage is that you can have very smooth playback of low resolution videos regardless of screen resolution, as long as the video card fillrate is sufficient. Another advantage is that you can easilly combine the video playback with various OpenGL effects. (Something like those video clips on the credits screens in RTCW, for example.)
- The movie is encoded using DivX 5.0 Pro, but it should play on any
computer, with other versions of DivX decoder or without it at all.
Without any DivX code at all? Hmm…
Is
there a way to include the decoder with my program (I’m using Delphi, so
please no C++ static linking stuff), or do I have to install the DivX
codec on the computer?
I suppose the latter, unless you can find a usable DivX codec in the form of a handy DLL with a license you can deal with.
If it’s the second case, how to I check the DivX
existance and version?
That would be that Win32/video stuff I’m not at all into…
//David
.---------------------------------------
| David Olofson
| Programmer
david.olofson at reologica.se
|
Address: |
REOLOGICA Instruments AB |
Scheelev?gen 30 |
223 63 LUND |
Sweden |
--------------------------------------- |
Phone: 046-12 77 60 |
Fax: 046-12 50 57 |
Mobil: |
E-mail: david.olofson at reologica.se
|
WWW: http://www.reologica.se
|
|
`-----> We Make Rheology RealOn Thu, 13/06/2002 21:38:19 , Romi Kuntsman wrote: