You are not logged in.

#1 2009-02-10 22:45:58

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

webcam issues (Logitech orbicam on Acer)

Hello there,

I have troubles with my embedded webcam.

$ lsusb
Bus 001 Device 003: ID 046d:0896 Logitech, Inc.

It used to work fine a while back in Ubuntu 32-bit but now I get bad image mostly made of garbled green lines and garbage (using cheese) or a green image (using skype).
I use Arch 64 so I don't know if this is Arch-related or 64-bit-related or whatever else it could be.

I'd appreciate some guidance.

Thx.


what goes up must come down

Offline

#2 2009-02-10 23:00:18

Lilim
Member
From: Poland
Registered: 2008-02-09
Posts: 37

Re: webcam issues (Logitech orbicam on Acer)

Offline

#3 2009-02-11 13:52:51

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: webcam issues (Logitech orbicam on Acer)

No, it doesn't change anything.
cheese_snapshot1.png

Note that for skype I get

$ LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype
ERROR: ld.so: object '/usr/lib/libv4l/v4l1compat.so' from LD_PRELOAD cannot be preloaded: ignored.

what goes up must come down

Offline

#4 2009-02-27 20:22:25

JunglePenguin
Member
From: Netherlands
Registered: 2005-12-27
Posts: 6

Re: webcam issues (Logitech orbicam on Acer)

I had the same problem with skype on 64-bit Arch.

The solution that works for me:
Install lib32-libv4l from AUR
start skype with LD_PRELOAD=/opt/lib32/usr/lib/libv4l/v4l1compat.so skype

I have also tried cheese and it works.

Hope this will work for you too.

Offline

#5 2009-02-27 21:09:38

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: webcam issues (Logitech orbicam on Acer)

nope, it doesn't work either. I get:

$ LD_PRELOAD=/opt/lib32/usr/lib/libv4l/v4l1compat.so skype
QIconvCodec::convertFromUnicode: using ASCII for conversion, iconv_open failed
QIconvCodec::convertToUnicode: using ASCII for conversion, iconv_open failed
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".

and

$ LD_PRELOAD=/opt/lib32/usr/lib/libv4l/v4l1compat.so cheese
ERROR: ld.so: object '/opt/lib32/usr/lib/libv4l/v4l1compat.so' from LD_PRELOAD cannot be preloaded: ignored.
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".

any idea ?


what goes up must come down

Offline

#6 2009-02-28 10:14:44

JunglePenguin
Member
From: Netherlands
Registered: 2005-12-27
Posts: 6

Re: webcam issues (Logitech orbicam on Acer)

Maybe it is loading the wrong driver.

As far as I can tell you need the linux-uvc driver for a logitech orbicam which is part of the latest kernels.

Did you load the uvcvideo module?
If not try modprobe uvcvideo as root.

At least it is now loading v4l1compat.so with skype wink
I don't need the LD_PRELOAD part to start cheese.

Offline

#7 2009-02-28 15:50:14

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: webcam issues (Logitech orbicam on Acer)

Far out idea here, go to /home/yourusername/.skype/config.xml and insert something like

    <Video>
      <CaptureHeight>240</CaptureHeight>
      <CaptureWidth>320</CaptureWidth>
      <Fps>30</Fps>
    </Video>

