vout automatically draws to screen??
vout automatically draws to screen??
- Subject: vout automatically draws to screen??
- From: Michael George <email@hidden>
- Date: Mon, 3 Nov 2003 16:45:45 -0500
I have a Cocoa App that uses a vout component to play a QT movie out my
video device. It will generally capture from a sequence grabber before
playback, but I'm skipping that part right now.
The problem I'm having is that my vout echo port doesn't seem to be
getting set correctly. In the process of setting it, I have removed
all the QT calls that I thought would connect the vout to a port on the
screen. However, my video is still going to the screen and I'm not
sure why.
I do the following:
Open my component
Open the movie file and get the movie
Create a vout instance
Set the client name
Set the vout mode
Get exclusive access to the vout
Get a pointer to the vout's gworld
[I did have a call to SetMovieGWorld() to bind the movie and the vout
together, but it's removed for now...]
I know this all works because I get vout playback
Set the movie's video output to the vout instance
Create a new movie controller and set it's bounds the same as the
movie's bounds
Tell the MC that the movie changed
Tell the MC to loop
Tell the MC to play at a rate of (1<<16)
Simple, and it seems to work. HOWEVER, I'm getting output to the Mac
screen buy I don't know why.
I haven't set an echo port... I haven't set an additional gworld for
anything... Is the movie controller grabbing an onscreen display port
automatically?
I think that if I can figure out why the display is coming to the
screen and stop it, then I might have better luck setting the echo port
on the screen to work right...
Is there something simple I'm missing? I've looked at Apple's online
QT docs and they don't give me the Big Picture of sequence grabbing and
vouts (unless I'm not looking at the right ones). I've got a bunch of
sample code and I've started with them, but I have to tweak them to
either work w/ Cocoa or to do more precisely what I want and I'm
breaking something in the translation.
What are some good books for learning to do QT (preferably QT & Cocoa)
development, specifically with video I/O, not just on-screen playback?
Thanks!
-Michael
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.