[SDL] How to play a DivX movie in SDL/OpenGL?
Romi Kuntsman
romik12345 at lycos.co.uk
Tue Jun 25 09:27:01 PDT 2002
CRV§ADER/KY wrote:
>>[...]
>>1. How do I get a DivX decoder that I can ship with my program? I need
>>its licence to allow distribution with my program, and to be only the
>>decoder and not all the other stuff like encoder, player, tools, etc.
>>
>>
>Well you can download the decoder/encoder from www.divx.com. Check out the license but I think that you can
>implement it for free. You can separate decoder from encoder in linux distro, but you can't do that in windows.
>However, it's just 3.1 mb. (remember to provide the STANDARD and not the PRO version, as it can still read PRO
>files but it's ad-free - and you don't want to install spyware on your customers PCs, do you?)
>
3.1MB seems very little if I would have been selling and distributing my
software on CDs or something, but I'm not.
My program is open source (QPL lisence) and meant to be downloaded from
the Internet. For that, 3.1MB is quite a big addition.
This is also why I'm using DivX -- so that I could distribute
mini-movies (each one is a few minutes, but that still takes up a lot,
and especially all together) via the Internet (so that each one will
take maximum a few MB and not a few 10s of MB).
I guess I could just tell people to download and install the DivX
decoder from www.divx.com in order to run my program, just as I do about
SDL and other libraries....
>>2. How do I actually play DivX movies from my program???
>>
>>
>I don't know. In Windows, you could use a Media Player OCX/DLL. In Linux, you may use your own code to read the
>container format (It's AVI, isn't it?) and then use the decore() function provided with DivX4Linux (always at
>www.divx.com). By the way, WHICH OS ARE YOU RUNNING ON?
>
I'm using Microsoft Windows XP. But I also have Linux, and want my
program to run there as well...
RK.
More information about the SDL
mailing list