Re: [PD] getting started with webcam/pdp
Hans-Christoph Steiner wrote: You could pull out the pidip.pd_linux and use it with a different version of Pd-extended. Ok, I downloaded, patched and compiled pdp succesfully, however the problem is still there (pd crashes when trying to use the webcam in pdp). However (begin new to video) I discovered that GEM also has some video processing stuff. Would that be a way to go? What *can't* I do in GEM that would be possible either pdp? Finally the image has distorted colors (skin is blue, for instance) when used under GEM. I tried the cam in other software (for instance skype) and it's fine. Any ideas what to do about this? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
Atte André Jensen wrote: Hans-Christoph Steiner wrote: You could pull out the pidip.pd_linux and use it with a different version of Pd-extended. Ok, I downloaded, patched and compiled pdp succesfully, however the problem is still there (pd crashes when trying to use the webcam in pdp). However (begin new to video) I discovered that GEM also has some video processing stuff. Would that be a way to go? What *can't* I do in GEM that would be possible either pdp? loads of things...well, i don't know; i would ask the question the other way around: does Gem/pdp/gf/... can do everything you want? anyhow, the good thing is that there is gem2pdp (and vice versa) bridge, so you can combine the powers of the various libs. Finally the image has distorted colors (skin is blue, for instance) when used under GEM. I tried the cam in other software (for instance skype) and it's fine. Any ideas what to do about this? hmm, do i remember which version of Gem you are talking about? apart from this: - simple solution; use [pix_colormatrix] to rotate the colourspace till the channels match (red=red, green=green, blue=blue) - non-portable solution: in line Pixes/videoV4L.cpp:160 change the fromBGRA() to frmRGBA() and recompile Gem. fmgasdr IOhannes ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
Atte André Jensen wrote: Hans-Christoph Steiner wrote: You could pull out the pidip.pd_linux and use it with a different version of Pd-extended. Ok, I downloaded, patched and compiled pdp succesfully, however the problem is still there (pd crashes when trying to use the webcam in pdp). did you try to use pdp_v4l2 ? this symptom seems very reproducable with pdp _v4l ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
ydegoyon wrote: Atte André Jensen wrote: Hans-Christoph Steiner wrote: You could pull out the pidip.pd_linux and use it with a different version of Pd-extended. Ok, I downloaded, patched and compiled pdp succesfully, however the problem is still there (pd crashes when trying to use the webcam in pdp). did you try to use pdp_v4l2 ? and there might be a confusion here, the one from artefacte was an early release, i'm speaking here of the one included in pidip and in the latests builds, don't have to patch anything, it's in the build. this symptom seems very reproducable with pdp _v4l ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
ydegoyon wrote: did you try to use pdp_v4l2 ? this symptom seems very reproducable with pdp _v4l This is with pdp.pd_linux from pdp-0.12.5-test-7.tar.gz patched with pdp-0.12.5-test-7-v4l2.patch and copied (pdp.pd_linux) on top of regular file in /usr/local/lib/pd/extra/pdp.pd_linux -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
ydegoyon wrote: and there might be a confusion here, Sure I'm confused. Maybe it would be nice to know exactly what to install. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
ydegoyon wrote: puès, the artefacte page is obsolete and everything is in svn now, thus in the latests builds automagically These ones: http://autobuild.puredata.info/auto-build/2008-06-28/? I installed the one for my system (ubuntu gutsy), and unfortunately both problems remain: 1) Pd crashes when using pdp [EMAIL PROTECTED]:~$ pd /usr/lib/pd/doc/examples/pdp/example01.pd tk scaling is 1.18830409357 init : Avifile RELEASE-0.7.47-070916-12:47-4.1.3 init : Available CPU flags: fpu vme de pse tsc msr mce cx8 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 tm pbe up bts est tm2 init : 1600.00 MHz Intel(R) Pentium(R) M processor 1600MHz detected - At this point i clicked the bng -- X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 143 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request: 32 Current serial number in output stream: 32 pd_gui: pd process exited [EMAIL PROTECTED]:~$ 2) GEM shows funny colors (blue skin for example) in /usr/lib/pd/doc/examples/Gem/04.video/00.SimpleVideo.pd This is (now) with http://autobuild.puredata.info/auto-build/2008-06-28/Pd-0.40.3-extended-20080628-ubuntu-gutsy-i386.deb under ubuntu/7.10 on an IBM T41 (PentiumM) laptop with ati graphics card: [EMAIL PROTECTED]:~$ lspci | grep Rad 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500] Any help appreciated! -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
IOhannes m zmölnig wrote: loads of things...well, i don't know; i would ask the question the other way around: does Gem/pdp/gf/... can do everything you want? I don't know what I want, maybe because I'm new to video. So I hope to play around and get some ideas. But right now, for my first idea, I need to translate something on a videofeed into OSC messages + project the video (maybe with some simple explanatory overlay for the audience to better understand what's happening) with a projector. I have som starting ideas about what that something might be. Something like how red is the picture, from 0-1, how much activity is in the image, from 0-1. My system, currently implemented in ChucK is easy to configure to do something useful with these messages. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
ola, 1) Pd crashes when using pdp [EMAIL PROTECTED]:~$ pd /usr/lib/pd/doc/examples/pdp/example01.pd tk scaling is 1.18830409357 init : Avifile RELEASE-0.7.47-070916-12:47-4.1.3 init : Available CPU flags: fpu vme de pse tsc msr mce cx8 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 tm pbe up bts est tm2 init : 1600.00 MHz Intel(R) Pentium(R) M processor 1600MHz detected - At this point i clicked the bng -- X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 143 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request: 32 Current serial number in output stream: 32 pd_gui: pd process exited [EMAIL PROTECTED]:~$ this has nothing to do with your cam here, but with the output object [pdp_glx] try to change it for a [pdp_xv] ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
ydegoyon wrote: try to change it for a [pdp_xv] Great that works. Thanks alot! Isn't glx supposed to work? I guess xv is (much?) slower, right. So I should struggle to get glx working, right? Any ideas in this direction? For instance, is glx working for other people running linux? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] getting started with webcam/pdp
Hi I run linux (ubuntu 7.10) and pd-extended installed from Pd-0.39.3-extended-debian-testing-i386.deb I have some experience with pd, but none with video. I hooked up my phillips webcam and dmesg tels me it's connected to /dev/video0. Skype shows video from this device just fine. However I can't get it going in pd. I tried running the examples/pdp/input_output.pd patch, and I briefly see a black window, then pd dies with this in the terminal: [EMAIL PROTECTED]:~$ pd tk scaling is 1.18830409357 init : Avifile RELEASE-0.7.47-070916-12:47-4.1.3 init : Available CPU flags: fpu vme de pse tsc msr mce cx8 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 tm pbe up bts est tm2 init : 1600.00 MHz Intel(R) Pentium(R) M processor 1600MHz detected X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 143 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request: 32 Current serial number in output stream: 32 socket receive error: Connection reset by peer (104) Am I on the right track? I want to grab some video from the cam, and based on something in the image send out OSC. I don't know what something is yet, need to play with it, but I have the idea of the audience influence the music (which is running in ChucK). Am I still on the right track? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
On Tue, Jun 24, 2008 at 3:36 PM, Atte André Jensen [EMAIL PROTECTED] wrote: Hi I run linux (ubuntu 7.10) and pd-extended installed from Pd-0.39.3-extended-debian-testing-i386.deb I have some experience with pd, but none with video. I hooked up my phillips webcam and dmesg tels me it's connected to /dev/video0. Skype shows video from this device just fine. However I can't get it going in pd. I tried running the examples/pdp/input_output.pd patch, and I briefly see a black window, Probally you have a webcam that use video4linux2 protocol, so you have to use pdp_v4l2. You can find it in http://artefacte.org/pd/ or try one of the last nigthly auto-build bye Husk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
Husk 00 wrote: Probally you have a webcam that use video4linux2 protocol, so you have to use pdp_v4l2. Ok. My device indeed seems to be a version 2 camera, since this shows up in dmesg after inserting the camera: [ 4305.015145] Linux video capture interface: v2.00 [ 4305.080752] pwc: Philips webcam module version 10.0.13 loaded. Sorry for asking, but before I break my whole pd install: I installed pd-extended, which means I cannot uninstall pdp by itself, right? Is it possible to simply compile (and maybe not install) the patched pdp and somehow set pd up to use this instead, while having the original pdp still there, and if so how? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
On Jun 24, 2008, at 12:49 PM, Atte André Jensen wrote: Husk 00 wrote: Probally you have a webcam that use video4linux2 protocol, so you have to use pdp_v4l2. Ok. My device indeed seems to be a version 2 camera, since this shows up in dmesg after inserting the camera: [ 4305.015145] Linux video capture interface: v2.00 [ 4305.080752] pwc: Philips webcam module version 10.0.13 loaded. Sorry for asking, but before I break my whole pd install: I installed pd-extended, which means I cannot uninstall pdp by itself, right? Is it possible to simply compile (and maybe not install) the patched pdp and somehow set pd up to use this instead, while having the original pdp still there, and if so how? You could pull out the pidip.pd_linux and use it with a different version of Pd-extended. It would also be possible for Yves to distribute the new objects on their own, and single files per objectclass. I could help with that... .hc -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/ listinfo/pd-list All mankind is of one author, and is one volume; when one man dies, one chapter is not torn out of the book, but translated into a better language; and every chapter must be so translated -John Donne ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list