Re: [Linux-uvc-devel] two webcams
Hi,The full system is freeze.About the hardware problem, maybe you are right, but the curious is that sometimes the same board is three days working and sometimes only 12 horus.I think that is to much time for a hardware problem.Really, this will be very hard to locate and fix ... Thanks,Santiago. Date: Tue, 25 May 2010 19:27:49 +0100 Subject: Re: [Linux-uvc-devel] two webcams From: pj.as...@gmail.com To: sans...@hotmail.com CC: linux-uvc-devel@lists.berlios.de Santiago Hi, 2010/5/25 Santiago Segura sans...@hotmail.com: Hi Paulo, no, when the system hangs, do not leave any message related. Is this a full system freeze or just your app ? If it's a system freeze it may be related to a hardware problem (usb controler, memory, ..) if it's just your app, then the problem is probably related to it. Regards, Paulo Regards, Santiago Segura Date: Tue, 25 May 2010 14:23:19 +0100 Subject: Re: [Linux-uvc-devel] two webcams From: pj.as...@gmail.com To: sans...@hotmail.com CC: linux-uvc-devel@lists.berlios.de Hi, Do you get any messages on the system log (dmesg) ? Regards, Paulo 2010/5/25 Santiago Segura sans...@hotmail.com: Hi! I have a strangle problem using two cameras at the same time. My application (webcam security) works perfectly, I suppose. But after some hours (24 hours or more) the system hags without any indicative log or signal. Simply it freezes showing the last camera images before to crash. I use a gspca USB 1.0 webcam (Vimicro) and an UVC USB 2.0 webcam (I tested with many manufactures with the same result). The bandwidth is not very high. From both cameras I get frames in JPEG, with low quality (about 30Kb/frame). I tried to use two different USB ports. Same result. With only one camera (either the gspca camera or the UVC), I don’t have any problem. My Cpu is an slow Pentium at 600Mhz (But with USB 2.0 ports). I tried dozens of kernels versions (the last is 2.6.34) and configurations (Pre-emptive-No preventive, noapic, acpi=off …, ticks a 250, ticks a 500 (custom), ticks a 1024). Always the same. Anyone has any idea about how can I fix this problem? Thanks in advance, Sansegu ¿Sabes que La Gente de Hoy tiene GUARDAESPALDAS contra el Spam? ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel Los cochazos de los famosos Patrick Dempsey, Tom Cruise o Michael Douglas presumen de automóvil _ ¿Quieres conocer trucos de Windows 7? ¡Los que ya lo usan te los cuentan! http://www.sietesunpueblodeexpertos.com/index_windows7.html___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] two webcams
Hi, 2010/5/26 Santiago Segura sans...@hotmail.com: Hi, The full system is freeze. About the hardware problem, maybe you are right, but the curious is that sometimes the same board is three days working and sometimes only 12 horus. I think that is to much time for a hardware problem. Not really, consider a system that is not properly refrigerated, it just takes a hotter day to cause problems in some components, otherwise it may work fine for months. Regards, Paulo Really, this will be very hard to locate and fix ... Thanks, Santiago. Date: Tue, 25 May 2010 19:27:49 +0100 Subject: Re: [Linux-uvc-devel] two webcams From: pj.as...@gmail.com To: sans...@hotmail.com CC: linux-uvc-devel@lists.berlios.de Santiago Hi, 2010/5/25 Santiago Segura sans...@hotmail.com: Hi Paulo, no, when the system hangs, do not leave any message related. Is this a full system freeze or just your app ? If it's a system freeze it may be related to a hardware problem (usb controler, memory, ..) if it's just your app, then the problem is probably related to it. Regards, Paulo Regards, Santiago Segura Date: Tue, 25 May 2010 14:23:19 +0100 Subject: Re: [Linux-uvc-devel] two webcams From: pj.as...@gmail.com To: sans...@hotmail.com CC: linux-uvc-devel@lists.berlios.de Hi, Do you get any messages on the system log (dmesg) ? Regards, Paulo 2010/5/25 Santiago Segura sans...@hotmail.com: Hi! I have a strangle problem using two cameras at the same time. My application (webcam security) works perfectly, I suppose. But after some hours (24 hours or more) the system hags without any indicative log or signal. Simply it freezes showing the last camera images before to crash. I use a gspca USB 1.0 webcam (Vimicro) and an UVC USB 2.0 webcam (I tested with many manufactures with the same result). The bandwidth is not very high. From both cameras I get frames in JPEG, with low quality (about 30Kb/frame). I tried to use two different USB ports. Same result. With only one camera (either the gspca camera or the UVC), I don’t have any problem. My Cpu is an slow Pentium at 600Mhz (But with USB 2.0 ports). I tried dozens of kernels versions (the last is 2.6.34) and configurations (Pre-emptive-No preventive, noapic, acpi=off …, ticks a 250, ticks a 500 (custom), ticks a 1024). Always the same. Anyone has any idea about how can I fix this problem? Thanks in advance, Sansegu ¿Sabes que La Gente de Hoy tiene GUARDAESPALDAS contra el Spam? ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel Los cochazos de los famosos Patrick Dempsey, Tom Cruise o Michael Douglas presumen de automóvil ¿Sabes que La Gente de Hoy tiene GUARDAESPALDAS contra el Spam? ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] two webcams
Hi, Do you get any messages on the system log (dmesg) ? Regards, Paulo 2010/5/25 Santiago Segura sans...@hotmail.com: Hi! I have a strangle problem using two cameras at the same time. My application (webcam security) works perfectly, I suppose. But after some hours (24 hours or more) the system hags without any indicative log or signal. Simply it freezes showing the last camera images before to crash. I use a gspca USB 1.0 webcam (Vimicro) and an UVC USB 2.0 webcam (I tested with many manufactures with the same result). The bandwidth is not very high. From both cameras I get frames in JPEG, with low quality (about 30Kb/frame). I tried to use two different USB ports. Same result. With only one camera (either the gspca camera or the UVC), I don’t have any problem. My Cpu is an slow Pentium at 600Mhz (But with USB 2.0 ports). I tried dozens of kernels versions (the last is 2.6.34) and configurations (Pre-emptive-No preventive, noapic, acpi=off …, ticks a 250, ticks a 500 (custom), ticks a 1024). Always the same. Anyone has any idea about how can I fix this problem? Thanks in advance, Sansegu ¿Sabes que La Gente de Hoy tiene GUARDAESPALDAS contra el Spam? ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] two webcams
Hi Paulo,no, when the system hangs, do not leave any message related. Regards,Santiago Segura Date: Tue, 25 May 2010 14:23:19 +0100 Subject: Re: [Linux-uvc-devel] two webcams From: pj.as...@gmail.com To: sans...@hotmail.com CC: linux-uvc-devel@lists.berlios.de Hi, Do you get any messages on the system log (dmesg) ? Regards, Paulo 2010/5/25 Santiago Segura sans...@hotmail.com: Hi! I have a strangle problem using two cameras at the same time. My application (webcam security) works perfectly, I suppose. But after some hours (24 hours or more) the system hags without any indicative log or signal. Simply it freezes showing the last camera images before to crash. I use a gspca USB 1.0 webcam (Vimicro) and an UVC USB 2.0 webcam (I tested with many manufactures with the same result). The bandwidth is not very high. From both cameras I get frames in JPEG, with low quality (about 30Kb/frame). I tried to use two different USB ports. Same result. With only one camera (either the gspca camera or the UVC), I don’t have any problem. My Cpu is an slow Pentium at 600Mhz (But with USB 2.0 ports). I tried dozens of kernels versions (the last is 2.6.34) and configurations (Pre-emptive-No preventive, noapic, acpi=off …, ticks a 250, ticks a 500 (custom), ticks a 1024). Always the same. Anyone has any idea about how can I fix this problem? Thanks in advance, Sansegu ¿Sabes que La Gente de Hoy tiene GUARDAESPALDAS contra el Spam? ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel _ Disfruta de Messenger y Hotmail en tu BlackBerry ¡Hazlo ya! http://serviciosmoviles.es.msn.com/messenger/blackberry.aspx___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Two webcams simultaneously on the same USB
Hi Javier, On Friday 22 May 2009 09:36:32 J. Martínez Baena wrote: Hello, I have a problem with 2 webcams I'm trying to get work simultaneously. I have several models (Logitech P3000, Logitech P9000, Creative LiveCAM Optia AF, Philips). When I plug two of them on different USB ports, then everything works ok: I can see both simultaneously with, for example, luvcview. The problem exists when I plug two of them on the same USB (for example on frontal USB or in a USB hub). I've got the problem for combinations in wich UVC driver is used by both cameras. I can get frames for one of them (the first that I try), but for the second one I get a noisy/green screen ... it seems as if the image is corrupted. However, if I put the philips and the logitech P9000/Optia it works fine. The Philips (and logitech P3000) use a different driver than UVC. Also, I can plug two philips webcam and they works fine. ¿Is this a bug or an unresolved problem of the UVC driver? ¿Is it a USB problem? My guess is that you're having USB bandwidth issues. As the uvcvideo driver starts capturing video on both cameras, you're not exceeding the theoretical USB bandwidth limit. However, bugs in the USB host controller, the USB host controller driver or the camera can result in corrupted data. Could you perform the same test on another computer ? Best regards, Laurent Pinchart Hi Laurent, Sorry for the delay ... I make some tests on several computers and the problem persists. My guess is that is a problem of UVC driver (but I'm not an expert ... so it's only a guess!). When I connect different webcams (using other driver than UVC) it works. I tried with different resolutions (320x240, 640x480, ...) and different framerates. Sometimes, when a cam is running (capturing), I can't even initialice the other one (neither consult for allowed resolutions, etc). But I don't know how USB driver works, so, maybe an USB problem. Best regards ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Two webcams simultaneously on the same USB
Javier Hi, You should know that at least logitech cameras don't handle well usb hubs, logitech is very clear on this, if you want you can get more info on the quickcamteam site and forums, it has something to do with the way data is handled by most usb hubs. Anyway I have been able to connect up to 3 uvc cameras simultaneously in my pc, and I believe two of them were on the same host (I mounted the pc myself so I should know this for sure, but my memory has seen better days :) ), all of them use the ehci driver. Some drivers are in fact buggy, just check the following link for a example (in this case the musb driver): http://forums.quickcamteam.net/showthread.php?tid=821 Best regards, Paulo 2009/5/29 Javier Martínez Baena jba...@decsai.ugr.es Hi Javier, On Friday 22 May 2009 09:36:32 J. Martínez Baena wrote: Hello, I have a problem with 2 webcams I'm trying to get work simultaneously. I have several models (Logitech P3000, Logitech P9000, Creative LiveCAM Optia AF, Philips). When I plug two of them on different USB ports, then everything works ok: I can see both simultaneously with, for example, luvcview. The problem exists when I plug two of them on the same USB (for example on frontal USB or in a USB hub). I've got the problem for combinations in wich UVC driver is used by both cameras. I can get frames for one of them (the first that I try), but for the second one I get a noisy/green screen ... it seems as if the image is corrupted. However, if I put the philips and the logitech P9000/Optia it works fine. The Philips (and logitech P3000) use a different driver than UVC. Also, I can plug two philips webcam and they works fine. ¿Is this a bug or an unresolved problem of the UVC driver? ¿Is it a USB problem? My guess is that you're having USB bandwidth issues. As the uvcvideo driver starts capturing video on both cameras, you're not exceeding the theoretical USB bandwidth limit. However, bugs in the USB host controller, the USB host controller driver or the camera can result in corrupted data. Could you perform the same test on another computer ? Best regards, Laurent Pinchart Hi Laurent, Sorry for the delay ... I make some tests on several computers and the problem persists. My guess is that is a problem of UVC driver (but I'm not an expert ... so it's only a guess!). When I connect different webcams (using other driver than UVC) it works. I tried with different resolutions (320x240, 640x480, ...) and different framerates. Sometimes, when a cam is running (capturing), I can't even initialice the other one (neither consult for allowed resolutions, etc). But I don't know how USB driver works, so, maybe an USB problem. Best regards ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Two webcams simultaneously on the same USB
Javier, I've done some more testing and this is what I found when capturing 640x...@25fps video from 2 uvc cameras on the same controler, both from logitech a QC5000pro and another camera I've been testing: - I can capture video from both of them when streaming MJPEG data on the two cameras. - I can capture video from both of them when streaming MJPEG data from one and YUYV data from the other one. - when using a YUYV stream on both I can only capture from the first camera, from the second I get a error of no space left, basically the USB bandwith is not enought. Best regards, Paulo 2009/5/29 Javier Martinez Baena jba...@decsai.ugr.es Thanks Paulo, not only Logitech fails, but also Creative (Optia AF at least). I will get a new Philips soon ... I hope this will work better. On Fri, 29 May 2009 13:49:55 +0100, Paulo Assis wrote Javier Hi, You should know that at least logitech cameras don't handle well usb hubs, logitech is very clear on this, if you want you can get more info on the quickcamteam site and forums, it has something to do with the way data is handled by most usb hubs. Anyway I have been able to connect up to 3 uvc cameras simultaneously in my pc, and I believe two of them were on the same host (I mounted the pc myself so I should know this for sure, but my memory has seen better days :) ), all of them use the ehci driver. Some drivers are in fact buggy, just check the following link for a example (in this case the musb driver): http://forums.quickcamteam.net/showthread.php?tid=821 Best regards, Paulo 2009/5/29 Javier Martínez Baena jba...@decsai.ugr.es Hi Javier, On Friday 22 May 2009 09:36:32 J. Martínez Baena wrote: Hello, I have a problem with 2 webcams I'm trying to get work simultaneously. I have several models (Logitech P3000, Logitech P9000, Creative LiveCAM Optia AF, Philips). When I plug two of them on different USB ports, then everything works ok: I can see both simultaneously with, for example, luvcview. The problem exists when I plug two of them on the same USB (for example on frontal USB or in a USB hub). I've got the problem for combinations in wich UVC driver is used by both cameras. I can get frames for one of them (the first that I try), but for the second one I get a noisy/green screen ... it seems as if the image is corrupted. However, if I put the philips and the logitech P9000/Optia it works fine. The Philips (and logitech P3000) use a different driver than UVC. Also, I can plug two philips webcam and they works fine. ¿Is this a bug or an unresolved problem of the UVC driver? ¿Is it a USB problem? My guess is that you're having USB bandwidth issues. As the uvcvideo driver starts capturing video on both cameras, you're not exceeding the theoretical USB bandwidth limit. However, bugs in the USB host controller, the USB host controller driver or the camera can result in corrupted data. Could you perform the same test on another computer ? Best regards, Laurent Pinchart Hi Laurent, Sorry for the delay ... I make some tests on several computers and the problem persists. My guess is that is a problem of UVC driver (but I'm not an expert ... so it's only a guess!). When I connect different webcams (using other driver than UVC) it works. I tried with different resolutions (320x240, 640x480, ...) and different framerates. Sometimes, when a cam is running (capturing), I can't even initialice the other one (neither consult for allowed resolutions, etc). But I don't know how USB driver works, so, maybe an USB problem. Best regards ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel -- Dr. Javier Martínez Baena Dpto. Ciencias de la Computación e I. A. E.T.S. de Ingeniería Informática Universidad de Granada Tlf: 958 240802 Fax: 958 243317 Email: jba...@decsai.ugr.es -- DEpartment of Computer Science and A.I. http://decsai.ugr.es ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Two webcams simultaneously on the same USB
Thanks Paulo, I've using only YUYV ... I don't use MJPEG because I have an own library to capture and I have not yet implemented that. Probably I should work on it now. Thanks again and best wishes On Fri, 29 May 2009 22:40:58 +0100, Paulo Assis wrote Javier, I've done some more testing and this is what I found when capturing 640x...@25fps video from 2 uvc cameras on the same controler, both from logitech a QC5000pro and another camera I've been testing: - I can capture video from both of them when streaming MJPEG data on the two cameras. - I can capture video from both of them when streaming MJPEG data from one and YUYV data from the other one. - when using a YUYV stream on both I can only capture from the first camera, from the second I get a error of no space left, basically the USB bandwith is not enought. Best regards, Paulo 2009/5/29 Javier Martinez Baena jba...@decsai.ugr.es Thanks Paulo, not only Logitech fails, but also Creative (Optia AF at least). I will get a new Philips soon ... I hope this will work better. On Fri, 29 May 2009 13:49:55 +0100, Paulo Assis wrote Javier Hi, You should know that at least logitech cameras don't handle well usb hubs, logitech is very clear on this, if you want you can get more info on the quickcamteam site and forums, it has something to do with the way data is handled by most usb hubs. Anyway I have been able to connect up to 3 uvc cameras simultaneously in my pc, and I believe two of them were on the same host (I mounted the pc myself so I should know this for sure, but my memory has seen better days :) ), all of them use the ehci driver. Some drivers are in fact buggy, just check the following link for a example (in this case the musb driver): http://forums.quickcamteam.net/showthread.php?tid=821 Best regards, Paulo 2009/5/29 Javier Martínez Baena jba...@decsai.ugr.es Hi Javier, On Friday 22 May 2009 09:36:32 J. Martínez Baena wrote: Hello, I have a problem with 2 webcams I'm trying to get work simultaneously. I have several models (Logitech P3000, Logitech P9000, Creative LiveCAM Optia AF, Philips). When I plug two of them on different USB ports, then everything works ok: I can see both simultaneously with, for example, luvcview. The problem exists when I plug two of them on the same USB (for example on frontal USB or in a USB hub). I've got the problem for combinations in wich UVC driver is used by both cameras. I can get frames for one of them (the first that I try), but for the second one I get a noisy/green screen ... it seems as if the image is corrupted. However, if I put the philips and the logitech P9000/Optia it works fine. The Philips (and logitech P3000) use a different driver than UVC. Also, I can plug two philips webcam and they works fine. ¿Is this a bug or an unresolved problem of the UVC driver? ¿Is it a USB problem? My guess is that you're having USB bandwidth issues. As the uvcvideo driver starts capturing video on both cameras, you're not exceeding the theoretical USB bandwidth limit. However, bugs in the USB host controller, the USB host controller driver or the camera can result in corrupted data. Could you perform the same test on another computer ? Best regards, Laurent Pinchart Hi Laurent, Sorry for the delay ... I make some tests on several computers and the problem persists. My guess is that is a problem of UVC driver (but I'm not an expert ... so it's only a guess!). When I connect different webcams (using other driver than UVC) it works. I tried with different resolutions (320x240, 640x480, ...) and different framerates. Sometimes, when a cam is running (capturing), I can't even initialice the other one (neither consult for allowed resolutions, etc). But I don't know how USB driver works, so, maybe an USB problem. Best regards ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel -- DEpartment of Computer Science and A.I. http://decsai.ugr.es ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Two webcams simultaneously on the same USB
Hi Javier, On Friday 22 May 2009 09:36:32 J. Martínez Baena wrote: Hello, I have a problem with 2 webcams I'm trying to get work simultaneously. I have several models (Logitech P3000, Logitech P9000, Creative LiveCAM Optia AF, Philips). When I plug two of them on different USB ports, then everything works ok: I can see both simultaneously with, for example, luvcview. The problem exists when I plug two of them on the same USB (for example on frontal USB or in a USB hub). I've got the problem for combinations in wich UVC driver is used by both cameras. I can get frames for one of them (the first that I try), but for the second one I get a noisy/green screen ... it seems as if the image is corrupted. However, if I put the philips and the logitech P9000/Optia it works fine. The Philips (and logitech P3000) use a different driver than UVC. Also, I can plug two philips webcam and they works fine. ¿Is this a bug or an unresolved problem of the UVC driver? ¿Is it a USB problem? My guess is that you're having USB bandwidth issues. As the uvcvideo driver starts capturing video on both cameras, you're not exceeding the theoretical USB bandwidth limit. However, bugs in the USB host controller, the USB host controller driver or the camera can result in corrupted data. Could you perform the same test on another computer ? Best regards, Laurent Pinchart ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel