Hi, I know there are a few workarounds for displaying on a screen, but I can't get a Movie played fullscreen with hardware-interpolation. I get jerky playback and tearing, because the playback of the movie is in a window and it seems to use gdi for output!
Fred, can you please use DirectVideo or DirectShow (uses Hardware-capabilities of the gfx-card) for this?
Yours
PlayMovie on a Screen
-
- Enthusiast
- Posts: 276
- Joined: Fri Apr 25, 2003 5:06 pm
- Location: Gummersbach - Germany
- Contact:
PlayMovie on a Screen
The Human Code Machine / Masters' Design Group
-
- PureBasic Expert
- Posts: 2812
- Joined: Fri Apr 25, 2003 4:51 pm
- Location: Portugal, Lisbon
- Contact:
Open a screen then try this:
Code: Select all
;-PlayAvi
playavi :
FlipBuffers()
ClearScreen(0, 0, 0)
FlipBuffers()
If InitMovie()
LoadMovie(0, #gfx + "title.avi")
ClearScreen(0, 0, 0)
Delay(1000)
PlayMovie(0, ScreenID())
Repeat
Delay(1)
Until MovieStatus()=MovieLength() - 2
FreeMovie(0)
ClearScreen(0, 0, 0)
EndIf
Return
-
- Enthusiast
- Posts: 276
- Joined: Fri Apr 25, 2003 5:06 pm
- Location: Gummersbach - Germany
- Contact:
Hi Num3,
your example works exactly, how I play my movies at the moment! But it doesn't use the Hardware-Stretch from the graphics-card! It simply scales the output and pageflipping is not performed during the vertical-blank and causes a lot of tearing on the screen!
So, what's your point with your example?
Greetings
your example works exactly, how I play my movies at the moment! But it doesn't use the Hardware-Stretch from the graphics-card! It simply scales the output and pageflipping is not performed during the vertical-blank and causes a lot of tearing on the screen!
So, what's your point with your example?
Greetings
The Human Code Machine / Masters' Design Group