Re: Some advice on video frame grabbing

2004-01-31 Thread Doug Lerner
On 1/31/04 7:12 PM, "Doug Lerner" <[EMAIL PROTECTED]> wrote:

With regard to

> Weird thing 2
> -
> You know my original problem of the grabbed frame not showing up in the
> target image? If I quit the IDE, then the first time I try it it will work.
> But for subsequent times it will not work. This is 100% reproducible.

I'm narrowing down the problem. The image is actually there! If I select it
with the pointer tool I can't see it, but... if I select the image with the
object inspector the image shows up.

What gives?

Strangeness all around.

I even got a Rev "error in selecting image" dialog pop up once...

I wonder if there is something wrong with my IDE...

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Some advice on video frame grabbing

2004-01-31 Thread Doug Lerner
There are several things happening that are strange:

Weird thing 1
-
If I close the stack in which I am embedding the video grabber window,
sometimes the stack's closeStack handler is not being called. I know it
isn't being called because it is doing various things, like setting the
hilite of a button in another stack and doing "revCloseVideoGrabber" and
sometimes those messages are just not being sent.

When would a stack not execute it's own local closeStack handler even though
the stack is being closed?

Weird thing 2
-
You know my original problem of the grabbed frame not showing up in the
target image? If I quit the IDE, then the first time I try it it will work.
But for subsequent times it will not work. This is 100% reproducible.

[EMAIL PROTECTED]


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Some advice on video frame grabbing

2004-01-31 Thread Doug Lerner
On 1/31/04 6:14 PM, "Chipp Walters" <[EMAIL PROTECTED]> wrote:

>>> 
>>> set the defaultStack to "theStackWithTheVideo"
>> 
>> You mean the stack with the video grabber window in it?
> 
> Yep
>> 
>> Well, as a test I can do that in the sample stack. It would be hard to
>> do as
>> a test in my current app now considering how complicated it has gotten.
>> 
>> But weirdest of all - it worked one time! But I couldn't repeat it
>> after
>> that.
>> 
>> Also, sometimes the revCloseVideoGrabber that I call when I close the
>> video
>> grabber window (in closeStack) does not seem to get sent and I need to
>> invoke it manually.
>> 
> Still sounds like a defaultStack or topStack problem to me. Can't you
> just grow the window and add an image to test?

Yes, that is a good idea. That would be easy to do.

I think I am having a problem with "mixed signals" though. For example, I am
starting my "repeat loop" for QT inside openStack. I think I'll try and move
things around first.

By the by, the video grabber doesn't *really* reside in a stack anyway -
it's a special sort of a global window - so I don't see how defaultStack
settings could apply.

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Some advice on video frame grabbing

2004-01-31 Thread Chipp Walters
set the defaultStack to "theStackWithTheVideo"
You mean the stack with the video grabber window in it?
Yep
Well, as a test I can do that in the sample stack. It would be hard to 
do as
a test in my current app now considering how complicated it has gotten.

But weirdest of all - it worked one time! But I couldn't repeat it 
after
that.

Also, sometimes the revCloseVideoGrabber that I call when I close the 
video
grabber window (in closeStack) does not seem to get sent and I need to
invoke it manually.

Still sounds like a defaultStack or topStack problem to me. Can't you 
just grow the window and add an image to test?

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Some advice on video frame grabbing

2004-01-31 Thread Doug Lerner
On 1/31/04 5:57 PM, "Chipp Walters" <[EMAIL PROTECTED]> wrote:

> Doug,
> 
> I haven't used video frame grabbing, but I might suggest some things to
> look at:
> 
> When you call:
> revVideoFrameImage userImageWidth, userImageHeight, "videoimagedata"
> 
> you might want to include before it:
> 
> set the defaultStack to "theStackWithTheVideo"

You mean the stack with the video grabber window in it?

> 
> (I assume it is not a palette, if it is, it might NOT work at all)

It's not a palette.

> 
> Also, see if you can do it all on the same stack as a test (just like
> the example). If it does work, then you can isolate your frontmost
> stack issues from there.

Well, as a test I can do that in the sample stack. It would be hard to do as
a test in my current app now considering how complicated it has gotten.

But weirdest of all - it worked one time! But I couldn't repeat it after
that. 

Also, sometimes the revCloseVideoGrabber that I call when I close the video
grabber window (in closeStack) does not seem to get sent and I need to
invoke it manually.

Thanks,

doug

