|
From: Jean C. M. <jc_...@ho...> - 2008-06-25 08:19:13
|
I'm using the exemple.cpp source code to list all connected cameras and allmodes for them. The list is the same for all camera and doesn't give theright available modes. (It seems the lib always return me the 44 firstmode.Exemple : Device 00: USB Video DeviceMode 00: 640x480 @ 15 fps (rgb32)Mode 01: 320x240 @ 15 fps (rgb32)Mode 02: 160x120 @ 15 fps (rgb32)Mode 03: 640x480 @ 30 fps (rgb32)Mode 04: 320x240 @ 30 fps (rgb32)Mode 05: 160x120 @ 30 fps (rgb32)Mode 06: 640x480 @ 29 fps (rgb32)Mode 07: 320x240 @ 29 fps (rgb32)Mode 08: 160x120 @ 29 fps (rgb32)Mode 09: 640x480 @ 10 fps (rgb32)Mode 10: 320x240 @ 10 fps (rgb32)Mode 11: 160x120 @ 10 fps (rgb32)Mode 12: 640x480 @ 1 fps (rgb32)Mode 13: 320x240 @ 1 fps (rgb32)Mode 14: 160x120 @ 1 fps (rgb32)Mode 15: 640x480 @ 15 fps (i420)Mode 16: 320x240 @ 15 fps (i420)Mode 17: 160x120 @ 15 fps (i420)Mode 18: 640x480 @ 30 fps (i420)Mode 19: 320x240 @ 30 fps (i420)Mode 20: 160x120 @ 30 fps (i420)Mode 21: 640x480 @ 29 fps (i420)Mode 22: 320x240 @ 29 fps (i420)Mode 23: 160x120 @ 29 fps (i420)Mode 24: 640x480 @ 10 fps (i420)Mode 25: 320x240 @ 10 fps (i420)Mode 26: 160x120 @ 10 fps (i420)Mode 27: 640x480 @ 1 fps (i420)Mode 28: 320x240 @ 1 fps (i420)Mode 29: 160x120 @ 1 fps (i420)Mode 30: 640x480 @ 15 fps (yuy2)Mode 31: 320x240 @ 15 fps (yuy2)Mode 32: 160x120 @ 15 fps (yuy2)Mode 33: 640x480 @ 30 fps (yuy2)Mode 34: 320x240 @ 30 fps (yuy2)Mode 35: 160x120 @ 30 fps (yuy2)Mode 36: 640x480 @ 29 fps (yuy2)Mode 37: 320x240 @ 29 fps (yuy2)Mode 38: 160x120 @ 29 fps (yuy2)Mode 39: 640x480 @ 10 fps (yuy2)Mode 40: 320x240 @ 10 fps (yuy2)Mode 41: 160x120 @ 10 fps (yuy2)Mode 42: 640x480 @ 1 fps (yuy2)Mode 43: 320x240 @ 1 fps (yuy2)Mode 44: 160x120 @ 1 fps (yuy2)For this camera I should have only these modes : Device 00: USB Video DeviceMode 00: 720x480 @ 25 fps (YUY2)Mode 01: 704x576 @ 25 fps (YUY2)Mode 02: 160x120 @ 30 fps (YUY2)Mode 03: 176x144 @ 30 fps (YUY2)Mode 04: 320x240 @ 30 fps (YUY2)Mode 05: 352x288 @ 30 fps (YUY2)Mode 06: 640x480 @ 30 fps (YUY2)Mode 07: 1280x1024 @ 30 fps (MJPG)Mode 08: 1280x960 @ 30 fps (MJPG)Mode 09: 1280x720 @ 30 fps (MJPG)Mode 10: 1024x768 @ 30 fps (MJPG)Mode 11: 1024x576 @ 30 fps (MJPG)Mode 12: 800x600 @ 30 fps (MJPG)Mode 13: 720x480 @ 30 fps (MJPG)Mode 14: 640x480 @ 30 fps (MJPG) _________________________________________________________________ Retouchez, classez et partagez vos photos gratuitement avec le logiciel Galerie de Photos ! http://www.windowslive.fr/galerie/ |
|
From: Peter G. <jpg...@gm...> - 2008-06-25 14:37:27
|
Hi, On Wed, Jun 25, 2008 at 4:19 AM, Jean Charles MAMMANA <jc_...@ho...> wrote: > I'm using the exemple.cpp source code to list all connected cameras and all > modes for them. The list is the same for all camera and doesn't give the > right available modes. (It seems the lib always return me the 44 first > mode. Are you using simplegrab or vidcapTester? There is no example.cpp. What platform are you using? Windows? Mac? Linux? Why do you suspect that the mode output is wrong? What other tools are you using to query the device capabilities? One thing to note is that libvidcap is reporting the modes it can achieve using this video device, not all the modes that the video device itself can achieve. For example, libvidcap does not know how to convert motion jpeg into either rgb32, yuy2, or i420. Pete > Exemple : > Device 00: USB Video Device > Mode 00: 640x480 @ 15 fps (rgb32) > Mode 01: 320x240 @ 15 fps (rgb32) > Mode 02: 160x120 @ 15 fps (rgb32) > Mode 03: 640x480 @ 30 fps (rgb32) > Mode 04: 320x240 @ 30 fps (rgb32) > Mode 05: 160x120 @ 30 fps (rgb32) > Mode 06: 640x480 @ 29 fps (rgb32) > Mode 07: 320x240 @ 29 fps (rgb32) > Mode 08: 160x120 @ 29 fps (rgb32) > Mode 09: 640x480 @ 10 fps (rgb32) > Mode 10: 320x240 @ 10 fps (rgb32) > Mode 11: 160x120 @ 10 fps (rgb32) > Mode 12: 640x480 @ 1 fps (rgb32) > Mode 13: 320x240 @ 1 fps (rgb32) > Mode 14: 160x120 @ 1 fps (rgb32) > Mode 15: 640x480 @ 15 fps (i420) > Mode 16: 320x240 @ 15 fps (i420) > Mode 17: 160x120 @ 15 fps (i420) > Mode 18: 640x480 @ 30 fps (i420) > Mode 19: 320x240 @ 30 fps (i420) > Mode 20: 160x120 @ 30 fps (i420) > Mode 21: 640x480 @ 29 fps (i420) > Mode 22: 320x240 @ 29 fps (i420) > Mode 23: 160x120 @ 29 fps (i420) > Mode 24: 640x480 @ 10 fps (i420) > Mode 25: 320x240 @ 10 fps (i420) > Mode 26: 160x120 @ 10 fps (i420) > Mode 27: 640x480 @ 1 fps (i420) > Mode 28: 320x240 @ 1 fps (i420) > Mode 29: 160x120 @ 1 fps (i420) > Mode 30: 640x480 @ 15 fps (yuy2) > Mode 31: 320x240 @ 15 fps (yuy2) > Mode 32: 160x120 @ 15 fps (yuy2) > Mode 33: 640x480 @ 30 fps (yuy2) > Mode 34: 320x240 @ 30 fps (yuy2) > Mode 35: 160x120 @ 30 fps (yuy2) > Mode 36: 640x480 @ 29 fps (yuy2) > Mode 37: 320x240 @ 29 fps (yuy2) > Mode 38: 160x120 @ 29 fps (yuy2) > Mode 39: 640x480 @ 10 fps (yuy2) > Mode 40: 320x240 @ 10 fps (yuy2) > Mode 41: 160x120 @ 10 fps (yuy2) > Mode 42: 640x480 @ 1 fps (yuy2) > Mode 43: 320x240 @ 1 fps (yuy2) > Mode 44: 160x120 @ 1 fps (yuy2) > > For this camera I should have only these modes : > Device 00: USB Video Device > Mode 00: 720x480 @ 25 fps (YUY2) > Mode 01: 704x576 @ 25 fps (YUY2) > Mode 02: 160x120 @ 30 fps (YUY2) > Mode 03: 176x144 @ 30 fps (YUY2) > Mode 04: 320x240 @ 30 fps (YUY2) > Mode 05: 352x288 @ 30 fps (YUY2) > Mode 06: 640x480 @ 30 fps (YUY2) > Mode 07: 1280x1024 @ 30 fps (MJPG) > Mode 08: 1280x960 @ 30 fps (MJPG) > Mode 09: 1280x720 @ 30 fps (MJPG) > Mode 10: 1024x768 @ 30 fps (MJPG) > Mode 11: 1024x576 @ 30 fps (MJPG) > Mode 12: 800x600 @ 30 fps (MJPG) > Mode 13: 720x480 @ 30 fps (MJPG) > Mode 14: 640x480 @ 30 fps (MJPG) > ________________________________ > Centralisez tous vos comptes mails dans Hotmail ! Créez un compte Hotmail, > c'est gratuit ! > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > libvidcap-devel mailing list > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libvidcap-devel > > |
|
From: Jean C. M. <jc_...@ho...> - 2008-06-25 15:08:51
|
Thanks for your help. > Are you using simplegrab or vidcapTester? There is no example.cpp.I'm using simplegrab.c file. > What platform are you using? Windows? Mac? Linux?I've done some tests on windows XP SP2 and Vista SP1 on two computers with 3 cameras.All cameras gave me the same 44 modes with libvidcap library. > Why do you suspect that the mode output is wrong? What other tools are> you using to query the device capabilities?I've made some tests with an other webcam library called vidcapture ( http://www.codevis.com/vidcapture/ )This lib give me the correct modes for each camera according to the camera datasheet as you can see on my previous message. > One thing to note is that libvidcap is reporting the modes it can> achieve using this video device, not all the modes that the video> device itself can achieve. For example, libvidcap does not know how to> convert motion jpeg into either rgb32, yuy2, or i420.I understood. but I my case there are some missing resolutions (over 640*480). An other question : is there a way to get the native camera output mode (without conversion ?). By exemple : on a camera which is capable to give me an mjpeg image format, is it possible to retrieve it ? _________________________________________________________________ Avec Hotmail, vos e-mails vous suivent partout ! Mettez Hotmail sur votre mobile ! http://www.messengersurvotremobile.com/?d=hotmail |
|
From: Peter G. <jpg...@gm...> - 2008-06-25 15:32:41
|
On Wed, Jun 25, 2008 at 11:08 AM, Jean Charles MAMMANA <jc_...@ho...> wrote: > Thanks for your help. > >> Are you using simplegrab or vidcapTester? There is no example.cpp. > I'm using simplegrab.c file. Okay, good. >> What platform are you using? Windows? Mac? Linux? > I've done some tests on windows XP SP2 and Vista SP1 on two computers with 3 > cameras. > All cameras gave me the same 44 modes with libvidcap library. Okay, that makes sense. >> Why do you suspect that the mode output is wrong? What other tools are >> you using to query the device capabilities? > I've made some tests with an other webcam library called vidcapture ( > http://www.codevis.com/vidcapture/ ) > This lib give me the correct modes for each camera according to the camera > datasheet as you can see on my previous message. > > >> One thing to note is that libvidcap is reporting the modes it can >> achieve using this video device, not all the modes that the video >> device itself can achieve. For example, libvidcap does not know how to >> convert motion jpeg into either rgb32, yuy2, or i420. > I understood. but I my case there are some missing resolutions (over > 640*480). Another thing that is a little funny about libvidcap is that it has a "hotlist" of modes that it looks for. So when it reports the modes available for a device, it only includes device modes that match with hotlist modes. If I recall, it was implemented this way because it can be difficult to get exhaustive mode lists from source apis, but it is easier to validate any particular mode. Even if libvidcap does not report that the device supports a particular format, the application may still successfully bind that format using vidcap_format_bind(). For example, libvidcap would probably be able to capture using "Mode 00: 720x480 @ 25 fps (YUY2)". It might make sense to add formats to libvidcap's hotlist. Perhaps the 720x480 resolution would be a good one to look for. > An other question : is there a way to get the native camera output mode > (without conversion ?). > By exemple : on a camera which is capable to give me an mjpeg image format, > is it possible to retrieve it ? This is not currently a feature of libvidcap. I would consider a patch for this feature though. Thanks, Pete |
|
From: Jean C. M. <jc_...@ho...> - 2008-06-25 18:50:33
|
> > I've done some tests on windows XP SP2 and Vista SP1 on two computers with 3> > cameras.> > All cameras gave me the same 44 modes with libvidcap library.> Okay, that makes sense. Is there a reason to get "only" 44 modes each time ? > Another thing that is a little funny about libvidcap is that it has a> "hotlist" of modes that it looks for. So when it reports the modes> available for a device, it only includes device modes that match with> hotlist modes. If I recall, it was implemented this way because it can> be difficult to get exhaustive mode lists from source apis, but it is> easier to validate any particular mode.> > Even if libvidcap does not report that the device supports a> particular format, the application may still successfully bind that> format using vidcap_format_bind(). For example, libvidcap would> probably be able to capture using "Mode 00: 720x480 @ 25 fps (YUY2)".> > It might make sense to add formats to libvidcap's hotlist. Perhaps the> 720x480 resolution would be a good one to look for. I think this "hotlist" exists to help us to standardise format on differents platforms. I'll take a look into the code to find a way to retrieve the real supported format (with directshow). > > An other question : is there a way to get the native camera output mode> > (without conversion ?).> > By exemple : on a camera which is capable to give me an mjpeg image format,> > is it possible to retrieve it ?> > This is not currently a feature of libvidcap. I would consider a patch> for this feature though. Good. I'll wait. Thanks. _________________________________________________________________ Retouchez, classez et partagez vos photos gratuitement avec le logiciel Galerie de Photos ! http://www.windowslive.fr/galerie/ |