Hi everyone!
Just a few days ago I start a project where I need to grab the frames
from a firewire connected camera. This is what I want to accomplish:
I want to create an application which basically has two modes:
--------------------------------------------------------------------------
1) A fullscreen application with a black background, which shows the
video stream in a rectangular area in the center of the screen. When the
users presses the space bar I want to do the following:
a) Write the current frame to a png image (hi prio)
b) Capture the frames of next 10 seconds and create a
.avi/.swf movie. (low prio, for later usage)
When the snapshot has been taken, we switch automatically to the next
mode...
2) In this mode we show the grabbed snapshots, one at a time. One
snapshot is shown in the middle of the screen with a nice 'video'
frame around it. A frame like this:
http://www.webstudio.cl/blog/wp-content/picasa-mellizos.jpg.
When the user presses the left/right arrow keys, the next snapshot
is show, but I want the current snapshot to be motion tweened to the
left and the new one motion tweened from the right to the center of
the screen.
--------------------------------------------------------------------
I've been playing around and here is some messy code:
http://pastebin.ca/196338?srch=artoolkit
In that code the thing which does work is the creation of the .png
file. Though I don't know how I can show the video stream in a
rectangular area.. Of course I want the application to be fast, so
I'm hope someone can give me some advice about what I should use..
Thanks,
Diederick
|