Open/Draw movie in Blitz3D

Blitz3D Forums/Blitz3D Programming/Open/Draw movie in Blitz3D

playing movies is hard work for he machine in general. Especially some heavily compressing codecs like MP4 (divix etc.) need some time to decode the movie. So when you use a huge format (eg. a 1600*1200 pixel movie) then you shouldn't be surprised if your machine is 100% busy.

In Blitz you should Close a movie before you end the program.
It is using DirectShow, the movieplayer of DirectX. You should know it can only play a movie if the codec is installed on a certain machine.

So probably it's the best practice to check if a codec is supported, and if it isn't, offer a codec install to the user. You may find a freely distributable codec at www.free-codecs.com. It would then be somethin like:

m=openmovie("test.avi")
if m=0 then
 execfile "codec_install_whatever.exe"
 print "press a key to continue"
 waitkey()
else
 closemovie m
endif

or maybe something more smart.