Staus of webcam support ind Croquet SDK KAT demo

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Staus of webcam support ind Croquet SDK KAT demo

Holz, Marc
Staus of webcam support ind Croquet SDK KAT demo

Hi,

I'm trying to get a webcam running in the KAT demo and the debugger comes up.
The the title windows show : "Error: DirectShow: True".

I noticed a disussion on croquet-dev concerning the same problem in February. Is some
working on that problem ?

Best Regards,

I'll appreciate any help very much.

Marc Holz


Reply | Threaded
Open this post in threaded view
|

Re: Staus of webcam support ind Croquet SDK KAT demo

Joshua Gargus-2
I don't think that anyone is working on the problem.

Josh


On Jun 5, 2007, at 8:18 AM, Holz, Marc wrote:


Hi,

I'm trying to get a webcam running in the KAT demo and the debugger comes up.
The the title windows show : "Error: DirectShow: True".

I noticed a disussion on croquet-dev concerning the same problem in February. Is some
working on that problem ?

Best Regards,

I'll appreciate any help very much.

Marc Holz



Reply | Threaded
Open this post in threaded view
|

RE: Staus of webcam support ind Croquet SDK KAT demo

Holz, Marc
Hi Josh,
 
Do you know someone who is currently running that camera plugin successful ? 
Do you think it's a matter of the type of the webcam ? I tried a Philips cam.
 
Best Regard,
 
Marc


From: Joshua Gargus [mailto:[hidden email]]
Sent: 05 Juni 2007 20:11
To: [hidden email]; Holz, Marc
Cc: [hidden email]
Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK KAT demo

I don't think that anyone is working on the problem.

Josh


On Jun 5, 2007, at 8:18 AM, Holz, Marc wrote:


Hi,

I'm trying to get a webcam running in the KAT demo and the debugger comes up.
The the title windows show : "Error: DirectShow: True".

I noticed a disussion on croquet-dev concerning the same problem in February. Is some
working on that problem ?

Best Regards,

I'll appreciate any help very much.

Marc Holz



Reply | Threaded
Open this post in threaded view
|

Re: Staus of webcam support ind Croquet SDK KAT demo

Howard Stearns
I'm running an ancient cheapo Intel Webcam on Windows, and an  
external iSight on Mac. No problems.

I know that some folks had some issues with UV scaling with DShow/
Windows, but I don't know where that stands. I remember that there  
was some discussion, but I can't find it now...

The error you're getting is Squeak's interpretation of the FFI error  
code from the plugin. It is as though the basic interface isn't  
working. (FFI or camera plugins not in place; wrong vm; or Windows  
not recognizing camera. You can check the latter with some camera app  
such as a version of AIM that does Webcam.  But it would be good to  
look at the stack and see if the basic communications are working.)

On Jun 6, 2007, at 11:21 AM, Holz, Marc wrote:

> Hi Josh,
>
> Do you know someone who is currently running that camera plugin  
> successful ?
> Do you think it's a matter of the type of the webcam ? I tried a  
> Philips cam.
>
> Best Regard,
>
> Marc
>
> From: Joshua Gargus [mailto:[hidden email]]
> Sent: 05 Juni 2007 20:11
> To: [hidden email]; Holz, Marc
> Cc: [hidden email]
> Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK  
> KAT demo
>
> I don't think that anyone is working on the problem.
>
> Josh
>
>
> On Jun 5, 2007, at 8:18 AM, Holz, Marc wrote:
>
>>
>> Hi,
>>
>> I'm trying to get a webcam running in the KAT demo and the  
>> debugger comes up.
>> The the title windows show : "Error: DirectShow: True".
>>
>> I noticed a disussion on croquet-dev concerning the same problem  
>> in February. Is some
>> working on that problem ?
>>
>> Best Regards,
>>
>> I'll appreciate any help very much.
>>
>> Marc Holz
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Staus of webcam support ind Croquet SDK KAT demo

Joshua Gargus-2
In reply to this post by Holz, Marc
Off-hand, I don't know anyone who's running the camera plugin successfully right now.  It used to work for me, and I expect that it still does.

Without the full debug stack (and even then) it's difficult to say exactly what the problem is, but my guess is that you're right, it probably has something to do with the type of webcam.  You're also correct to include Yoshiki on the recipients list; as you noticed, I used his plugin for grabbing the frames on Windows.

It couldn't hurt to send the whole debug stack to the list (it shows up in the SqueakDebug.log file).

Cheers,
Josh


On Jun 6, 2007, at 9:21 AM, Holz, Marc wrote:

Hi Josh,
 
Do you know someone who is currently running that camera plugin successful ? 
Do you think it's a matter of the type of the webcam ? I tried a Philips cam.
 
Best Regard,
 
Marc


From: Joshua Gargus [[hidden email]]
Sent: 05 Juni 2007 20:11
To: [hidden email]; Holz, Marc
Cc: [hidden email]
Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK KAT demo

I don't think that anyone is working on the problem.

Josh


On Jun 5, 2007, at 8:18 AM, Holz, Marc wrote:


Hi,

