capture screenshots from movie

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by stefhan.

Hi,

I would like to capture specifics frames from a movie to get
some pixels color.
How to capture a precise frame from a movie ?
Thx for some help!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by stefhan.

Where/how is decompressed image using movie lib ?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

All is handled by the codec, so you can't for now get the output image (or may be by tricking the stuff and get the window content). I would like to allow decoding on any surfaces (mainly for DirectX use) but it's still on my TODO list..

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by WolfgangS.

HI!
WOW ! Show a avi, mpeg or DivX film on a rorate cube ... wow that would affect
strongly EACH programmer ... :wink:

MFG
:)WolfgangS
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by vanleth.

Would be good stuff to have more control of a movie (Avi).

Been strugling some days now with MCI commands instead of the PB movie lib. Still havn't been able to grap a still frame.

Below I'm trying to put a movie to my own window. Seems to work, but it is still playing the movie in some bizaar hidden window.

food is ready, gotta go :)

Code: Select all

*Result = GlobalAlloc_(#GMEM_FIXED, 256)
ToDo$ = "open raw\anim\wizwalkright.avi alias anim parent " + strU(windowid(),#LONG) + " Style child"
If MciSendString_(ToDo$,*result,256,0)=0
  mciSendString_("put anim window at 0 0 48 48 wait", *result, 256, 0)
EndIf
How/Where do I get the address to the MCI window content?
Post Reply