inside the <lib> thing (I don't know how to call it). CaptureHeight and CaptureWidth might not be needed but I leave it here as a reference.
You seem to get a bit of an image so thats a start, I used to get a strange distortion too with skype until I figured out that some combinations of fps/resolutions would do that.
Maybe you can try guvcview from the aur and test the fps/resolution combinations allowed/reported by your webcam, it's a nice program that will let you test that and do lots more with your webcam and maybe it will help you sort out your problem.

Last edited by R00KIE (2009-02-28 15:51:44)


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#8 2009-03-01 20:56:52

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: webcam issues (Logitech orbicam on Acer)

JunglePenguin wrote:

Maybe it is loading the wrong driver.

As far as I can tell you need the linux-uvc driver for a logitech orbicam which is part of the latest kernels.

Did you load the uvcvideo module?
If not try modprobe uvcvideo as root.

At least it is now loading v4l1compat.so with skype wink
I don't need the LD_PRELOAD part to start cheese.

no, my driver is vc032x, and it's correct from what I know.

@ROOKIE
editing skype config file didn't help. It doesn't seem it's a skype-only issue anyway.
I'm currently compiling guvcview.

I'll post if I get any progress.


what goes up must come down

Offline

#9 2009-03-01 20:59:35

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: webcam issues (Logitech orbicam on Acer)

running guvcview I get :

$ guvcview
guvcview 0.9.9            
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Could not open /home/sam/.guvcviewrc for read,
 will try to create it
write /home/sam/.guvcviewrc OK
video device: /dev/video0
/dev/video0 - device 1
opening '/sys/class/video4linux/video0/device/input' failed: Error opening directory '/sys/class/video4linux/video0/device/input': No such file or directory
/dev/video1 - device 2
opening '/sys/class/video4linux/video1/device/input' failed: Error opening directory '/sys/class/video4linux/video1/device/input': No such file or directory
Init. Camera (location: 0000:00:1d.7)
{ pixelformat = 'YVYU', description = 'YVYU' }
   { not supported - request format support at http://guvcview.berlios.de }
Couldn't detect any supported formats on your device (0)
Format unavailable: 1196444237.
Init v4L2 failed !!
Init video returned -2
trying minimum setup ...
ERROR: Can't set video stream. No supported format found
Exiting...
Terminated.

My webcam is not supported?


what goes up must come down

Offline

#10 2009-03-03 20:59:46

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: webcam issues (Logitech orbicam on Acer)

guvcview has been updated. Still no luck :

$ guvcview --device=/dev/video0
guvcview 1.0.0                                 
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
video device: /dev/video0                                            
/dev/video0 - device 1                                               
couldn't open idVendor: /sys/class/video4linux/video0/../../../devices/pci0000:00/0000:00:1e.0/idVendor
couldn't open idProduct: /sys/class/video4linux/video0/../../../devices/pci0000:00/0000:00:1e.0/idProduct
/dev/video1 - device 2
Init. Avermedia M115 (location: PCI:0000:09:04.0)
{ pixelformat = 'GREY', description = '8 bpp gray' }
   { not supported - request format support at http://guvcview.berlios.de }
{ pixelformat = 'RGBO', description = '15 bpp RGB, le' }
   { not supported - request format support at http://guvcview.berlios.de }
{ pixelformat = 'RGBQ', description = '15 bpp RGB, be' }
   { not supported - request format support at http://guvcview.berlios.de }
{ pixelformat = 'RGBP', description = '16 bpp RGB, le' }
   { not supported - request format support at http://guvcview.berlios.de }
{ pixelformat = 'RGBR', description = '16 bpp RGB, be' }
   { not supported - request format support at http://guvcview.berlios.de }
{ pixelformat = 'BGR3', description = '24 bpp RGB, le' }
   { not supported - request format support at http://guvcview.berlios.de }
{ pixelformat = 'RGB3', description = '24 bpp RGB, be' }
   { not supported - request format support at http://guvcview.berlios.de }
{ pixelformat = 'BGR4', description = '32 bpp RGB, le' }
   { not supported - request format support at http://guvcview.berlios.de }
{ pixelformat = 'RGB4', description = '32 bpp RGB, be' }
   { not supported - request format support at http://guvcview.berlios.de }
{ pixelformat = 'YUYV', description = '4:2:2 packed, YUYV' }
{ ?GSPCA? : width = 640, [height = 480 }
Aborted

(/dev/video1 and below refers to my TV card, so it's actually not relevant)


what goes up must come down

Offline

#11 2009-03-03 23:47:40

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: webcam issues (Logitech orbicam on Acer)

It seems that it can't get access to your webcam (because some program is already using the webcam??) ..... just for the sake of testing, try running guvcview as root.
Also you may want to consider googling around and see if any other users had the same problem and if they had more luck with another driver.
In ubuntu it seems that the gspca driver might be used and not uvcview. Maybe you can try to boot ubuntu from a livecd and check if the webcam works and if it does look at the loaded modules. Check this thread http://ubuntuforums.org/archive/index.php/t-926101.html


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#12 2009-03-04 15:22:24

assisp
Member
Registered: 2009-03-04
Posts: 12

Re: webcam issues (Logitech orbicam on Acer)

Hi,
In doubt ask the developer :-)

From what I make of your log, /dev/video0 (Avermedia M115 ) is your tv card and /dev/video1 is your camera
so you should start guvcview with: guvcview --device=/dev/video1 --verbose

If you have any problems please fell free to contact me.

Best regards,
Paulo

[EDIT]
In the first log, guvcview, detected your camera in /dev/video0, but the device index seems to have changed in the second log.
Make sure when starting guvcview that the Init. device is the one referred to as Camera. The Pixel format is YVYU and is supported since this latest version (1.0.0)

Last edited by assisp (2009-03-04 15:56:23)

Offline

#13 2009-03-04 22:00:49

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: webcam issues (Logitech orbicam on Acer)

@R00KIE
I tried running guvcview as root but it did not help. I think I have a 64-bit Kubuntu CD somewhere at home, I'll give it a try in a few days...

@assisp
Hello Paulo, welcome on this board. It's nice to see a 3rd party dev wandering here.
Yes  my camera is currently /dev/video1, maybe camera and TV card happen to be swapped at boot time (no big deal).

$ guvcview --device=/dev/video1 --verbose
guvcview 1.0.0                                           
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
video_device: /dev/video1                                            
vid_sleep: 0                                                         
resolution: 640 x 480                                                
windowsize: 480 x 700                                                
vert pane: 0                                                         
spin behavior: 0                                                     
mode: mjpg                                                           
fps: 1/25                                                            
Display Fps: 0                                                       
bpp: 0                                                               
hwaccel: 1                                                           
grabmethod: 1                                                        
avi_format: 0                                                        
sound: 1                                                             
sound Device: 0                                                      
sound samp rate: 0                                                   
sound Channels: 0                                                    
Sound Block Size: 1 seconds                                          
Sound Format: 80
Sound bit Rate: 160 Kbps
Pan Step: 2 degrees
Tilt Step: 2 degrees
Video Filter Flags: 0
image inc: 0
profile(default):/home/sam/default.gpfl
language catalog=> dir:/usr/share/locale lang:@z cat:guvcview.mo
video device: /dev/video1
/dev/video0 - device 1
couldn't open idVendor: /sys/class/video4linux/video0/../../../devices/pci0000:00/0000:00:1e.0/idVendor
couldn't open idProduct: /sys/class/video4linux/video0/../../../devices/pci0000:00/0000:00:1e.0/idProduct
/dev/video1 - device 2
Init. Camera (location: 0000:00:1d.7)
{ pixelformat = 'YVYU', description = 'YVYU' }
   { not supported - request format support at http://guvcview.berlios.de }
Couldn't detect any supported formats on your device (0)
Format unavailable: 1196444237.
Init v4L2 failed !!
Init video returned -2
trying minimum setup ...
ERROR: Can't set video stream. No supported format found
Exiting...

what goes up must come down

Offline

#14 2009-03-04 22:12:22

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: webcam issues (Logitech orbicam on Acer)

The error seems to come from the driver itself not guvcview

{ pixelformat = 'YVYU', description = 'YVYU' }
   { not supported - request format support at http://guvcview.berlios.de }
Couldn't detect any supported formats on your device (0)

It's not unseen a driver that loads but then fails to support the device properly, trying with something known to work and googling a bit may solve the problem very quickly .... or cause more doubts hmm

Last edited by R00KIE (2009-03-04 22:14:18)


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#15 2009-03-04 22:44:06

assisp
Member
Registered: 2009-03-04
Posts: 12

Re: webcam issues (Logitech orbicam on Acer)

For some strange reason the format is not being detected has valid by guvcview (in fact there is a "small" bug in the code but in this case it shouldn't be a problem, however I have fix it in svn so you could try building from there), in any case you should try forcing the format: guvcview --device=/dev/video1 --format=yvyu --verbose, like I said the format is valid since version 1.0.0

Has for the switched indexes, if you hot plug your camera it should always come up has video1 since the tv card is loaded first it gets the first available index in this case 0 (video0), if you cold plug the camera then probably it will get index 0 instead, (usb gets loaded before pci, I think), if this is important you can create a udev rule  so that your camera always gets the same device name.

Best regards,
Paulo

Offline

#16 2009-03-04 22:55:32

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: webcam issues (Logitech orbicam on Acer)

Forcing YVYU doesn't change anything. FYI my camera is built in my laptop.
Like R00KIE I think this is a driver (or kernel) issue. Or even bad hardware, who knows. I'll give a shot to Ubuntu live CD, both 32 and 64-bit so that I'll figure out if it's worth to investigate further.


what goes up must come down

Offline

#17 2009-03-04 23:15:53

assisp
Member
Registered: 2009-03-04
Posts: 12

Re: webcam issues (Logitech orbicam on Acer)

It must at least produce some different output :-(
If not, please try svn:
svn co http://svn.berlios.de/svnroot/repos/guvcview/trunk

the driver is reporting a valid guvcview format, so the error you are getting is for sure from guvcview not the driver, I really would like to fix whatever problem is causing the failure.

Best regards,
Paulo

Offline

#18 2009-03-04 23:53:09

assisp
Member
Registered: 2009-03-04
Posts: 12

Re: webcam issues (Logitech orbicam on Acer)

OK, found the problem, not a very small bug after all.
It should be fixed in svn.
It is such a big bug that I'm releasing a new patched version 1.0.1

Best regards,
Paulo

Offline

#19 2009-03-05 08:14:46

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: webcam issues (Logitech orbicam on Acer)

I'll give it a try tonight. BTW, I just flagged guvcview AUR entry out-of-date.


what goes up must come down

Offline

#20 2009-03-05 13:47:14

assisp
Member
Registered: 2009-03-04
Posts: 12

Re: webcam issues (Logitech orbicam on Acer)

Ok, just remember that your camera is supported by gspca (vc032x module) driver, this driver lacks several features, like frame size listing, so you need to set the camera resolution from the command line:
guvcview --device=/dev/video1 --size=widthxheight --verbose

By default guvcview tries 640x480, if this fails, gspca should return the nearest valid resolution and then guvcview uses this instead.
I don't think changing fps is supported by gspca, but I could be wrong.
In your case, you should try different frame sizes (160x120; 320x240; ...). I have a old logitech pro5000 that supports both MJPEG and YUYV streams, in the case of YUYV at low fps it only streams the top part of the frame, very similar to your case. At 25 and 30 fps it streams the entire frame (this is a known firmware bug).

Best regards,
Paulo

Last edited by assisp (2009-03-05 15:53:59)

Offline

#21 2009-03-07 15:49:10

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: webcam issues (Logitech orbicam on Acer)

no progress with guvcview:

$ guvcview --device=/dev/video0 --size=320x240 --format=yvyu --verbose                   
guvcview 1.0.1                                                                                           
Xlib:  extension "Generic Event Extension" missing on display ":0.0".                                    
Xlib:  extension "Generic Event Extension" missing on display ":0.0".                                    
Xlib:  extension "Generic Event Extension" missing on display ":0.0".                                    
Xlib:  extension "Generic Event Extension" missing on display ":0.0".                                    
Xlib:  extension "Generic Event Extension" missing on display ":0.0".                                    
Xlib:  extension "Generic Event Extension" missing on display ":0.0".                                    
video_device: /dev/video0                                                                                
vid_sleep: 0                                                                                             
resolution: 320 x 240                                                                                    
windowsize: 480 x 700                                                                                    
vert pane: 0                                                                                             
spin behavior: 0                                                                                         
mode: yvyu                                                                                               
fps: 1/25                                                                                                
Display Fps: 0                                                                                           
bpp: 0                                                                                                   
hwaccel: 1                                                                                               
grabmethod: 1                                                                                            
avi_format: 0                                                                                            
sound: 1
sound Device: 0
sound samp rate: 0
sound Channels: 0
Sound Block Size: 1 seconds
Sound Format: 80
Sound bit Rate: 160 Kbps
Pan Step: 2 degrees
Tilt Step: 2 degrees
Video Filter Flags: 0
image inc: 0
profile(default):/home/sam/default.gpfl
language catalog=> dir:/usr/share/locale lang:p▒ cat:guvcview.mo
yvyu: setting format to 1431918169
video device: /dev/video0
/dev/video0 - device 1
/dev/video1 - device 2
couldn't open idVendor: /sys/class/video4linux/video1/../../../devices/pci0000:00/0000:00:1e.0/idVendor
couldn't open idProduct: /sys/class/video4linux/video1/../../../devices/pci0000:00/0000:00:1e.0/idProduct
Init. Camera (location: 0000:00:1d.7)
{ pixelformat = 'YVYU', description = 'YVYU' }
{ ?GSPCA? : width = 320, height = 240 }
Segmentation fault

I haven't tried ubuntu cd yet.


what goes up must come down

Offline

#22 2009-03-07 18:17:37

assisp
Member
Registered: 2009-03-04
Posts: 12

Re: webcam issues (Logitech orbicam on Acer)

Actually we have made a lot of progress big_smile

GSPCA support in guvcview is for the most part untested.
I don't know many people with gspca devices so this is proving a gold opportunity to test this code.

Anyway if you could just bare with me, i'm pretty sure I can fix it.

Please could you apply the following patch to version 1.0.1:

diff -u ../releases/guvcview-src-1.0.1/src/./guvcview.c ./src/./guvcview.c
--- ../releases/guvcview-src-1.0.1/src/./guvcview.c    2009-03-04 23:55:56.000000000 +0000
+++ ./src/./guvcview.c    2009-03-06 22:59:35.000000000 +0000
@@ -96,6 +96,7 @@
     char* lc_dir = bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
     bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
     char* txtdom = textdomain (GETTEXT_PACKAGE);
+    const gchar * const * langs = g_get_language_names (); //get ordered list of defined languages
 #endif
     /*structure containing all shared data - passed in callbacks*/
     struct ALL_DATA all_data;
@@ -134,33 +135,34 @@
     GtkWidget *HButtonBox;
 
     s = g_new0(struct VidState, 1);
-    
+
     pdata = g_new0(struct paRecordData, 1);
-    
+
     /*create mutex for sound buffers*/
     pdata->mutex = g_mutex_new();
-    
+
     /* Allocate the avi_t struct */
     AviOut = g_new0(struct avi_t, 1);
-   
+
 #ifdef ENABLE_NLS
     /* if --verbose mode set do debug*/
-    if (global->debug) g_printf("language catalog=> dir:%s lang:%s cat:%s.mo\n",lc_dir,lc_all,txtdom);
-#endif   
+    if (global->debug) g_printf("language catalog=> dir:%s type:%s lang:%s cat:%s.mo\n",
+        lc_dir, lc_all, langs[0], txtdom);
+#endif
     /*---------------------------- GTK init ----------------------------------*/
-    
+
     gtk_init(&argc, &argv);
-    
+
     /* Create a main window */
     gwidget->mainwin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
     gtk_window_set_title (GTK_WINDOW (gwidget->mainwin), _("GUVCViewer Controls"));
     gtk_window_resize(GTK_WINDOW(gwidget->mainwin),global->winwidth,global->winheight);
     /* Add event handlers */
     gtk_signal_connect(GTK_OBJECT(gwidget->mainwin), "delete_event", GTK_SIGNAL_FUNC(delete_event), &all_data);
-    
+
     /*----------------------- init videoIn structure --------------------------*/
     videoIn = g_new0(struct vdIn, 1);
-    
+
     /*set structure with all global allocations*/
     all_data.pdata = pdata;
     all_data.global = global;
@@ -173,7 +175,7 @@
     /*get format from selected mode*/
     global->format = get_PixFormat(global->mode);
     if(global->debug) g_printf("%s: setting format to %i\n", global->mode, global->format);
-    
+
     if ( ( ret=init_videoIn (videoIn, global) ) < 0)
     {
         g_printerr("Init video returned %i\n",ret);
Only in ./src/.: Makefile
Common subdirectories: ../releases/guvcview-src-1.0.1/src/./.svn and ./src/./.svn
diff -u ../releases/guvcview-src-1.0.1/src/./v4l2_formats.c ./src/./v4l2_formats.c
--- ../releases/guvcview-src-1.0.1/src/./v4l2_formats.c    2009-03-04 23:55:56.000000000 +0000
+++ ./src/./v4l2_formats.c    2009-03-07 17:56:05.000000000 +0000
@@ -400,10 +400,13 @@
             g_printerr("assert failed: listVidCap not Null\n");
             return (-2);
         }
+        g_printf("setting VidCap........");
         listVidFormats[fmtind-1].listVidCap[0].width = *width;
         listVidFormats[fmtind-1].listVidCap[0].height = *height;
         listVidFormats[fmtind-1].listVidCap[0].framerate_num[0] = 1;
         listVidFormats[fmtind-1].listVidCap[0].framerate_denom[0] = 25;
+        listVidFormats[fmtind-1].listVidCap[0].numb_frates = 1;
+        g_printf("done\n");
     }
     
     listVidFormats[fmtind-1].numb_res=fsizeind;

It will print some debug lines that should help identify the segfault.

Best regards
Paulo

Offline

#23 2009-03-07 19:01:25

assisp
Member
Registered: 2009-03-04
Posts: 12

Re: webcam issues (Logitech orbicam on Acer)

Well I think I've detected the problem,
it should be fixed in svn.
I'll wait for your output to released a new patched version.

Best regards,
Paulo

Offline

#24 2009-03-08 09:25:55

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: webcam issues (Logitech orbicam on Acer)

I installed svn version (sorry I don't know how to patch things), and it works. Here is the output:

$ guvcview --device=/dev/video0 --size=320x240 --format=yvyu --verbose                   
guvcview 1.0.1                                                                                           
Xlib:  extension "Generic Event Extension" missing on display ":0.0".                                    
Xlib:  extension "Generic Event Extension" missing on display ":0.0".                                    
Xlib:  extension "Generic Event Extension" missing on display ":0.0".                                    
Xlib:  extension "Generic Event Extension" missing on display ":0.0".                                    
Xlib:  extension "Generic Event Extension" missing on display ":0.0".                                    
Xlib:  extension "Generic Event Extension" missing on display ":0.0".                                    
video_device: /dev/video0                                                                                
vid_sleep: 0                                                                                             
resolution: 320 x 240                                                                                    
windowsize: 480 x 700                                                                                    
vert pane: 578                                                                                           
spin behavior: 0                                                                                         
mode: yvyu                                                                                               
fps: 1/25                                                                                                
Display Fps: 0                                                                                           
bpp: 0                                                                                                   
hwaccel: 1                                                                                               
grabmethod: 1                                                                                            
avi_format: 0                                                                                            
sound: 1                                                                                                 
sound Device: 5                                                                                          
sound samp rate: 0                                                                                       
sound Channels: 0                                                                                        
Sound Block Size: 1 seconds                                                                              
Sound Format: 80                                                                                         
Sound bit Rate: 160 Kbps                                                                                 
Pan Step: 2 degrees                                                                                      
Tilt Step: 2 degrees                                                                                     
Video Filter Flags: 0                                                                                    
image inc: 0                                                                                             
profile(default):/home/sam/default.gpfl                                                                  
language catalog=> dir:/usr/share/locale type:p* lang:en_US.utf8 cat:guvcview.mo                        
yvyu: setting format to 1431918169                                                                       
video device: /dev/video0                                                                                
/dev/video0 - device 1                                                                                   
/dev/video1 - device 2                                                                                   
couldn't open idVendor: /sys/class/video4linux/video1/../../../devices/pci0000:00/0000:00:1e.0/idVendor  
couldn't open idProduct: /sys/class/video4linux/video1/../../../devices/pci0000:00/0000:00:1e.0/idProduct
Init. Camera (location: 0000:00:1d.7)                                                                    
{ pixelformat = 'YVYU', description = 'YVYU' }                                                           
{ ?GSPCA? : width = 320, height = 240 }                                                                  
fmtind:1 fsizeind: 1                                                                                     
checking format: 1431918169                                                                              
vid:1d6b                                                                                                 
pid:0002                                                                                                 
driver:vc032x                                                                                            
Controls:                                                                                                
control[0]: 0x980912  Auto Gain, 0:1:1, default 1                                                        
resolutions of 1º format=1                                                                               
frame rates of 1º resolution=1                                                                           
Def. Res: 0  numb. fps:1                                                                                 
--------------------------------------- device #0                                                        
[ Default Input, Default Output ]                                                                        
Name                     = /dev/dsp                                                                      
Host API                 = OSS                                                                           
Max inputs = 16, Max outputs = 16                                                                        
Def. low input latency   =    0.012                                                                      
Def. low output latency  =    0.012                                                                      
Def. high input latency  =    0.046                                                                      
Def. high output latency =    0.046                                                                      
Def. sample rate         = 44100.00                                                                      
--------------------------------------- device #1                                                        
Name                     = /dev/dsp1                                                                     
Host API                 = OSS                                                                           
Max inputs = 0, Max outputs = 16                                                                         
Def. low input latency   =    0.012                                                                      
Def. low output latency  =    0.012                                                                      
Def. high input latency  =    0.046                                                                      
Def. high output latency =    0.046                                                                      
Def. sample rate         = 44100.00                                                                      
--------------------------------------- device #2                                                        
Name                     = HDA Intel: ALC883 Analog (hw:0,0)                                             
Host API                 = ALSA                                                                          
Max inputs = 2, Max outputs = 6                                                                          
Def. low input latency   =    0.012                                                                      
Def. low output latency  =    0.012                                                                      
Def. high input latency  =    0.046                                                                      
Def. high output latency =    0.046                                                                      
Def. sample rate         = 44100.00                                                                      
--------------------------------------- device #3                                                        
Name                     = HDA Intel: ALC883 Digital (hw:0,1)                                            
Host API                 = ALSA                                                                          
Max inputs = 2, Max outputs = 2                                                                          
Def. low input latency   =    0.012                                                                      
Def. low output latency  =    0.012                                                                      
Def. high input latency  =    0.046                                                                      
Def. high output latency =    0.046                                                                      
Def. sample rate         = 44100.00                                                                      
--------------------------------------- device #4                                                        
Name                     = HDA Intel: ALC883 Analog (hw:0,2)                                             
Host API                 = ALSA                                                                          
Max inputs = 2, Max outputs = 0                                                                          
Def. low input latency   =    0.012                                                                      
Def. low output latency  =   -1.000                                                                      
Def. high input latency  =    0.046                                                                      
Def. high output latency =   -1.000                                                                      
Def. sample rate         = 44100.00                                                                      
--------------------------------------- device #5                                                        
Name                     = pcsp: pcsp (hw:1,0)                                                           
Host API                 = ALSA                                                                          
Max inputs = 0, Max outputs = 1                                                                          
Def. low input latency   =   -1.000                                                                      
Def. low output latency  =    0.014                                                                      
Def. high input latency  =   -1.000                                                                      
Def. high output latency =    0.055                                                                      
Def. sample rate         = 37286.00                                                                      
--------------------------------------- device #6                                                        
Name                     = front                                                                         
Host API                 = ALSA                                                                          
Max inputs = 0, Max outputs = 6                                                                          
Def. low input latency   =   -1.000                                                                      
Def. low output latency  =    0.012                                                                      
Def. high input latency  =   -1.000                                                                      
Def. high output latency =    0.046                                                                      
Def. sample rate         = 44100.00                                                                      
--------------------------------------- device #7                                                        
Name                     = surround40                                                                    
Host API                 = ALSA                                                                          
Max inputs = 0, Max outputs = 6                                                                          
Def. low input latency   =   -1.000                                                                      
Def. low output latency  =    0.012                                                                      
Def. high input latency  =   -1.000                                                                      
Def. high output latency =    0.046                                                                      
Def. sample rate         = 44100.00                                                                      
--------------------------------------- device #8                                                        
Name                     = surround41                                                                    
Host API                 = ALSA                                                                          
Max inputs = 0, Max outputs = 128                                                                        
Def. low input latency   =   -1.000                                                                      
Def. low output latency  =    0.012                                                                      
Def. high input latency  =   -1.000                                                                      
Def. high output latency =    0.046                                                                      
Def. sample rate         = 44100.00                                                                      
--------------------------------------- device #9                                                        
Name                     = surround50                                                                    
Host API                 = ALSA                                                                          
Max inputs = 0, Max outputs = 128                                                                        
Def. low input latency   =   -1.000                                                                      
Def. low output latency  =    0.012                                                                      
Def. high input latency  =   -1.000                                                                      
Def. high output latency =    0.046                                                                      
Def. sample rate         = 44100.00                                                                      
--------------------------------------- device #10                                                       
Name                     = surround51                                                                    
Host API                 = ALSA                                                                          
Max inputs = 0, Max outputs = 6                                                                          
Def. low input latency   =   -1.000                                                                      
Def. low output latency  =    0.012                                                                      
Def. high input latency  =   -1.000                                                                      
Def. high output latency =    0.046                                                                      
Def. sample rate         = 44100.00                                                                      
--------------------------------------- device #11                                                       
Name                     = surround71                                                                    
Host API                 = ALSA                                                                          
Max inputs = 0, Max outputs = 6                                                                          
Def. low input latency   =   -1.000                                                                      
Def. low output latency  =    0.012                                                                      
Def. high input latency  =   -1.000                                                                      
Def. high output latency =    0.046                                                                      
Def. sample rate         = 44100.00                                                                      
--------------------------------------- device #12                                                       
Name                     = iec958                                                                        
Host API                 = ALSA                                                                          
Max inputs = 0, Max outputs = 2                                                                          
Def. low input latency   =   -1.000                                                                      
Def. low output latency  =    0.012                                                                      
Def. high input latency  =   -1.000                                                                      
Def. high output latency =    0.046                                                                      
Def. sample rate         = 44100.00                                                                      
--------------------------------------- device #13                                                       
Name                     = spdif                                                                         
Host API                 = ALSA                                                                          
Max inputs = 2, Max outputs = 2                                                                          
Def. low input latency   =    0.012                                                                      
Def. low output latency  =    0.012                                                                      
Def. high input latency  =    0.046                                                                      
Def. high output latency =    0.046                                                                      
Def. sample rate         = 44100.00                                                                      
--------------------------------------- device #14
[ Default ALSA Input, Default ALSA Output ]
Name                     = default
Host API                 = ALSA
Max inputs = 128, Max outputs = 128
Def. low input latency   =    0.043
Def. low output latency  =    0.043
Def. high input latency  =    0.046
Def. high output latency =    0.046
Def. sample rate         = 44100.00
--------------------------------------- device #15
Name                     = dmix
Host API                 = ALSA
Max inputs = 0, Max outputs = 2
Def. low input latency   =   -1.000
Def. low output latency  =    0.043
Def. high input latency  =   -1.000
Def. high output latency =    0.043
Def. sample rate         = 48000.00
----------------------------------------------
SampleRate:0 Channels:0
Video driver: x11
A window manager is available

My video output is similar to that of my second post. And I cannot change any video setting (framerate, resolution). But I assume this is normal, no?


what goes up must come down

Offline

#25 2009-03-08 09:41:56

assisp
Member
Registered: 2009-03-04
Posts: 12

Re: webcam issues (Logitech orbicam on Acer)

Like I said with gspca you can only change resolution from the console, fps in your case is set by the driver depending on resolution.

Please try other resolutions to check if the problem persists.

I'll will release a new patched version (1.0.2) today.

Best regards,
Paulo

Offline

Board footer

Powered by FluxBB