I'm trying to get a webcam running in the KAT demo and the debugger comes up.
The the title windows show : "Error: DirectShow: True".

I noticed a disussion on croquet-dev concerning the same problem in February. Is some
working on that problem ?

Best Regards,

I'll appreciate any help very much.

Marc Holz




Reply | Threaded
Open this post in threaded view
|

Re: Staus of webcam support ind Croquet SDK KAT demo

David Faught
In reply to this post by Howard Stearns
I had some limited success with the Windows webcam support in the
Collaborative. I don't have the code in front of me, but there is an #example1
method on the class-side of a DShow* class somewhere that will do basic
functionality of the camera.

The first problems that I had with this dealt with running the webcam's own app
first before I got into Croquet.  Apparently the webcam is not a sharable
resource and somehow its own app wouldn't let go of it properly once it had it.
 Once I got around that, the webcam output would appear in Croquet, but it was
aliased somehow so that the original image appeared about 5 times across the
window.  I still haven't fixed that one, but I think it may have something to
do with copying a captured frame directly to a powers-of-two-sized TForm.  Or
maybe not.
Reply | Threaded
Open this post in threaded view
|

RE: Staus of webcam support ind Croquet SDK KAT demo

Holz, Marc
In reply to this post by Howard Stearns
Hi Howard,

My camera is working fine on windows. I tried the test application which
came with the webcam setup.
The red ligth on my webcam goes on when adding it with "New>Video Camera
Output" whithin the KAT Demo.

I attached my SqueakDebug.log file. I using the Colloborative 1.0.9.
As you suggested it looks like the problem is inside one of the plugin
dlls. Both DShowVideoDecoderPlugin.dll and
SqueakFFIPrims.dll are in place.
What Do you mean with "UV scaling with DShow" ?

While writing this message I just started playing with the DShowplugin.
I evaluated the example1 function on the
class side and a black window showed up. I added then "(Delay
forSeconds: 10) wait." after "d decoderRun" and the
the camera work pefectly for 10 seconds ! I'm not sure what going wrong
in the KAT demo.


Greetings,

Marc,



-----Original Message-----
From: Howard Stearns [mailto:[hidden email]]
Sent: 06 Juni 2007 18:42
To: [hidden email]; Holz, Marc
Cc: Joshua Gargus; [hidden email]
Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK KAT
demo

I'm running an ancient cheapo Intel Webcam on Windows, and an external
iSight on Mac. No problems.

I know that some folks had some issues with UV scaling with DShow/
Windows, but I don't know where that stands. I remember that there was
some discussion, but I can't find it now...

The error you're getting is Squeak's interpretation of the FFI error
code from the plugin. It is as though the basic interface isn't working.
(FFI or camera plugins not in place; wrong vm; or Windows not
recognizing camera. You can check the latter with some camera app such
as a version of AIM that does Webcam.  But it would be good to look at
the stack and see if the basic communications are working.)

On Jun 6, 2007, at 11:21 AM, Holz, Marc wrote:

> Hi Josh,
>
> Do you know someone who is currently running that camera plugin
> successful ?
> Do you think it's a matter of the type of the webcam ? I tried a
> Philips cam.
>
> Best Regard,
>
> Marc
>
> From: Joshua Gargus [mailto:[hidden email]]
> Sent: 05 Juni 2007 20:11
> To: [hidden email]; Holz, Marc
> Cc: [hidden email]
> Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK KAT

> demo
>
> I don't think that anyone is working on the problem.
>
> Josh
>
>
> On Jun 5, 2007, at 8:18 AM, Holz, Marc wrote:
>
>>
>> Hi,
>>
>> I'm trying to get a webcam running in the KAT demo and the debugger
>> comes up.
>> The the title windows show : "Error: DirectShow: True".
>>
>> I noticed a disussion on croquet-dev concerning the same problem in
>> February. Is some working on that problem ?
>>
>> Best Regards,
>>
>> I'll appreciate any help very much.
>>
>> Marc Holz
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

RE: Staus of webcam support ind Croquet SDK KAT demo

Holz, Marc
In reply to this post by Howard Stearns
 Here's the Squeakdebug.log

Marc

-----Original Message-----
From: Holz, Marc
Sent: 08 Juni 2007 10:12
To: 'Howard Stearns'; [hidden email]
Cc: Joshua Gargus; [hidden email]
Subject: RE: [croquet-dev] Staus of webcam support ind Croquet SDK KAT
demo

Hi Howard,

My camera is working fine on windows. I tried the test application which
came with the webcam setup.
The red ligth on my webcam goes on when adding it with "New>Video Camera
Output" whithin the KAT Demo.

I attached my SqueakDebug.log file. I using the Colloborative 1.0.9.
As you suggested it looks like the problem is inside one of the plugin
dlls. Both DShowVideoDecoderPlugin.dll and SqueakFFIPrims.dll are in
place.
What Do you mean with "UV scaling with DShow" ?

While writing this message I just started playing with the DShowplugin.
I evaluated the example1 function on the class side and a black window
showed up. I added then "(Delay forSeconds: 10) wait." after "d
decoderRun" and the the camera work pefectly for 10 seconds ! I'm not
sure what going wrong in the KAT demo.


