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!
capture screenshots from movie
-
BackupUser
- PureBasic Guru

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

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
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

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

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
How/Where do I get the address to the MCI window content?
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