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:
atte@ajstrup:~$ 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?
On Tue, Jun 24, 2008 at 3:36 PM, Atte André Jensen atte.jensen@gmail.com 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
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?
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
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?
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:
the channels match (red=red, green=green, blue=blue)
fromBGRA() to frmRGBA() and recompile Gem.
fmgasdr IOhannes
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.
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
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
ydegoyon wrote:
and there might be a confusion here,
Sure I'm confused. Maybe it would be nice to know exactly what to install.
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