Greetings,

Marc,



-----Original Message-----
From: Howard Stearns [mailto:[hidden email]]
Sent: 06 Juni 2007 18:42
To: [hidden email]; Holz, Marc
Cc: Joshua Gargus; [hidden email]
Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK KAT
demo

I'm running an ancient cheapo Intel Webcam on Windows, and an external
iSight on Mac. No problems.

I know that some folks had some issues with UV scaling with DShow/
Windows, but I don't know where that stands. I remember that there was
some discussion, but I can't find it now...

The error you're getting is Squeak's interpretation of the FFI error
code from the plugin. It is as though the basic interface isn't working.
(FFI or camera plugins not in place; wrong vm; or Windows not
recognizing camera. You can check the latter with some camera app such
as a version of AIM that does Webcam.  But it would be good to look at
the stack and see if the basic communications are working.)

On Jun 6, 2007, at 11:21 AM, Holz, Marc wrote:

> Hi Josh,
>
> Do you know someone who is currently running that camera plugin
> successful ?
> Do you think it's a matter of the type of the webcam ? I tried a
> Philips cam.
>
> Best Regard,
>
> Marc
>
> From: Joshua Gargus [mailto:[hidden email]]
> Sent: 05 Juni 2007 20:11
> To: [hidden email]; Holz, Marc
> Cc: [hidden email]
> Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK KAT

> demo
>
> I don't think that anyone is working on the problem.
>
> Josh
>
>
> On Jun 5, 2007, at 8:18 AM, Holz, Marc wrote:
>
>>
>> Hi,
>>
>> I'm trying to get a webcam running in the KAT demo and the debugger
>> comes up.
>> The the title windows show : "Error: DirectShow: True".
>>
>> I noticed a disussion on croquet-dev concerning the same problem in
>> February. Is some working on that problem ?
>>
>> Best Regards,
>>
>> I'll appreciate any help very much.
>>
>> Marc Holz
>>
>>
>


