The Dink Network

dPlay Can Play Movies Now (But I Need Help)

February 12th 2003, 08:18 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Well, one thing people have always requested is for Dink to play movies. I, personally, always hated the idea... I mean, they're just so huge to download. But... look at PQ (and to a much lesser extent, FIAT). Both have full-screen cutscenes using BMPs, and those full-screen cutscenes take up a lot of space... a movie would actually be smaller if it was done at the same frame rate, and with compression and such.

Anyway, I manged to find myself an old copy of Seth's dplay.exe (the one that played avi's and mpg's and such). And after some twisted code, I managed to get my dplay.exe to launch the old dplay.exe (now called dplaym.exe) and play the movie, and then maximize Dink when the movie was done, or the user stopped the movie.

There are a couple bad things though.

1) It isn't a complete full screen... its more like a maximized window.
2) It doesn't like DIVX. At all. Well, it will play DIVX movies, but its really choppy, and sometimes it will launch back into Dink before the DIVX movie is done playing.

So... I need a new dplaym.exe, that supports DIVX in a better way and such. What does it need to do?

1) Accept the movie to play as a parameter (so at a command prompt, you would do this to run a movie: "dplaym.exe mymovie.avi")
2) It should have a unique window title like "DinkMovie Player" or something. This is kinda important... but if it isn't possible (like with Seth's dplaym.exe) then I can get around it.
3) Play the movie full screen automatically, and play divx without any un-normal slow down or other odd behavior.
4) Closes when the movie is done playing.

I think this can be done using DirectX or ActiveX or something, in a quick and small VB or C++ program. However, that lies outside my expertise. If you could make a program that does that (or if you know of one already available that does it), please let me know. Thanks.
February 13th 2003, 05:13 AM
pig.gif

I think that it's a good idea to just make a long cutscene with no gameplay just a movie.And there would be a section MOVIES.
March 3rd 2003, 04:00 AM
pillbug.gif
IvanMZ
Peasant They/Them
 
I can make a program to play
AVIs, but WC already finished one, or not?
You still need it?

But fullscreen with DivX will show slow.
And with sound encoded with MP3 will be
MORE slow.
Better use a codec not so new.
March 4th 2003, 03:17 PM
dinkdead.gif
Hmm.. well the old dplay.exe wasn't
made to use the divx codecs. Yes it
could be done with direct x, and
with a newer version written for
dplay.exe you could make use
of the divx codecs. It shouldn't
be exceedingly difficult to do.
Knowledge in doing audio and video
decoding using either direct x or
openGL would be good. Having the
time to write the program is a
different story, I finally have a
chance this week to sit down and
have a little fun before getting back
to work. I have a large software
project to work on right now as it
is so I couldn't be much help. Good
luck redink. The best way to do
it since you aren't going to get
your hand on the source code for the
dink engine the best idea would be
to use the program to run the movie
and then run dink.
March 5th 2003, 01:06 AM
milder.gif
Kory
Peasant He/Him Croatia
 
Umm...a dreistein question: how to make a Dink Smallwood movie in Dplay?
March 5th 2003, 08:25 AM
knightg.gif
WC
Peasant He/Him United States
Destroying noobs since 1999. 
Look at the example d-mod for DPlay, it's a bit complicated.