Playstation Eye

Technical discussion on the newly released and hard to find PS3.

Moderators: cheriff, emoon

ps3fanboy
Posts: 66
Joined: Sun Jul 06, 2008 2:03 am

Post by ps3fanboy »

jimparis wrote:Are you running 32-bit userspace and 64-bit kernel on PPC? I don't know if that's been tested extensively, looks like you're hitting some problem with the compat_ioctl32 stuff. Have you tried other applications that are known to work on other platforms (e.g. mplayer)?
yes, i'm running 32 bit application on 64 bit kernel... no, haven't tested with other apps.
how do i create a 64 bit app? looks like 32 bit app is the default.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Depends on your distro. Try "gcc -m64". Also please try an existing app like mplayer and let us know how that goes :)
ps3fanboy
Posts: 66
Joined: Sun Jul 06, 2008 2:03 am

Post by ps3fanboy »

jimparis wrote:Are you running 32-bit userspace and 64-bit kernel on PPC? I don't know if that's been tested extensively, looks like you're hitting some problem with the compat_ioctl32 stuff. Have you tried other applications that are known to work on other platforms (e.g. mplayer)?
i ran the driver with mplayer and found that quality is as bad as with my app.
no difference with the flickering.

the ioctl problem seems to be related to the kernel. i tried with 2.6.26 and didn't see any that i saw on 2.6.28.
ps3fanboy
Posts: 66
Joined: Sun Jul 06, 2008 2:03 am

Post by ps3fanboy »

everything seems to be fine with the latest 2.6.28 kernel:

Code: Select all

usb 1-2.4: new high speed USB device using ps3-ehci-driver and address 32
usb 1-2.4: configuration #1 chosen from 1 choice
gspca: probing 1415:2000
ov534: sensor is ov7721
ov534: frame_rate: 30
gspca: probe ok
gspca: probing 1415:2000
gspca: probing 1415:2000
no ioctl problems anymore.
ps3fanboy
Posts: 66
Joined: Sun Jul 06, 2008 2:03 am

Post by ps3fanboy »

now that we have video working... any info on how to make the 36 microphones that are in ps3eye work?
thanks.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

36?!!! There are only 4, maybe you bought 9 cameras by mistake? :)

They work fine. Just open up e.g. Audacity and tell it to record 4 channels.
ps3fanboy
Posts: 66
Joined: Sun Jul 06, 2008 2:03 am

Post by ps3fanboy »

jimparis wrote:36?!!! There are only 4, maybe you bought 9 cameras by mistake? :)

They work fine. Just open up e.g. Audacity and tell it to record 4 channels.
well, looks like counting beyond 3 seems a bit difficult for me :-)
thanks.
swordman
Posts: 27
Joined: Tue Dec 27, 2005 9:04 pm

Post by swordman »

I'm trying to use the PSEYE on Xubuntu 8.10 on a laptop, and the driver compiles just fine.
The installaion runs Ok and in VLC the video stream is recognized ok.
Just a pair of questions:
- In VLC I have a delay of 1 second
- The output show a weavy noise running bottom-up int the VLC output.
Are these VLC problems, or drivers problems or something with the kernel?
I've also thought about the refresh rate of the the monitor for the waves.
PS: The kernel is ubuntu-2.6.27.9-generic
Thanks!
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

The delay is probably a combination of buffering in the camera, in the USB stack, in the pseye driver, and in VLC. There will always be some delay because of this (although 1 second seems unusually long). Try other players like mplayer and it might be better.

For the noise, can you show us an example?
swordman
Posts: 27
Joined: Tue Dec 27, 2005 9:04 pm

Post by swordman »

Now...
I don't know what to say...
The weavy noise is the one that you can see when you record with a camera what you see in TV, i don't know if I expressed the idea well. (sorry for the bad english).
But, won I've noticed that it is only visible when I've light turned on (neon lamp).
In natural light the video is noise free... (EMC problem anyone?)
I don't know.
The delay isn't really a problem for me, I've to use the camera for openCV, so...
Instead I noticed that opencv capture the frame, bat non always the complete ones, sometime there are artifacts in the upper side of the picture... but this is probably a problem of the raw access of opencv to the data.
Thanks for the reply!
If i've something other.. I'll post ;)
Thanks!

PS: In openCV I don't have delay.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

swordman wrote:The weavy noise is the one that you can see when you record with a camera what you see in TV, i don't know if I expressed the idea well. (sorry for the bad english).
But, won I've noticed that it is only visible when I've light turned on (neon lamp).
In natural light the video is noise free... (EMC problem anyone?)
I don't know.
On the PS3 in gameos, there is an option to use a 50Hz or a 60Hz filter to avoid flicker from artificial lighting. I guess the ov534 driver probably initializes this to the wrong value for your region. Try this patch to the ov534 driver:

Code: Select all

diff --git a/drivers/media/video/gspca/ov534.c b/drivers/media/video/gspca/ov534.c
index 3bf15e4..093fddd 100644
--- a/drivers/media/video/gspca/ov534.c
+++ b/drivers/media/video/gspca/ov534.c
@@ -259,7 +259,7 @@ static const __u8 ov772x_reg_initdata[][2] = {
        { 0x2a, 0x00 },
        { 0x2b, 0x00 },
        { 0x6b, 0xaa },
-       { 0x13, 0xff },
+       { 0x13, 0xdf },
 
        { 0x90, 0x05 },
        { 0x91, 0x01 },
You can also try playing with these two registers:

Code: Select all

diff --git a/drivers/media/video/gspca/ov534.c b/drivers/media/video/gspca/ov534.c
index 3bf15e4..7370968 100644
--- a/drivers/media/video/gspca/ov534.c
+++ b/drivers/media/video/gspca/ov534.c
@@ -297,8 +297,8 @@ static const __u8 ov772x_reg_initdata[][2] = {
        { 0x0c, 0x90 },
 
        { 0x2b, 0x00 },
-       { 0x22, 0x7f },
-       { 0x23, 0x03 },
+       { 0x22, 0x7f }, /* banding filter minimum AEC value */
+       { 0x23, 0x03 }, /* banding filter maximum step */
        { 0x11, 0x01 },
        { 0x0c, 0xd0 },
        { 0x64, 0xff },
but I don't know how they should be adjusted.
swordman
Posts: 27
Joined: Tue Dec 27, 2005 9:04 pm

Post by swordman »

I apologize for not replying in a while... Sorry
My PSEye stopped working so I've to search for another one.
When I get it, il try the patch ;) Thanks
jacquelina
Posts: 1
Joined: Mon Jan 18, 2010 8:17 pm

Post by jacquelina »

What camera is good and do you have any tips? I've been doing photography for about a year now and I have a Cannon digital camera.. Is this a good camera to use? And how can I get a good lighting and any useful tips to make my pictures more mind blowing or at least beautiful?
________________________
yahoo keyword tool ~ overture ~ traffic estimator ~ adwords traffic estimator
Last edited by jacquelina on Thu Jan 21, 2010 8:02 pm, edited 1 time in total.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

^^ spammer
Post Reply