SqueakDebug.log (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Staus of webcam support ind Croquet SDK KAT demo

Joshua Gargus-2
Hi Marc,

Thanks for sending the SqueakDebug.log, it was very helpful.

In KVideoGrabberWin32>>ensureInitialized, try replacing the chunk of  
code that creates the grabber with the following (one line has been  
added).

        dshow := DShowVideoController new.
        dshow
                createFrameSemaphore;
                initializeDecoder;
                decoderSetDecodeSizeWidth: form width Height: form height;
                checkForError.

Does this help?

Josh



On Jun 8, 2007, at 1:18 AM, Holz, Marc wrote:

>  Here's the Squeakdebug.log
>
> Marc
>
> -----Original Message-----
> From: Holz, Marc
> Sent: 08 Juni 2007 10:12
> To: 'Howard Stearns'; [hidden email]
> Cc: Joshua Gargus; [hidden email]
> Subject: RE: [croquet-dev] Staus of webcam support ind Croquet SDK KAT
> demo
>
> Hi Howard,
>
> My camera is working fine on windows. I tried the test application  
> which
> came with the webcam setup.
> The red ligth on my webcam goes on when adding it with "New>Video  
> Camera
> Output" whithin the KAT Demo.
>
> I attached my SqueakDebug.log file. I using the Colloborative 1.0.9.
> As you suggested it looks like the problem is inside one of the plugin
> dlls. Both DShowVideoDecoderPlugin.dll and SqueakFFIPrims.dll are in
> place.
> What Do you mean with "UV scaling with DShow" ?
>
> While writing this message I just started playing with the  
> DShowplugin.
> I evaluated the example1 function on the class side and a black window
> showed up. I added then "(Delay forSeconds: 10) wait." after "d
> decoderRun" and the the camera work pefectly for 10 seconds ! I'm not
> sure what going wrong in the KAT demo.
>
>
> Greetings,
>
> Marc,
>
>
>
> -----Original Message-----
> From: Howard Stearns [mailto:[hidden email]]
> Sent: 06 Juni 2007 18:42
> To: [hidden email]; Holz, Marc
> Cc: Joshua Gargus; [hidden email]
> Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK KAT
> demo
>
> I'm running an ancient cheapo Intel Webcam on Windows, and an external
> iSight on Mac. No problems.
>
> I know that some folks had some issues with UV scaling with DShow/
> Windows, but I don't know where that stands. I remember that there was
> some discussion, but I can't find it now...
>
> The error you're getting is Squeak's interpretation of the FFI error
> code from the plugin. It is as though the basic interface isn't  
> working.
> (FFI or camera plugins not in place; wrong vm; or Windows not
> recognizing camera. You can check the latter with some camera app such
> as a version of AIM that does Webcam.  But it would be good to look at
> the stack and see if the basic communications are working.)
>
> On Jun 6, 2007, at 11:21 AM, Holz, Marc wrote:
>
>> Hi Josh,
>>
>> Do you know someone who is currently running that camera plugin
>> successful ?
>> Do you think it's a matter of the type of the webcam ? I tried a
>> Philips cam.
>>
>> Best Regard,
>>
>> Marc
>>
>> From: Joshua Gargus [mailto:[hidden email]]
>> Sent: 05 Juni 2007 20:11
>> To: [hidden email]; Holz, Marc
>> Cc: [hidden email]
>> Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK  
>> KAT
>
>> demo
>>
>> I don't think that anyone is working on the problem.
>>
>> Josh
>>
>>
>> On Jun 5, 2007, at 8:18 AM, Holz, Marc wrote:
>>
>>>
>>> Hi,
>>>
>>> I'm trying to get a webcam running in the KAT demo and the debugger
>>> comes up.
>>> The the title windows show : "Error: DirectShow: True".
>>>
>>> I noticed a disussion on croquet-dev concerning the same problem in
>>> February. Is some working on that problem ?
>>>
>>> Best Regards,
>>>
>>> I'll appreciate any help very much.
>>>
>>> Marc Holz
>>>
>>>
>>
>
> <SqueakDebug.log>

Reply | Threaded
Open this post in threaded view
|

RE: Staus of webcam support ind Croquet SDK KAT demo

Holz, Marc
Ji Josh,

I added that line but now I getting a different behavoir. When adding a
camera I'm getting now a black window above my bunny. No debugger.
It's seems to me that  KVideoGrabberWin32>>privateUpdateForm is not
being called anymore. The camera ligth stays off as well (camera is
off).
 
Without the line "decoderSetDecodeSizeWidth: ..." the function
KVideoGrabberWin32>>privateUpdateForm
is called and fails in decoderCopyLastCapturedFrameInto. But here the
camera is being intialized (camera ligth is on).

Looking at DShowVideoController>>decoderSetDecodeSizeWidth: there's a
outside call to DShowVideoDecoderPlugin dll.
That call is somehow doing nothing.

I think it's a matter of my camera not beeing able to set a specific
window size.

Greetings,

Marc


-----Original Message-----
From: Joshua Gargus [mailto:[hidden email]]
Sent: 08 Juni 2007 10:30
To: Holz, Marc
Cc: Howard Stearns; [hidden email]; [hidden email]
Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK KAT
demo

Hi Marc,

Thanks for sending the SqueakDebug.log, it was very helpful.

In KVideoGrabberWin32>>ensureInitialized, try replacing the chunk of
code that creates the grabber with the following (one line has been
added).

        dshow := DShowVideoController new.
        dshow
                createFrameSemaphore;
                initializeDecoder;
                decoderSetDecodeSizeWidth: form width Height: form
height;
                checkForError.

Does this help?

Josh



On Jun 8, 2007, at 1:18 AM, Holz, Marc wrote:

>  Here's the Squeakdebug.log
>
> Marc
>
> -----Original Message-----
> From: Holz, Marc
> Sent: 08 Juni 2007 10:12
> To: 'Howard Stearns'; [hidden email]
> Cc: Joshua Gargus; [hidden email]
> Subject: RE: [croquet-dev] Staus of webcam support ind Croquet SDK KAT

> demo
>
> Hi Howard,
>
> My camera is working fine on windows. I tried the test application
> which came with the webcam setup.
> The red ligth on my webcam goes on when adding it with "New>Video
> Camera Output" whithin the KAT Demo.
>
> I attached my SqueakDebug.log file. I using the Colloborative 1.0.9.
> As you suggested it looks like the problem is inside one of the plugin

> dlls. Both DShowVideoDecoderPlugin.dll and SqueakFFIPrims.dll are in
> place.
> What Do you mean with "UV scaling with DShow" ?
>
> While writing this message I just started playing with the
> DShowplugin.
> I evaluated the example1 function on the class side and a black window

> showed up. I added then "(Delay forSeconds: 10) wait." after "d
> decoderRun" and the the camera work pefectly for 10 seconds ! I'm not
> sure what going wrong in the KAT demo.
>
>
> Greetings,
>
> Marc,
>
>
>
> -----Original Message-----
> From: Howard Stearns [mailto:[hidden email]]
> Sent: 06 Juni 2007 18:42
> To: [hidden email]; Holz, Marc
> Cc: Joshua Gargus; [hidden email]
> Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK KAT

> demo
>
> I'm running an ancient cheapo Intel Webcam on Windows, and an external

> iSight on Mac. No problems.
>
> I know that some folks had some issues with UV scaling with DShow/
> Windows, but I don't know where that stands. I remember that there was

> some discussion, but I can't find it now...
>
> The error you're getting is Squeak's interpretation of the FFI error
> code from the plugin. It is as though the basic interface isn't
> working.
> (FFI or camera plugins not in place; wrong vm; or Windows not
> recognizing camera. You can check the latter with some camera app such

> as a version of AIM that does Webcam.  But it would be good to look at

> the stack and see if the basic communications are working.)
>
> On Jun 6, 2007, at 11:21 AM, Holz, Marc wrote:
>
>> Hi Josh,
>>
>> Do you know someone who is currently running that camera plugin
>> successful ?
>> Do you think it's a matter of the type of the webcam ? I tried a
>> Philips cam.
>>
>> Best Regard,
>>
>> Marc
>>
>> From: Joshua Gargus [mailto:[hidden email]]
>> Sent: 05 Juni 2007 20:11
>> To: [hidden email]; Holz, Marc
>> Cc: [hidden email]
>> Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK
>> KAT
>
>> demo
>>
>> I don't think that anyone is working on the problem.
>>
>> Josh
>>
>>
>> On Jun 5, 2007, at 8:18 AM, Holz, Marc wrote:
>>
>>>
>>> Hi,
>>>
>>> I'm trying to get a webcam running in the KAT demo and the debugger
>>> comes up.
>>> The the title windows show : "Error: DirectShow: True".
>>>
>>> I noticed a disussion on croquet-dev concerning the same problem in
>>> February. Is some working on that problem ?
>>>
>>> Best Regards,
>>>
>>> I'll appreciate any help very much.
>>>
>>> Marc Holz
>>>
>>>
>>
>
> <SqueakDebug.log>

Reply | Threaded
Open this post in threaded view
|

Re: Staus of webcam support ind Croquet SDK KAT demo

Joshua Gargus-2
In that case, try instead to change the side of the form that is  
decoded into.  Roll back the change from my previous email, and  
instead override KVideoGrabber>>defaultExtent in KVideoGraberWin32 ...

        defaultExtent
                ^ 320@240 "instead of 160@120"

If this fails, then you might try grasping at straws by trying other  
resolutions, starting with 640@480.

Good luck,
Josh


On Jun 8, 2007, at 3:43 AM, Holz, Marc wrote:

> Ji Josh,
>
> I added that line but now I getting a different behavoir. When  
> adding a
> camera I'm getting now a black window above my bunny. No debugger.
> It's seems to me that  KVideoGrabberWin32>>privateUpdateForm is not
> being called anymore. The camera ligth stays off as well (camera is
> off).
>
> Without the line "decoderSetDecodeSizeWidth: ..." the function
> KVideoGrabberWin32>>privateUpdateForm
> is called and fails in decoderCopyLastCapturedFrameInto. But here the
> camera is being intialized (camera ligth is on).
>
> Looking at DShowVideoController>>decoderSetDecodeSizeWidth: there's a
> outside call to DShowVideoDecoderPlugin dll.
> That call is somehow doing nothing.
>
> I think it's a matter of my camera not beeing able to set a specific
> window size.
>
> Greetings,
>
> Marc
>
>
> -----Original Message-----
> From: Joshua Gargus [mailto:[hidden email]]
> Sent: 08 Juni 2007 10:30
> To: Holz, Marc
> Cc: Howard Stearns; [hidden email]; [hidden email]
> Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK KAT
> demo
>
> Hi Marc,
>
> Thanks for sending the SqueakDebug.log, it was very helpful.
>
> In KVideoGrabberWin32>>ensureInitialized, try replacing the chunk of
> code that creates the grabber with the following (one line has been
> added).
>
> dshow := DShowVideoController new.
> dshow
> createFrameSemaphore;
> initializeDecoder;
> decoderSetDecodeSizeWidth: form width Height: form
> height;
> checkForError.
>
> Does this help?
>
> Josh
>
>
>
> On Jun 8, 2007, at 1:18 AM, Holz, Marc wrote:
>
>>  Here's the Squeakdebug.log
>>
>> Marc
>>
>> -----Original Message-----
>> From: Holz, Marc
>> Sent: 08 Juni 2007 10:12
>> To: 'Howard Stearns'; [hidden email]
>> Cc: Joshua Gargus; [hidden email]
>> Subject: RE: [croquet-dev] Staus of webcam support ind Croquet SDK  
>> KAT
>
>> demo
>>
>> Hi Howard,
>>
>> My camera is working fine on windows. I tried the test application
>> which came with the webcam setup.
>> The red ligth on my webcam goes on when adding it with "New>Video
>> Camera Output" whithin the KAT Demo.
>>
>> I attached my SqueakDebug.log file. I using the Colloborative 1.0.9.
>> As you suggested it looks like the problem is inside one of the  
>> plugin
>
>> dlls. Both DShowVideoDecoderPlugin.dll and SqueakFFIPrims.dll are in
>> place.
>> What Do you mean with "UV scaling with DShow" ?
>>
>> While writing this message I just started playing with the
>> DShowplugin.
>> I evaluated the example1 function on the class side and a black  
>> window
>
>> showed up. I added then "(Delay forSeconds: 10) wait." after "d
>> decoderRun" and the the camera work pefectly for 10 seconds ! I'm not
>> sure what going wrong in the KAT demo.
>>
>>
>> Greetings,
>>
>> Marc,
>>
>>
>>
>> -----Original Message-----
>> From: Howard Stearns [mailto:[hidden email]]
>> Sent: 06 Juni 2007 18:42
>> To: [hidden email]; Holz, Marc
>> Cc: Joshua Gargus; [hidden email]
>> Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK  
>> KAT
>
>> demo
>>
>> I'm running an ancient cheapo Intel Webcam on Windows, and an  
>> external
>
>> iSight on Mac. No problems.
>>
>> I know that some folks had some issues with UV scaling with DShow/
>> Windows, but I don't know where that stands. I remember that there  
>> was
>
>> some discussion, but I can't find it now...
>>
>> The error you're getting is Squeak's interpretation of the FFI error
>> code from the plugin. It is as though the basic interface isn't
>> working.
>> (FFI or camera plugins not in place; wrong vm; or Windows not
>> recognizing camera. You can check the latter with some camera app  
>> such
>
>> as a version of AIM that does Webcam.  But it would be good to  
>> look at
>
>> the stack and see if the basic communications are working.)
>>
>> On Jun 6, 2007, at 11:21 AM, Holz, Marc wrote:
>>
>>> Hi Josh,
>>>
>>> Do you know someone who is currently running that camera plugin
>>> successful ?
>>> Do you think it's a matter of the type of the webcam ? I tried a
>>> Philips cam.
>>>
>>> Best Regard,
>>>
>>> Marc
>>>
>>> From: Joshua Gargus [mailto:[hidden email]]
>>> Sent: 05 Juni 2007 20:11
>>> To: [hidden email]; Holz, Marc
>>> Cc: [hidden email]
>>> Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK
>>> KAT
>>
>>> demo
>>>
>>> I don't think that anyone is working on the problem.
>>>
>>> Josh
>>>
>>>
>>> On Jun 5, 2007, at 8:18 AM, Holz, Marc wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> I'm trying to get a webcam running in the KAT demo and the debugger
>>>> comes up.
>>>> The the title windows show : "Error: DirectShow: True".
>>>>
>>>> I noticed a disussion on croquet-dev concerning the same problem in
>>>> February. Is some working on that problem ?
>>>>
>>>> Best Regards,
>>>>
>>>> I'll appreciate any help very much.
>>>>
>>>> Marc Holz
>>>>
>>>>
>>>
>>
>> <SqueakDebug.log>
>

Reply | Threaded
Open this post in threaded view
|

RE: Staus of webcam support ind Croquet SDK KAT demo

Holz, Marc
Dear Josh,

Changing the size of the receiving form did the trick !
The webcam is now working

Greetings,

Marc

-----Original Message-----
From: Joshua Gargus [mailto:[hidden email]]
Sent: 08 Juni 2007 19:02
To: Holz, Marc
Cc: Howard Stearns; [hidden email]; [hidden email]
Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK KAT
demo
Importance: High

In that case, try instead to change the side of the form that is decoded
into.  Roll back the change from my previous email, and instead override
KVideoGrabber>>defaultExtent in KVideoGraberWin32 ...

        defaultExtent
                ^ 320@240 "instead of 160@120"

If this fails, then you might try grasping at straws by trying other
resolutions, starting with 640@480.

Good luck,
Josh


On Jun 8, 2007, at 3:43 AM, Holz, Marc wrote:

> Ji Josh,
>
> I added that line but now I getting a different behavoir. When adding
> a camera I'm getting now a black window above my bunny. No debugger.
> It's seems to me that  KVideoGrabberWin32>>privateUpdateForm is not
> being called anymore. The camera ligth stays off as well (camera is
> off).
>
> Without the line "decoderSetDecodeSizeWidth: ..." the function
> KVideoGrabberWin32>>privateUpdateForm
> is called and fails in decoderCopyLastCapturedFrameInto. But here the
> camera is being intialized (camera ligth is on).
>
> Looking at DShowVideoController>>decoderSetDecodeSizeWidth: there's a
> outside call to DShowVideoDecoderPlugin dll.
> That call is somehow doing nothing.
>
> I think it's a matter of my camera not beeing able to set a specific
> window size.
>
> Greetings,
>
> Marc
>
>
> -----Original Message-----
> From: Joshua Gargus [mailto:[hidden email]]
> Sent: 08 Juni 2007 10:30
> To: Holz, Marc
> Cc: Howard Stearns; [hidden email]; [hidden email]
> Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK KAT

> demo
>
> Hi Marc,
>
> Thanks for sending the SqueakDebug.log, it was very helpful.
>
> In KVideoGrabberWin32>>ensureInitialized, try replacing the chunk of
> code that creates the grabber with the following (one line has been
> added).
>
> dshow := DShowVideoController new.
> dshow
> createFrameSemaphore;
> initializeDecoder;
> decoderSetDecodeSizeWidth: form width Height: form
height;

> checkForError.
>
> Does this help?
>
> Josh
>
>
>
> On Jun 8, 2007, at 1:18 AM, Holz, Marc wrote:
>
>>  Here's the Squeakdebug.log
>>
>> Marc
>>
>> -----Original Message-----
>> From: Holz, Marc
>> Sent: 08 Juni 2007 10:12
>> To: 'Howard Stearns'; [hidden email]
>> Cc: Joshua Gargus; [hidden email]
>> Subject: RE: [croquet-dev] Staus of webcam support ind Croquet SDK
>> KAT
>
>> demo
>>
>> Hi Howard,
>>
>> My camera is working fine on windows. I tried the test application
>> which came with the webcam setup.
>> The red ligth on my webcam goes on when adding it with "New>Video
>> Camera Output" whithin the KAT Demo.
>>
>> I attached my SqueakDebug.log file. I using the Colloborative 1.0.9.
>> As you suggested it looks like the problem is inside one of the
>> plugin
>
>> dlls. Both DShowVideoDecoderPlugin.dll and SqueakFFIPrims.dll are in
>> place.
>> What Do you mean with "UV scaling with DShow" ?
>>
>> While writing this message I just started playing with the
>> DShowplugin.
>> I evaluated the example1 function on the class side and a black
>> window
>
>> showed up. I added then "(Delay forSeconds: 10) wait." after "d
>> decoderRun" and the the camera work pefectly for 10 seconds ! I'm not

>> sure what going wrong in the KAT demo.
>>
>>
>> Greetings,
>>
>> Marc,
>>
>>
>>
>> -----Original Message-----
>> From: Howard Stearns [mailto:[hidden email]]
>> Sent: 06 Juni 2007 18:42
>> To: [hidden email]; Holz, Marc
>> Cc: Joshua Gargus; [hidden email]
>> Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK
>> KAT
>
>> demo
>>
>> I'm running an ancient cheapo Intel Webcam on Windows, and an
>> external
>
>> iSight on Mac. No problems.
>>
>> I know that some folks had some issues with UV scaling with DShow/
>> Windows, but I don't know where that stands. I remember that there
>> was
>
>> some discussion, but I can't find it now...
>>
>> The error you're getting is Squeak's interpretation of the FFI error
>> code from the plugin. It is as though the basic interface isn't
>> working.
>> (FFI or camera plugins not in place; wrong vm; or Windows not
>> recognizing camera. You can check the latter with some camera app
>> such
>
>> as a version of AIM that does Webcam.  But it would be good to look
>> at
>
>> the stack and see if the basic communications are working.)
>>
>> On Jun 6, 2007, at 11:21 AM, Holz, Marc wrote:
>>
>>> Hi Josh,
>>>
>>> Do you know someone who is currently running that camera plugin
>>> successful ?
>>> Do you think it's a matter of the type of the webcam ? I tried a
>>> Philips cam.
>>>
>>> Best Regard,
>>>
>>> Marc
>>>
>>> From: Joshua Gargus [mailto:[hidden email]]
>>> Sent: 05 Juni 2007 20:11
>>> To: [hidden email]; Holz, Marc
>>> Cc: [hidden email]
>>> Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK
>>> KAT
>>
>>> demo
>>>
>>> I don't think that anyone is working on the problem.
>>>
>>> Josh
>>>
>>>
>>> On Jun 5, 2007, at 8:18 AM, Holz, Marc wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> I'm trying to get a webcam running in the KAT demo and the debugger

>>>> comes up.
>>>> The the title windows show : "Error: DirectShow: True".
>>>>
>>>> I noticed a disussion on croquet-dev concerning the same problem in

>>>> February. Is some working on that problem ?
>>>>
>>>> Best Regards,
>>>>
>>>> I'll appreciate any help very much.
>>>>
>>>> Marc Holz
>>>>
>>>>
>>>
>>
>> <SqueakDebug.log>
>

Reply | Threaded
Open this post in threaded view
|

Re: Staus of webcam support ind Croquet SDK KAT demo

Joshua Gargus-2
I'm glad that worked!  Thanks for helping us debug it.

Josh


On Jun 11, 2007, at 12:32 AM, Holz, Marc wrote:

> Dear Josh,
>
> Changing the size of the receiving form did the trick !
> The webcam is now working
>
> Greetings,
>
> Marc
>
> -----Original Message-----
> From: Joshua Gargus [mailto:[hidden email]]
> Sent: 08 Juni 2007 19:02
> To: Holz, Marc
> Cc: Howard Stearns; [hidden email]; [hidden email]
> Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK KAT
> demo
> Importance: High
>
> In that case, try instead to change the side of the form that is  
> decoded
> into.  Roll back the change from my previous email, and instead  
> override
> KVideoGrabber>>defaultExtent in KVideoGraberWin32 ...
>
> defaultExtent
> ^ 320@240 "instead of 160@120"
>
> If this fails, then you might try grasping at straws by trying other
> resolutions, starting with 640@480.
>
> Good luck,
> Josh
>
>
> On Jun 8, 2007, at 3:43 AM, Holz, Marc wrote:
>
>> Ji Josh,
>>
>> I added that line but now I getting a different behavoir. When adding
>> a camera I'm getting now a black window above my bunny. No debugger.
>> It's seems to me that  KVideoGrabberWin32>>privateUpdateForm is not
>> being called anymore. The camera ligth stays off as well (camera is
>> off).
>>
>> Without the line "decoderSetDecodeSizeWidth: ..." the function
>> KVideoGrabberWin32>>privateUpdateForm
>> is called and fails in decoderCopyLastCapturedFrameInto. But here the
>> camera is being intialized (camera ligth is on).
>>
>> Looking at DShowVideoController>>decoderSetDecodeSizeWidth: there's a
>> outside call to DShowVideoDecoderPlugin dll.
>> That call is somehow doing nothing.
>>
>> I think it's a matter of my camera not beeing able to set a specific
>> window size.
>>
>> Greetings,
>>
>> Marc
>>
>>
>> -----Original Message-----
>> From: Joshua Gargus [mailto:[hidden email]]
>> Sent: 08 Juni 2007 10:30
>> To: Holz, Marc
>> Cc: Howard Stearns; [hidden email]; [hidden email]
>> Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK  
>> KAT
>
>> demo
>>
>> Hi Marc,
>>
>> Thanks for sending the SqueakDebug.log, it was very helpful.
>>
>> In KVideoGrabberWin32>>ensureInitialized, try replacing the chunk of
>> code that creates the grabber with the following (one line has been
>> added).
>>
>> dshow := DShowVideoController new.
>> dshow
>> createFrameSemaphore;
>> initializeDecoder;
>> decoderSetDecodeSizeWidth: form width Height: form
> height;
>> checkForError.
>>
>> Does this help?
>>
>> Josh
>>
>>
>>
>> On Jun 8, 2007, at 1:18 AM, Holz, Marc wrote:
>>
>>>  Here's the Squeakdebug.log
>>>
>>> Marc
>>>
>>> -----Original Message-----
>>> From: Holz, Marc
>>> Sent: 08 Juni 2007 10:12
>>> To: 'Howard Stearns'; [hidden email]
>>> Cc: Joshua Gargus; [hidden email]
>>> Subject: RE: [croquet-dev] Staus of webcam support ind Croquet SDK
>>> KAT
>>
>>> demo
>>>
>>> Hi Howard,
>>>
>>> My camera is working fine on windows. I tried the test application
>>> which came with the webcam setup.
>>> The red ligth on my webcam goes on when adding it with "New>Video
>>> Camera Output" whithin the KAT Demo.
>>>
>>> I attached my SqueakDebug.log file. I using the Colloborative 1.0.9.
>>> As you suggested it looks like the problem is inside one of the
>>> plugin
>>
>>> dlls. Both DShowVideoDecoderPlugin.dll and SqueakFFIPrims.dll are in
>>> place.
>>> What Do you mean with "UV scaling with DShow" ?
>>>
>>> While writing this message I just started playing with the
>>> DShowplugin.
>>> I evaluated the example1 function on the class side and a black
>>> window
>>
>>> showed up. I added then "(Delay forSeconds: 10) wait." after "d
>>> decoderRun" and the the camera work pefectly for 10 seconds ! I'm  
>>> not
>
>>> sure what going wrong in the KAT demo.
>>>
>>>
>>> Greetings,
>>>
>>> Marc,
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: Howard Stearns [mailto:[hidden email]]
>>> Sent: 06 Juni 2007 18:42
>>> To: [hidden email]; Holz, Marc
>>> Cc: Joshua Gargus; [hidden email]
>>> Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK
>>> KAT
>>
>>> demo
>>>
>>> I'm running an ancient cheapo Intel Webcam on Windows, and an
>>> external
>>
>>> iSight on Mac. No problems.
>>>
>>> I know that some folks had some issues with UV scaling with DShow/
>>> Windows, but I don't know where that stands. I remember that there
>>> was
>>
>>> some discussion, but I can't find it now...
>>>
>>> The error you're getting is Squeak's interpretation of the FFI error
>>> code from the plugin. It is as though the basic interface isn't
>>> working.
>>> (FFI or camera plugins not in place; wrong vm; or Windows not
>>> recognizing camera. You can check the latter with some camera app
>>> such
>>
>>> as a version of AIM that does Webcam.  But it would be good to look
>>> at
>>
>>> the stack and see if the basic communications are working.)
>>>
>>> On Jun 6, 2007, at 11:21 AM, Holz, Marc wrote:
>>>
>>>> Hi Josh,
>>>>
>>>> Do you know someone who is currently running that camera plugin
>>>> successful ?
>>>> Do you think it's a matter of the type of the webcam ? I tried a
>>>> Philips cam.
>>>>
>>>> Best Regard,
>>>>
>>>> Marc
>>>>
>>>> From: Joshua Gargus [mailto:[hidden email]]
>>>> Sent: 05 Juni 2007 20:11
>>>> To: [hidden email]; Holz, Marc
>>>> Cc: [hidden email]
>>>> Subject: Re: [croquet-dev] Staus of webcam support ind Croquet SDK
>>>> KAT
>>>
>>>> demo
>>>>
>>>> I don't think that anyone is working on the problem.
>>>>
>>>> Josh
>>>>
>>>>
>>>> On Jun 5, 2007, at 8:18 AM, Holz, Marc wrote:
>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> I'm trying to get a webcam running in the KAT demo and the  
>>>>> debugger
>
>>>>> comes up.
>>>>> The the title windows show : "Error: DirectShow: True".
>>>>>
>>>>> I noticed a disussion on croquet-dev concerning the same  
>>>>> problem in
>
>>>>> February. Is some working on that problem ?
>>>>>
>>>>> Best Regards,
>>>>>
>>>>> I'll appreciate any help very much.
>>>>>
>>>>> Marc Holz
>>>>>
>>>>>
>>>>
>>>
>>> <SqueakDebug.log>
>>
>