Bloodsucker
Power user
Offline
Posts: 101
|
 |
« Reply #15 on: November 15, 2008, 11:54:36 pm » |
|
These webcams only work with libv4l 0.0.4 , don't know which version we support though. Sorry, but I didn't understand your answer :cry: . What is you want tell me? :roll:
|
|
|
|
|
Logged
|
|
|
|
|
vivia
|
 |
« Reply #16 on: November 16, 2008, 01:46:33 am » |
|
Sorry, it was for kakaroto, not for you. In a few words: the 2.6.27 kernel, used in Feisty, changed something in the gspca webcam module. All gspca webcams now need the libv4l library, version 0.0.4, to be installed on users' system before they work. This is not the only problem though: many applications now need to be patched in order to work with the new libv4l 0.0.4 . I'm not sure which version aMSN uses though, this is what I'd like kakaroto to investigate, because he knows more than I do about the webcam code. As a workaround, you can install a previous kernel - refer to ubuntuforums for help, I really don't know how 
|
|
|
|
|
Logged
|
|
|
|
Bloodsucker
Power user
Offline
Posts: 101
|
 |
« Reply #17 on: November 16, 2008, 02:02:27 am » |
|
Sorry, it was for kakaroto, not for you. In a few words: the 2.6.27 kernel, used in Feisty, changed something in the gspca webcam module. All gspca webcams now need the libv4l library, version 0.0.4, to be installed on users' system before they work. This is not the only problem though: many applications now need to be patched in order to work with the new libv4l 0.0.4 . I'm not sure which version aMSN uses though, this is what I'd like kakaroto to investigate, because he knows more than I do about the webcam code. As a workaround, you can install a previous kernel - refer to ubuntuforums for help, I really don't know how  I prefer the suicide... tnx hehe. So... i will wait until it works again... because... it works again uh? xD Bye and good job amsn dev!!!  :wink:
|
|
|
|
|
Logged
|
|
|
|
|
kakaroto
|
 |
« Reply #18 on: November 16, 2008, 10:18:16 am » |
|
try to see which version of libv4l you have on your system.. and yes, those webcams would only work with libv4l 0.0.4 (supposedly)
|
|
|
|
|
Logged
|
KaKaRoTo
|
|
|
Bloodsucker
Power user
Offline
Posts: 101
|
 |
« Reply #19 on: November 16, 2008, 04:42:32 pm » |
|
try to see which version of libv4l you have on your system.. and yes, those webcams would only work with libv4l 0.0.4 (supposedly) I have installed libv4l 0.5.0-3 (for intrepid). mmm.... i go to find the previus version of libv4l (on hardy packages) and try to install in intrepid. Edit: There no have libv4l in previus version of Intrepid.  I think i need to compile this version... juruummlls... Edit: I falling from the 6th floor... :oops: . "Menuda mieeeerrrrda... xD"
|
|
|
|
|
Logged
|
|
|
|
|
kakaroto
|
 |
« Reply #20 on: December 09, 2008, 06:17:47 pm » |
|
ok, good news... found the problem, something was missing in the makefile to make it correctly compile with the libv4l dependency... so you need to update to SVN revision 10972, and recompile (make clean && make) ... it should work now!
|
|
|
|
|
Logged
|
KaKaRoTo
|
|
|
renszarv
Newbie
Offline
Posts: 3
|
 |
« Reply #21 on: January 03, 2009, 11:09:51 pm » |
|
ok, good news... found the problem, something was missing in the makefile to make it correctly compile with the libv4l dependency... so you need to update to SVN revision 10972, and recompile (make clean && make) ... it should work now! Hmm, I'm using amsn from the subversion repository, and recompile regularly on my Gentoo box. Suddenly the webcam is not working anymore ! After 8 recompile from separate revisions, I'm able to locate the problematic changeset, with 10971 it works, but with 10972 and afters it doesn't work anymore. Just logs the following messages to the console: $ amsn libv4l2: error getting capabilities: Invalid argument libv4l2: error getting capabilities: Invalid argument libv4l2: error getting capabilities: Invalid argument open(/dev/video0): Invalid argument libv4l2: error getting capabilities: Invalid argument open(/dev/video0): Invalid argument
The very strange for me, is that in your commit message, you wrote, that without the change it doesn't use libv4l ... but obviously something worked before, and failing now 
|
|
|
|
|
Logged
|
|
|
|
|
kakaroto
|
 |
« Reply #22 on: January 04, 2009, 02:52:15 am » |
|
Hi renszarv, welcome to the forums. Your issue seems to be the same as the one described here : http://www.amsn-project.net/forums/viewtopic.php?t=6021&postdays=0&postorder=asc&start=15problem is that with libv4l2, some v4l webcams stopped working.. so we'll fix it someday, right now you'll just have to be patient... EDIT: a temporary solution is to edit the Makefile file after doing the ./configure, and remove the line that say s: CFLAGS += -DHAVE_LIBV4L
|
|
|
|
|
Logged
|
KaKaRoTo
|
|
|
renszarv
Newbie
Offline
Posts: 3
|
 |
