mlanypitts / webcamstudio

Automatically exported from code.google.com/p/webcamstudio
GNU General Public License v3.0
0 stars 0 forks source link

Can't open Logitech QuickCam Pro 5000 as Source #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Attach Logitech QuickCam Pro 5000
2. Add Cam as Input Source
3. WebcamStudio freezes in the AWT-Input Thread

What is the expected output? What do you see instead?
Show the webcam image

What version of the product are you using? On what operating system?
I've used the svn checkout

Please provide any additional information below.
I've investigated that a bit more, as the only workaround was to use guvcview 
to display the image, and then use the desktop source to get to the webcam 
image, which is a bit troubling.

The AWT Thread hung in the VideoSource4L.isPaused method, inside the 
pipe.getState(). That seems like a gstreamer-java or even a gstreamer bug. 
Maybe the call to pipe.getState should include a timeout, so that WebcamStudio 
don't need to be killed each time a bug like this occours.

Anyways, the underlying problem seems to be that my cam don't like the 
'videorate ! video/x-raw-yuv,framerate=15/1' part of the gstreamer pipeline 
setup. I've removed that part from the pipeline launch string and everything 
worked. 

I'd propose that the videorate setup should be left untouched by default and to 
add a checkbox to the video rate slider, and only to add the videorate string 
to the gstreamer pipeline if the video rate should be actually adjusted. 

I'd do that myself, but it seems you're using a UI tool for development, so I'd 
better not change the generated code. 

Hope that helps.

Original issue reported on code.google.com by ANeumann...@googlemail.com on 12 Jul 2011 at 1:19

GoogleCodeExporter commented 8 years ago
Ok, I think I know what is happening... Your webcam only support RGB format and 
not YUV.  That's pretty strange for a webcam.  Anyway, I'll look into the code 
to check if I can detector override the format.

While waiting, you can use a pipeline as your webcam source.  See the website 
on how to do this...

Original comment by patrick.balleux on 11 Aug 2011 at 9:32

GoogleCodeExporter commented 8 years ago
Moving away from GStreamer, to that won't be an issue anymore.

Original comment by patrick.balleux on 13 Nov 2011 at 4:11