aMSN Forums
June 18, 2013, 06:58:52 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: 1 [2] 3
  Print  
Author Topic: Webcam didn't work on Ubuntu 8.10 + aMSN 0.97.2  (Read 31655 times)
Bloodsucker
Power user
*
Offline Offline

Posts: 101


View Profile
« Reply #15 on: November 15, 2008, 11:54:36 pm »

Quote from: "vivia"
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
Administrator
Super Power User
*****
Offline Offline

Posts: 2464


View Profile
« 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 Smiley
Logged
Bloodsucker
Power user
*
Offline Offline

Posts: 101


View Profile
« Reply #17 on: November 16, 2008, 02:02:27 am »

Quote from: "vivia"
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 Smiley


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!!! Cheesy :wink:
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« 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 Offline

Posts: 101


View Profile
« Reply #19 on: November 16, 2008, 04:42:32 pm »

Quote from: "kakaroto"
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. Sad
I think i need to compile this version... juruummlls...


Edit:

I falling from the 6th floor...  :oops: . "Menuda mieeeerrrrda... xD"
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« 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 Offline

Posts: 3


View Profile
« Reply #21 on: January 03, 2009, 11:09:51 pm »

Quote from: "kakaroto"
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:

Code:

$ 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  Cheesy
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« 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=15
problem 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:
Code:
 CFLAGS += -DHAVE_LIBV4L
Logged

KaKaRoTo
renszarv
Newbie

Offline Offline

Posts: 3


View Profile
« Reply #23 on: January 04, 2009, 10:38:04 am »

Quote from: "kakaroto"
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=15
problem 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:
Code:
 CFLAGS += -DHAVE_LIBV4L


Yes, you are right, I have some free hours, and I've already debugged the issue thorougly, and found some solutions Smiley  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  Cheesy
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« 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 Offline

Posts: 3


View Profile
« Reply #25 on: January 04, 2009, 10:23:57 pm »

Quote from: "kakaroto"
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...


libv4l1 doesn't work on top of 'v4l1' driver !  From the package description:
http://hansdegoede.livejournal.com/3636.html

Quote from: "libv4l1"

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 Smiley

 Cheesy
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« 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 Offline

Posts: 2


View Profile
« 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 Offline

Posts: 1


View Profile
« 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
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« 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
Pages: 1 [2] 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!