> 
> hope you get it working,
> Chipp
> 
> 
> 
> On Jan 31, 2004, at 2:38 AM, Doug Lerner wrote:
> 
>> I have a question for you experts.
>> 
>> I basically copied scripts from the sample video stack (where this
>> works
>> correctly), and most of it seems to be working in my stack. But when I
>> try
>> to grab a frame from the video grabber window it does not display in
>> the
>> target image after I use the "set imageData" command.
>> 
>> Without boring you with all my code, this is the snippet that grabs the
>> frame and sets the imageData:
>> 
>> put empty into videoimagedata
>> 
>> put the width of image "userPortrait" of stack portraitName into
>> userImageWidth
>> 
>> put the height of image "userPortrait" of stack portraitName into
>> userImageHeight
>> 
>> revVideoFrameImage userImageWidth, userImageHeight, "videoimagedata"
>> 
>> set the imageData of image "userPortrait" of stack portraitName to
>> videoimagedata
>> 
>> 
>> Seems vanilla enough, right? The only thing I am doing different from
>> the
>> sample scripts is that my target image happens to be in another stack.
>> 
>> All the stacks/windows are open and everything has the correct height
>> and
>> width set.
>> 
>> If I log userImageWidth, userImageHeight and the captured
>> videoimagedata,
>> there are what seem to be correct values in all of them. Well, the
>> height
>> and width anyway seem correct. I can't visually confirm that the value
>> of
>> videoimagedata is correct, but it is the correct size - userImageWidth
>> x
>> userImageHeight x 4.
>> 
>> If I "put image userPortrait" there is what appears to be PNG data in
>> there.
>> 
>> If I check the "number of characters of the imageData of image
>> userPortrait"
>> there is the correct 57,600 characters in there (the image is 120x120).
>> 
>> And the paintCompression of image userPortrait is "png" in my stack
>> and also
>> in the sample stack.
>> 
>> But:
>> 
>> * No image is displayed (even though it is displayed in the video
>> grabber
>> window of course)
>> 
>> * If I "put the imageData of image userPortrait" the value displayed
>> looks
>> empty in the message box - not even garbage characters.
>> 
>> Any ideas?
>> 
>> Thanks!
>> 
>> doug
>> 
>> 
>> ___
>> use-revolution mailing list
>> [EMAIL PROTECTED]
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
> 
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Some advice on video frame grabbing

2004-01-31 Thread Chipp Walters
Doug,

I haven't used video frame grabbing, but I might suggest some things to 
look at:

When you call:
revVideoFrameImage userImageWidth, userImageHeight, "videoimagedata"
you might want to include before it:

set the defaultStack to "theStackWithTheVideo"

(I assume it is not a palette, if it is, it might NOT work at all)

Also, see if you can do it all on the same stack as a test (just like 
the example). If it does work, then you can isolate your frontmost 
stack issues from there.

hope you get it working,
Chipp


On Jan 31, 2004, at 2:38 AM, Doug Lerner wrote:

I have a question for you experts.

I basically copied scripts from the sample video stack (where this 
works
correctly), and most of it seems to be working in my stack. But when I 
try
to grab a frame from the video grabber window it does not display in 
the
target image after I use the "set imageData" command.

Without boring you with all my code, this is the snippet that grabs the
frame and sets the imageData:
put empty into videoimagedata

put the width of image "userPortrait" of stack portraitName into
userImageWidth
put the height of image "userPortrait" of stack portraitName into
userImageHeight
revVideoFrameImage userImageWidth, userImageHeight, "videoimagedata"

set the imageData of image "userPortrait" of stack portraitName to
videoimagedata
Seems vanilla enough, right? The only thing I am doing different from 
the
sample scripts is that my target image happens to be in another stack.

All the stacks/windows are open and everything has the correct height 
and
width set.

If I log userImageWidth, userImageHeight and the captured 
videoimagedata,
there are what seem to be correct values in all of them. Well, the 
height
and width anyway seem correct. I can't visually confirm that the value 
of
videoimagedata is correct, but it is the correct size - userImageWidth 
x
userImageHeight x 4.

If I "put image userPortrait" there is what appears to be PNG data in 
there.

If I check the "number of characters of the imageData of image 
userPortrait"
there is the correct 57,600 characters in there (the image is 120x120).

And the paintCompression of image userPortrait is "png" in my stack 
and also
in the sample stack.

But:

* No image is displayed (even though it is displayed in the video 
grabber
window of course)

* If I "put the imageData of image userPortrait" the value displayed 
looks
empty in the message box - not even garbage characters.

Any ideas?

Thanks!

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Some advice on video frame grabbing

2004-01-31 Thread Doug Lerner
I have a question for you experts.

I basically copied scripts from the sample video stack (where this works
correctly), and most of it seems to be working in my stack. But when I try
to grab a frame from the video grabber window it does not display in the
target image after I use the "set imageData" command.

Without boring you with all my code, this is the snippet that grabs the
frame and sets the imageData:

put empty into videoimagedata

put the width of image "userPortrait" of stack portraitName into
userImageWidth

put the height of image "userPortrait" of stack portraitName into
userImageHeight

revVideoFrameImage userImageWidth, userImageHeight, "videoimagedata"

set the imageData of image "userPortrait" of stack portraitName to
videoimagedata


Seems vanilla enough, right? The only thing I am doing different from the
sample scripts is that my target image happens to be in another stack.

All the stacks/windows are open and everything has the correct height and
width set.

If I log userImageWidth, userImageHeight and the captured videoimagedata,
there are what seem to be correct values in all of them. Well, the height
and width anyway seem correct. I can't visually confirm that the value of
videoimagedata is correct, but it is the correct size - userImageWidth x
userImageHeight x 4.

If I "put image userPortrait" there is what appears to be PNG data in there.

If I check the "number of characters of the imageData of image userPortrait"
there is the correct 57,600 characters in there (the image is 120x120).

And the paintCompression of image userPortrait is "png" in my stack and also
in the sample stack.

But:

* No image is displayed (even though it is displayed in the video grabber
window of course)

* If I "put the imageData of image userPortrait" the value displayed looks
empty in the message box - not even garbage characters.

Any ideas?

Thanks!

doug


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution