Divx , Bink

Blitz3D Forums/Blitz3D Beginners Area/Divx , Bink

gotelin(Posted 2005) [#1]
I want use a video in divx format, but i Can't see good.

Graphics 800,600,32,2
SetBuffer BackBuffer()
pelicula=OpenMovie("example_divx.avi")
While Not MoviePlaying(pelicula)=0
DrawMovie pelicula,0,0,640,480
Flip True
Cls
Wend

Width= 640
Height= 480
rate= 24fps
video sample size= 24bit
Video compression= Divx codex
if the video isn't compressed I see very good. Why?


another question Can I use bink format in Blitz?

Thanks


_PJ_(Posted 2005) [#2]
Dont playmovie play straight to frontbuffer or summink?


Maybe remove the FlipTrue and CLS

(dunno just a guess!)


;-)


gotelin(Posted 2005) [#3]
Thanks, but is the same
I see very bad the video in blitz :o(


jfk EO-11110(Posted 2005) [#4]
what means you "see very bad"? You see nothing? or bad quality? flickering or something?

AFAIK Blitz's built in DirectShow Movieplayer is not capable if truely streaming videos, eg. from a webpage, maybe it has something to do with this?

Anyway, there is an additional DLL, named BlitzMovie, it's capable of playing these Formats.

An other point is: DivX, XVid and other Mpeg4-ish codecs require a lot of CPU power, so maybe your Machine is too weak to do it all at the same time? What's your CPU?


PowerPC603(Posted 2005) [#5]
You can try my movieplayer that I've put together some time ago.
All you have to do, is:
- download the source-code
- compile it into an exe (debug off)
- place the executable anywhere you want (I've got it at C:\MoviePlayer)

The movieplayer accepts a video-file via it's command line.
To play a movie:
- right click a video-file (mpeg, avi, divx, ...)
- select "Open With ..."
- browse to the location of the MoviePlayer executable
- select the executable and click "Ok"

Now the movieplayer should be playing your file in a 1024x768x32 resolution, fullscreen.
It resizes the movie to fit the screen, with respect to the aspect-ratio.

Note that you cannot skip forward/backward and that you cannot adjust the audio-volume, as these features are not supported by Blitz.

To end the movie, press ESC.
To take a screenshot, press F8.
If you hold down either CTRL-key, some info is shown, like the original size of the movie, the size of the video that being played (resized size), resize multiplier and the number of screenshots to take in one go.

Pressing F9 takes several screenshots in one go.
The number can be adjusted by pressing the Keypad's minus and plus keys.

The screenshots are placed in this directory:
C:\MoviePlayer\Screenshots

You can change this by changing the line:
Global ScreenshotDir$ = "C:\Movieplayer\Screenshots\"
which is located at the top of the file.
Just remember to hold the ending backslash.
Don't do:
Global ScreenshotDir$ = "C:\Movieplayer\Screenshots"

http://users.pandora.be/vge/Blitz/MoviePlayer.bb

If this can help you, use any part of the source-code you want for your own projects.


BlackD(Posted 2005) [#6]
You can use the free player (and the $1995 player) in Blitz, but only in windowed mode. To use full-screen Bink you need access to the DLL to copy the bink drawing buffers to the blitz screen buffers. This will set you back a mere $5000 per product, or $32000 for unlimited usage.


popcade(Posted 2005) [#7]
I use MPEG1 for compatibility reason, uttery big bug anyway it works.