Webcam tutorial issues

Hi guys,
I thought I would try the webcam service tutorial but it didnt work:

http://msdn2.microsoft.com/en-us/library/bb483096.aspx

Using MSRS 1.5 I tried following the instructions to first start the service from the command prompt, and then view still images in the webbrowser trying both Internet explorer and Mozilla Firefox. I was quite careful to check that I had typed in the commands properly.

I tried three different computers each running Windows XP pro. each one had between 512MB and 1GB of RAM with clock speeds between 1.2GHz and 3.0GHz.

I tired different VFW compliant video devices on the computers including:

1x Hauppage winTV USB tv tuner card
1x Avermedia 2k PCI tuner card
1x CamMaestro USB webcam
1x Aplux USB webcam

(I know these are VFW /direct show compliant devices because before MSRS came along I was programming for them in C++.)

If I changed the device on any computer, I stopped and then restarted the service to avoid any confilcts. To be doubly sure sometimes I even did a restart.

Basically I was only able to get a still frame from the AverTV2k and that was only from the tv tuner section of it. I can confirm that I was able to view this same image in all picture formats. Unfortunately I wasnt able to change the video input part of the TV card from the service. As it happens I actually had an analog camera connected to the composite input, and so wasnt interested in the antenna input.

Forgetting the tv tuners for a second, on all other regular USB webcams I didnt even get a single frame in any picture format (BMP,GIF etc). I wasnt able to view video on any of the devices at all. everytime I clicked on "start" or refresh the webpage refreshed but that option was not selected.

Can anybody help? Im struggling to see what I have done wrong, especially since Ive done it on different systems. Have I missed something really simple or is it just that this service does not have very good driver support?

[1997 byte] By [c6jones720] at [2008-1-9]
# 1
Try this:
1. Remove any initial state partners you have kicking around (ie, webcam.config.xml).
2. Start the webcam service.
3. In the device dropdown, verify that your camera is listed. Select it and click 'change'.
4. In the format dropdown, verify that there are sensible formats listed. Select one and click 'change'.
5. Now try refreshing. Sometimes there is some delay while the framegrabber reconfigures.

If you can't see your hardware in the device dropdown you're probably SOL. However, you can try hacking your own framegrabber using the webcam service source in samples\sensors\webcam

If you manage to configure the camera but can't restart the service, there was a bug in 1.0 and I don't recall whether it's been fixed in 1.5- edit the initial state config to fix the min and max framerates for the selected device format. These were getting zeroed by the service.

Good luck. :-)

RobSim--Braintech at 2007-10-3 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Hardware Configuration and Troubleshooting...
# 2
Thanks Rob, Its doesnt work on the Aplux camera on my work computer but I'll certainly try what you said on the TV tuners and USB cameras on my other computers when I get a chance.
c6jones720 at 2007-10-3 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Hardware Configuration and Troubleshooting...
# 3

With the Aplux camera, does it appear in the list of cameras on the WebCam service page?

The WebCam service is designed to work with DirectShow capture devices, some devices that only support the older VFW interfaces may not work, or may work in unexpected ways

PaulCRoberts at 2007-10-3 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Hardware Configuration and Troubleshooting...
# 4
Thanks guys for all your help the problem is now resolved,

The Aplux camera was not listed, but in truth it was never that good anyway (I was going to strip it down for parts). Like you said, renaming the webcamconfig.xml file to something else seems to have done the trick and I can now see video from my AverTV2k which proves the point quite nicely. - Now all I have to do is convert the picture from NTSC to PAL ;-)

c6jones720 at 2007-10-3 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Hardware Configuration and Troubleshooting...
# 5
Yep its working really well now -thanks..
c6jones720 at 2007-10-3 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Hardware Configuration and Troubleshooting...

Microsoft Robotics Studio

Site Classified