« Reply #23 on: January 04, 2009, 10:38:04 am » |
|
Hi renszarv, welcome to the forums. Your issue seems to be the same as the one described here : http://www.amsn-project.net/forums/viewtopic.php?t=6021&postdays=0&postorder=asc&start=15problem is that with libv4l2, some v4l webcams stopped working.. so we'll fix it someday, right now you'll just have to be patient... EDIT: a temporary solution is to edit the Makefile file after doing the ./configure, and remove the line that say s: CFLAGS += -DHAVE_LIBV4L
Yes, you are right, I have some free hours, and I've already debugged the issue thorougly, and found some solutions  it was interesting. So I had the following problems : [list=1] - aMSN recently started to use libv4l, instead of opening/closing the device directly
- libv4l expects v4l2 compatible driver
- i've using an old version of gspcav driver, released at 2007-12-24, which only supports v4l1
- worse, i've using an old kernel, 2.6.26, which doesn't contains newer driver
[/list:o]
So I can fix the issue with the followings :
[list=1] - modifying aMSN to using the old method
- using newer driver from the v4l-dvb (http://linuxtv.org/hg/v4l-dvb/) repository. With gentoo it's simple, just execute 'emerge v4l-dvb-hg'
- upgrading my kernel to at least 2.6.27 which contains newer gspca driver
[/list:o]
I've tried the first two method and worked, now I try the latest 
|
|
|
|
|
Logged
|
|
|
|
|
kakaroto
|
 |
« Reply #24 on: January 04, 2009, 09:44:22 pm » |
|
yeah.. that's indeed the problem.. however, it shouldn't be like that... you see, aMSN has two driver modules for webcam, one for v4l and one for v4l2.. if your webcam only supports v4l, then the v4l module will be used (since the v4l2 one won't work)... Yes, libv4l is only for v4l2 compatible drivers, and yes, only the v4l2 module has been modified to use libv4l... The problem that I see is that I'm guessing that the v4l2 module actually 'works' because of libv4l2, which it's not supposed to do... so instead of v4l2 module failing then we fallback of v4l module, the v4l2 works because of libv4l.. I'm assuming that libv4l has some kind of 'v4l to v4l2' compatibility, and that it's buggy...
|
|
|
|
|
Logged
|
KaKaRoTo
|
|
|
renszarv
Newbie
Offline
Posts: 3
|
 |
« Reply #25 on: January 04, 2009, 10:23:57 pm » |
|
yeah.. that's indeed the problem.. however, it shouldn't be like that... you see, aMSN has two driver modules for webcam, one for v4l and one for v4l2.. if your webcam only supports v4l, then the v4l module will be used (since the v4l2 one won't work)... Yes, libv4l is only for v4l2 compatible drivers, and yes, only the v4l2 module has been modified to use libv4l... The problem that I see is that I'm guessing that the v4l2 module actually 'works' because of libv4l2, which it's not supposed to do... so instead of v4l2 module failing then we fallback of v4l module, the v4l2 works because of libv4l.. I'm assuming that libv4l has some kind of 'v4l to v4l2' compatibility, and that it's buggy... libv4l 1 doesn't work on top of 'v4l1' driver ! From the package description: http://hansdegoede.livejournal.com/3636.html This offers functions like v4l1_open, v4l1_ioctl, etc. which can by used to quickly make v4l1 applications work with v4l2 devices. These functions work exactly like the normal open/close/etc, except that libv4l1 does full emulation of the v4l1 api on top of v4l2 drivers, in case of v4l1 drivers it will just pass calls through. For more details on the v4l1_ functions see libv4l1.h .
So, if aMSN fallback from libv4l2 to libv4l1 this wont help anyone 
|
|
|
|
|
Logged
|
|
|
|
|
kakaroto
|
 |
« Reply #26 on: January 05, 2009, 12:02:27 am » |
|
no, it's actually just libv4l2 that we use, not libv4l1... so it's only libv4l for v4l2 devices with palette colorspace/pixelformat conversion automatically done for us.
|
|
|
|
|
Logged
|
KaKaRoTo
|
|
|
seal20
Newbie
Offline
Posts: 2
|
 |
« Reply #27 on: January 08, 2009, 01:55:12 pm » |
|
I got the same problem of webcam, libv4l2: "error getting capabilities: Invalid argument" and fixed it by editing the Makefile as indicated above. Thanks for the workaround!
System debian unstable (last upgrade today, as I was thinking my gspca was broken...) gspca ver 2.6.26 libv4l 0.5.7 webcam : ID 046d:08a9 Logitech, Inc. Notebook Deluxe
|
|
|
|
|
Logged
|
|
|
|
edtrvl
Newbie
Offline
Posts: 1
|
 |
« Reply #28 on: January 21, 2009, 01:19:31 am » |
|
I have the same issue, webcam works with other application but not aMSN, on LinuxMint. So frustrating. Could you provide me with a detailed step by step procedure for the workaround, it would be much appreciated, thanking you in advance
|
|
|
|
|
Logged
|
|
|
|
|
kakaroto
|
 |
« Reply #29 on: January 21, 2009, 01:51:53 am » |
|
the solution is : update aMSN... the aMSN package should be updated in ubuntu's repositories.. so just make sure you update your package list and upgrade aMSN, it should work...
|
|
|
|
|
Logged
|
KaKaRoTo
|
|
|
|