Hi all,
This may not be specific to Pd/Gem..
I have a webcam I am trying to get working with [pix_video] in the following environment.
The camera works fine with Skype for Linux and v4l-test.
However, when specifying the device with [pix_video], I get a series of errors such as,
v4l: VDIOCGCHAN: Invalid argument v4l: VIDIOCGMBUF: Invalid argument
I've seen posts on this list related to similar errors, in the case of pdp, with advise to bypass the conditional jumps near where the defines appear... this did not work with Gem. (Tried with videoVL4.cpp)
After some surfing, my understanding as of now is that Gem is trying to issue V4L functions, whereas my webcam driver only understands V4L2.. Is this so?
I would appreciate advise on insight on what could be happening here, or even just workarounds to this case.
Here are some hardware specs I gathered, followed by the output of Gem (or they could be from ioctl... I am new to V4L).
-- Output of v4l_dump (http://www.raphnet.net/programmation/v4l_tools/)
Using device /dev/video0 struct video_capability { name='Laptop_Integrated_Webcam_0.3M' channels=1 audios=0 maxwidth=640 maxheight=480 minwidth=48 minheight=32 } VIDIOCGCHAN: Invalid argument struct video_picture { brightness=32768 hue=32768 colour=41942 contrast=0 whiteness=0 depth=16 palette=8 }
-- Pd main window output
[pix_video]: video driver 0: video4linux v4l // <--- On object ctreation verbose( 1):[pix_video]: device-err: 0 // <--- When sending [device /dev/video0 < verbose( 0):v4l: stopped Transfer verbose( 1):v4l::startTransfer closing 6
-- Console output ( When sending [device /dev/video0< )
v4l: VDIOCGCHAN: Invalid argument v4l: VDIOCGCHAN: Invalid argument v4l: VIDIOCGMBUF: Invalid argument
Thank you in advance..
it look like the Gem your using is not compiled with v4l2 suport.
i have somthing like this when creating pix_video : [pix_video]: video driver 0: video4linux2 v4l2 [pix_video]: video driver 1: video4linux v4l [pix_video]: video driver 2: ieee1394 dv4l dv
so, for me V4L2 is default.
i think you have to upgrade gem to a version that suport v4l2 in order to use v4l2 devices...
Cyrille
PSPunch a écrit :
Hi all,
This may not be specific to Pd/Gem..
I have a webcam I am trying to get working with [pix_video] in the following environment.
- Ubuntu Studio 9.04,
- Pd-extended 0.41.4 (.deb for the above distro)
- Gem 0.92.2
The camera works fine with Skype for Linux and v4l-test.
However, when specifying the device with [pix_video], I get a series of errors such as,
v4l: VDIOCGCHAN: Invalid argument v4l: VIDIOCGMBUF: Invalid argument
I've seen posts on this list related to similar errors, in the case of pdp, with advise to bypass the conditional jumps near where the defines appear... this did not work with Gem. (Tried with videoVL4.cpp)
After some surfing, my understanding as of now is that Gem is trying to issue V4L functions, whereas my webcam driver only understands V4L2.. Is this so?
I would appreciate advise on insight on what could be happening here, or even just workarounds to this case.
Here are some hardware specs I gathered, followed by the output of Gem (or they could be from ioctl... I am new to V4L).
-- Output of v4l_dump (http://www.raphnet.net/programmation/v4l_tools/)
Using device /dev/video0 struct video_capability { name='Laptop_Integrated_Webcam_0.3M' channels=1 audios=0 maxwidth=640 maxheight=480 minwidth=48 minheight=32 } VIDIOCGCHAN: Invalid argument struct video_picture { brightness=32768 hue=32768 colour=41942 contrast=0 whiteness=0 depth=16 palette=8 }
-- Pd main window output
[pix_video]: video driver 0: video4linux v4l // <--- On object ctreation verbose( 1):[pix_video]: device-err: 0 // <--- When sending [device /dev/video0 < verbose( 0):v4l: stopped Transfer verbose( 1):v4l::startTransfer closing 6
-- Console output ( When sending [device /dev/video0< )
v4l: VDIOCGCHAN: Invalid argument v4l: VDIOCGCHAN: Invalid argument v4l: VIDIOCGMBUF: Invalid argument
Thank you in advance..
Wow Cyrille, that was right on the spot! With the mentioned version of Ubuntu, first installing the libv4l-dev package and then rebuilding Gem just like I did previously solved it all.
Thanks again!
Hi, I've get a try to install puredata from Debian repositery in armel.deb format, on the Openmoko's Freerunner. Pure Data is a little bit slow, but that seems enough performant to use with [netsend] [netreceive] or othe minimal tasks.
What about Pd-Extended? It will be great to have a Debian armel version of Pd-Extended. isn't it?
C.
_________________________________________________________________
Tchattez en direct en en vidéo avec vos amis !
http://www.windowslive.fr/messenger/
Maybe you want PDa? It would be a lot faster on armel for DSP stuff
at least. As for an armel build of Pd-extended, that would be nice.
Since you have a armel machine running, how about trying to build it?
Just post here with any questions or problems, and we can get it going.
.hc
On Feb 15, 2010, at 9:33 AM, Cosmin S wrote:
Hi, I've get a try to install puredata from Debian repositery in
armel.deb format, on the Openmoko's Freerunner. Pure Data is a little bit slow, but that seems enough performant to
use with [netsend] [netreceive] or othe minimal tasks.What about Pd-Extended? It will be great to have a Debian armel version of Pd-Extended. isn't it?
C.
Windows 7 : Trouvez le PC qui vous convient! Découvrez notre offre ! _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
I have the audacity to believe that peoples everywhere can have three
meals a day for their bodies, education and culture for their minds,
and dignity, equality and freedom for their spirits. - Martin
Luther King, Jr.