|
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
View previous topic :: View next topic |
Author |
Message |
ps3fanboy
Joined: 06 Jul 2008 Posts: 66
|
Posted: Fri Nov 21, 2008 6:01 am Post subject: |
|
|
ao2 wrote: | ps3fanboy wrote: | ao2 wrote: | ao2 wrote: | Hi,
I am also porting the previously posted ov534 driver to gspca, a preview here.
It needs this patch on linux 2.6.28-rc series.
Regards, ao2 |
Poted here for review. |
thanks. just a dumb question: which app are you using to test the driver? |
mplayer:
Code: | mplayer -tv driver=v4l2:device=/dev/video1 tv:// |
or
Code: | gstreamer-properties |
|
thanks.
but before i spend the effort and try it... let me doublecheck again:
you are able to capture 25 or 30 fps with this driver and mplayer? _________________ http://playstation3-homebrew-multimedia.blogspot.com/ |
|
Back to top |
|
|
ao2
Joined: 30 Aug 2008 Posts: 28
|
Posted: Fri Nov 21, 2008 7:35 pm Post subject: |
|
|
ps3fanboy wrote: | ao2 wrote: |
mplayer:
Code: | mplayer -tv driver=v4l2:device=/dev/video1 tv:// |
or
Code: | gstreamer-properties |
|
thanks.
but before i spend the effort and try it... let me doublecheck again:
you are able to capture 25 or 30 fps with this driver and mplayer? |
Yes, it works, 30fps is the default frame rate, and you can go up to 50fps setting a module parameter at insmod time.
Anyway I haven't found a way to show exact fps value with mplayer or any other player, any hints? |
|
Back to top |
|
|
ps3fanboy
Joined: 06 Jul 2008 Posts: 66
|
Posted: Sun Nov 23, 2008 5:57 pm Post subject: Re: ov534 v0.5 |
|
|
so, i've added this patch, recompiled and installed the kernel... 2.6.28-rc4 on ps3...
ov534.ko seems to load nicely...
Code: | Linux video capture interface: v2.00
Bluetooth: HCI USB driver ver 2.10
usbcore: registered new interface driver hci_usb
ov534: OmniVision OV534 compatible webcam detected
ov534: OmniVision OV534 compatible webcam detected
ov534: OmniVision OV534 compatible webcam detected
usbcore: registered new interface driver ov534
ov534: ov534 v0.0.5 module loaded |
lsmod shows that it's loaded...
Code: | odule Size Used by
snd_ps3 20968 0
ov534 31516 0
snd_pcm 123216 1 snd_ps3
videobuf_vmalloc 9908 1 ov534
videobuf_core 24476 2 ov534,videobuf_vmalloc
compat_ioctl32 26464 1 ov534
hci_usb 21288 0
videodev 41864 2 ov534,compat_ioctl32
usb_storage 66608 1
bluetooth 90108 1 hci_usb
v4l1_compat 21284 1 videodev
snd_page_alloc 11944 1 snd_pcm
snd_timer 35912 1 snd_pcm
ps3flash 9072 0
ps3_lpm 18664 0
snd 77856 3 snd_ps3,snd_pcm,snd_timer
soundcore 2776 1 snd
sg 45336 0
ps3rom 9040 0
dm_mod 93696 5
ps3disk 14816 3
ps3stor_lib 8040 3 ps3flash,ps3rom,ps3disk
ohci_hcd 33388 0
ehci_hcd 52132 0
usbcore 202280 6 ov534,hci_usb,usb_storage,ohci_hcd,ehci_hcd |
but there is no /dev/video1...
what's wrong?
thanks. _________________ http://playstation3-homebrew-multimedia.blogspot.com/ |
|
Back to top |
|
|
ao2
Joined: 30 Aug 2008 Posts: 28
|
Posted: Mon Nov 24, 2008 12:01 am Post subject: Re: ov534 v0.5 |
|
|
ps3fanboy wrote: |
so, i've added this patch, recompiled and installed the kernel... 2.6.28-rc4 on ps3...
ov534.ko seems to load nicely...
|
well, actually this is the old driver, look at more recent posts , the new one that is going to be merged in linux mailnine is this one:
http://marc.info/?l=linux-video&m=122710865923853&w=2
which depends on this patch to gspca:
http://shell.studenti.unina.it/~ospite/tmp/gspca_bulk.patch
ps3fanboy wrote: |
but there is no /dev/video1...
what's wrong?
thanks. |
maybe you only have one video device? if so, use /dev/video0 |
|
Back to top |
|
|
ps3fanboy
Joined: 06 Jul 2008 Posts: 66
|
|
Back to top |
|
|
ps3fanboy
Joined: 06 Jul 2008 Posts: 66
|
Posted: Mon Nov 24, 2008 12:49 am Post subject: |
|
|
@ao2:
with your patches i now have /dev/video0, thanks.
Code: | lrwxrwxrwx 1 root root 6 2008-11-23 16:03 /dev/video -> video0
crw-rw---- 1 root root 81, 0 2008-11-23 16:03 /dev/video0 |
on to mplayer ;-) _________________ http://playstation3-homebrew-multimedia.blogspot.com/ |
|
Back to top |
|
|
ps3fanboy
Joined: 06 Jul 2008 Posts: 66
|
Posted: Mon Nov 24, 2008 1:52 am Post subject: |
|
|
one step further, but still not at the finish line :-)
i compiled mplayer on ps3, but all i get is a green box...
any help?
Code: | ./mplayer -vo fbdev -ao alsa -tv driver=v4l2:device=/dev/video0 tv://
MPlayer dev-SVN-r27999-4.1.2 (C) 2000-2008 MPlayer Team
AltiVec found
CPU: PowerPC
Playing tv://.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: USB Camera-B4.04.27.1
Capabilites: video capture read/write streaming
supported norms:
inputs: 0 = ov534;
Current input: 1870017843
Current format: YUYV
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: Cannot get fps
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred colorspace: Packed YUY2)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1
[swscaler @ 0x10af07f0]BICUBIC scaler, from yuyv422 to rgb32 using AltiVec
[swscaler @ 0x10af07f0]using C scaler for horizontal scaling
[swscaler @ 0x10af07f0]using n-tap C scaler for vertical scaling (BGR)
[swscaler @ 0x10af07f0]using C YV12->BGR32 Converter
[swscaler @ 0x10af07f0]640x480 -> 640x480
VO: [fbdev] 640x480 => 640x480 ARGB
|
videos play nicely with
mplayer -vo fbdev test.mpg
driver seems to be ok... except frame_rate = 0 maybe :-)
Code: | usb 1-2.3: new high speed USB device using ps3-ehci-driver and address 11
usb 1-2.3: configuration #1 chosen from 1 choice
gspca: probing 1415:2000
ov534: bulk_size = 614400
ov534: frame_rate = 0
gspca: probe ok
gspca: probing 1415:2000
gspca: probing 1415:2000 |
_________________ http://playstation3-homebrew-multimedia.blogspot.com/ |
|
Back to top |
|
|
ao2
Joined: 30 Aug 2008 Posts: 28
|
Posted: Mon Nov 24, 2008 7:38 am Post subject: |
|
|
ps3fanboy wrote: | one step further, but still not at the finish line :-)
i compiled mplayer on ps3, but all i get is a green box...
any help?
videos play nicely with
mplayer -vo fbdev test.mpg
|
Ah, I haven't tested it yet on PS3, I'll do this week.
Quote: |
driver seems to be ok... except frame_rate = 0 maybe :-)
|
Oh, just a misplaced print, it prints zero when using the default frame_rate=30 I'll fix that, thanks. |
|
Back to top |
|
|
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Wed Nov 26, 2008 4:43 am Post subject: |
|
|
ao2 wrote: | ao2 wrote: | Hi,
I am also porting the previously posted ov534 driver to gspca, a preview here.
It needs this patch on linux 2.6.28-rc series.
Regards, ao2 |
Poted here for review. |
Hi ao2,
I finally got around to testing this driver and it seems to work pretty well :) There are some limitations (it plays fine in mplayer, but has trouble with most other applications including Skype) but it's probably not too hard to figure out why they're failing. It might be using a different resolution, for example. Nice work!
I will resubscribe to linux-video and post some comments on the driver there. |
|
Back to top |
|
|
ao2
Joined: 30 Aug 2008 Posts: 28
|
Posted: Wed Nov 26, 2008 7:14 am Post subject: |
|
|
jimparis wrote: | ao2 wrote: | ao2 wrote: | Hi,
I am also porting the previously posted ov534 driver to gspca, a preview here.
It needs this patch on linux 2.6.28-rc series.
Regards, ao2 |
Poted here for review. |
Hi ao2,
I finally got around to testing this driver and it seems to work pretty well :) There are some limitations (it plays fine in mplayer, but has trouble with most other applications including Skype) but it's probably not too hard to figure out why they're failing. It might be using a different resolution, for example. Nice work!
I will resubscribe to linux-video and post some comments on the driver there. |
Hi jimparis, it's great to get feedback from you.
Mplayer works fine because it can handle YUYV with no problems, other programs have to rely on libv4l (libv4lconvert) for format conversion, using the LD_PRELOAD mechanism.
About 320x240 I still have some problems using the settings from the windows driver. |
|
Back to top |
|
|
ps3fanboy
Joined: 06 Jul 2008 Posts: 66
|
|
Back to top |
|
|
ao2
Joined: 30 Aug 2008 Posts: 28
|
Posted: Tue Dec 02, 2008 1:41 am Post subject: |
|
|
ps3fanboy wrote: | ao2 wrote: | Ah, I haven't tested it yet on PS3, I'll do this week. |
any progress? thanks. |
I haven't found the time yet, but it should be a problem with usb control messages. Will post here as soon as I have something. |
|
Back to top |
|
|
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Dec 02, 2008 8:02 am Post subject: |
|
|
ao2 wrote: | Mplayer works fine because it can handle YUYV with no problems, other programs have to rely on libv4l (libv4lconvert) for format conversion, using the LD_PRELOAD mechanism. |
My version of skype seems to be fine with YUYV (it doesn't complain), it just shows a green screen. libv4lconvert didn't help, although I only played with it a tiny bit. Not a big concern at this point.
Anyway, here's some random comments while I'm thinking about them:
First, it seems strange to call the driver "ov534" when it's really a driver for "ov534/538 + ov7720". And it's a shame there's so much repetition in v4l2 in general. For example, there's definitely some shared code between ov519 vs ov534. And there's a driver for "ov772x" and another driver for "ov7x20" -- seems we should be able to use at least one of those for the sensor part in the PS Eye.
On the other hand, they don't necessarily expose everything we'd want (like clock control), and I'd be hesitant to go modifying the common code because of other devices we'd break. Maybe it's better to just keep the pseye driver standalone.
Code: |
ov534_reg_write(udev, 0x1c, 0x00);
ov534_reg_write(udev, 0x1d, 0x40);
ov534_reg_write(udev, 0x1d, 0x02);
ov534_reg_write(udev, 0x1d, 0x00);
ov534_reg_write(udev, 0x1d, 0x02); // frame_h
ov534_reg_write(udev, 0x1d, 0x57); // frame_m
ov534_reg_write(udev, 0x1d, 0xff); // frame_l
|
These are indirect writes that set the ov534 frame size.
frame_size = ((frame_h << 16) + (frame_m << 8) + (frame_l)) * 4 = 0x0257ff * 4 = 614396
That's .sizeimage-4. I think setting this to 0x025800 would stop dropping the last 2 pixels, and you'd need to change it for 320x240.
Code: |
switch (sd->frame_rate) {
case 50:
sccb_reg_write(gspca_dev->dev, 0x11, 0x01);
sccb_check_status(gspca_dev->dev);
sccb_reg_write(gspca_dev->dev, 0x0d, 0x41);
sccb_check_status(gspca_dev->dev);
ov534_reg_verify_write(gspca_dev->dev, 0xe5, 0x02);
break;
|
The sccb_check_status should be unnecessary, sccb_reg_write does it already.
We could be smarter with the clock rates here. I've almost figured them out, and we can support more flexible framerates if we do. We'll need different numbers here based on the capture resolution. I'm not sure how to best work that into v4l2 though. The module option is easy, but it seems v4l2 has some frame rate enumeration stuff that could be used (v4l2_frmivalenum).
Same with resolution and pixel formats. We should be able to support a lot more than just YUYV and 640x480 and 320x240, and I think I can figure out some of that at the hardware level, I just don't know how to fit it into v4l2/gspca. |
|
Back to top |
|
|
ao2
Joined: 30 Aug 2008 Posts: 28
|
Posted: Tue Dec 02, 2008 8:18 pm Post subject: |
|
|
jimparis wrote: |
Anyway, here's some random comments while I'm thinking about them:
First, it seems strange to call the driver "ov534" when it's really a driver for "ov534/538 + ov7720". And it's a shame there's so much repetition in v4l2 in general. For example, there's definitely some shared code between ov519 vs ov534. And there's a driver for "ov772x" and another driver for "ov7x20" -- seems we should be able to use at least one of those for the sensor part in the PS Eye.
On the other hand, they don't necessarily expose everything we'd want (like clock control), and I'd be hesitant to go modifying the common code because of other devices we'd break. Maybe it's better to just keep the pseye driver standalone.
|
I had the exact thoughts, it's better to have a standalone driver for the time being, maybe even copying and pasting code from "ov772x". The current v4l infrastructure doesn't allow to share sensor drivers easily.
As I wrote on v4l mailing list a couple of times I think that at least the abstractions "bridge", "control protocol" and "sensor" should be added.
jimparis wrote: |
Code: |
ov534_reg_write(udev, 0x1c, 0x00);
ov534_reg_write(udev, 0x1d, 0x40);
ov534_reg_write(udev, 0x1d, 0x02);
ov534_reg_write(udev, 0x1d, 0x00);
ov534_reg_write(udev, 0x1d, 0x02); // frame_h
ov534_reg_write(udev, 0x1d, 0x57); // frame_m
ov534_reg_write(udev, 0x1d, 0xff); // frame_l
|
These are indirect writes that set the ov534 frame size.
frame_size = ((frame_h << 16) + (frame_m << 8) + (frame_l)) * 4 = 0x0257ff * 4 = 614396
That's .sizeimage-4. I think setting this to 0x025800 would stop dropping the last 2 pixels, and you'd need to change it for 320x240.
|
Ah, good. Actually only the last pixel (yuyv, 4 bytes) is dropped, and now we can have it back, great! I'll try adding also 320x240 following your advice.
jimparis wrote: |
Code: |
switch (sd->frame_rate) {
case 50:
sccb_reg_write(gspca_dev->dev, 0x11, 0x01);
sccb_check_status(gspca_dev->dev);
sccb_reg_write(gspca_dev->dev, 0x0d, 0x41);
sccb_check_status(gspca_dev->dev);
ov534_reg_verify_write(gspca_dev->dev, 0xe5, 0x02);
break;
|
The sccb_check_status should be unnecessary, sccb_reg_write does it already.
|
ok
jimparis wrote: |
We could be smarter with the clock rates here. I've almost figured them out, and we can support more flexible framerates if we do. We'll need different numbers here based on the capture resolution. I'm not sure how to best work that into v4l2 though. The module option is easy, but it seems v4l2 has some frame rate enumeration stuff that could be used (v4l2_frmivalenum).
|
Are you using the windows driver as reference?
Or just guessing from your original usb logs?
jimparis wrote: |
Same with resolution and pixel formats. We should be able to support a lot more than just YUYV and 640x480 and 320x240, and I think I can figure out some of that at the hardware level, I just don't know how to fit it into v4l2/gspca. |
I think I can do the linux part.
What about switching this discussion to emails? vl4 mailing list would be OK to me, quoting properly on forums is quite stressing :) |
|
Back to top |
|
|
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Wed Dec 03, 2008 2:16 am Post subject: |
|
|
ao2 wrote: | jimparis wrote: |
We could be smarter with the clock rates here. I've almost figured them out, and we can support more flexible framerates if we do. We'll need different numbers here based on the capture resolution. I'm not sure how to best work that into v4l2 though. The module option is easy, but it seems v4l2 has some frame rate enumeration stuff that could be used (v4l2_frmivalenum).
|
Are you using the windows driver as reference?
Or just guessing from your original usb logs?
| A combination of logs and different references,
chip docs for similar chips, etc. :)
ao2 wrote: |
What about switching this discussion to emails? vl4 mailing list would be OK to me, quoting properly on forums is quite stressing :) | OK, agreed. :)
I might still post some reverse engineering stuff here while it's still just a guess, but sure, I'll get involved in driver discussions there. |
|
Back to top |
|
|
ao2
Joined: 30 Aug 2008 Posts: 28
|
Posted: Wed Dec 03, 2008 10:38 am Post subject: |
|
|
ps3fanboy wrote: | one step further, but still not at the finish line :-)
i compiled mplayer on ps3, but all i get is a green box...
any help?
|
found the problem, a solution will be posted soon. |
|
Back to top |
|
|
ps3fanboy
Joined: 06 Jul 2008 Posts: 66
|
Posted: Wed Dec 03, 2008 5:40 pm Post subject: |
|
|
ao2 wrote: | ps3fanboy wrote: | one step further, but still not at the finish line :-)
i compiled mplayer on ps3, but all i get is a green box...
any help?
|
found the problem, a solution will be posted soon. |
great, looking forward to it... _________________ http://playstation3-homebrew-multimedia.blogspot.com/ |
|
Back to top |
|
|
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Wed Dec 10, 2008 10:29 am Post subject: |
|
|
jimparis wrote: | ao2 wrote: | Mplayer works fine because it can handle YUYV with no problems, other programs have to rely on libv4l (libv4lconvert) for format conversion, using the LD_PRELOAD mechanism. |
My version of skype seems to be fine with YUYV (it doesn't complain), it just shows a green screen. libv4lconvert didn't help, although I only played with it a tiny bit.
| I got it working with Skype. It was a silly mistake: I need to use v4l2convert.so, not libv4lconvert.so.
Code: | $ LD_PRELOAD=/usr/lib32/libv4l/v4l2convert.so ./skype |
|
|
Back to top |
|
|
ps3fanboy
Joined: 06 Jul 2008 Posts: 66
|
Posted: Sat Dec 13, 2008 7:12 pm Post subject: |
|
|
ao2 wrote: | ps3fanboy wrote: | one step further, but still not at the finish line :-)
i compiled mplayer on ps3, but all i get is a green box...
any help?
|
found the problem, a solution will be posted soon. |
please define soon... before xmas, after xmas, in 1 year, 10 years? :-) _________________ http://playstation3-homebrew-multimedia.blogspot.com/ |
|
Back to top |
|
|
ao2
Joined: 30 Aug 2008 Posts: 28
|
Posted: Sun Dec 14, 2008 10:43 pm Post subject: |
|
|
ps3fanboy wrote: | ao2 wrote: | ps3fanboy wrote: | one step further, but still not at the finish line :-)
i compiled mplayer on ps3, but all i get is a green box...
any help?
|
found the problem, a solution will be posted soon. |
please define soon... before xmas, after xmas, in 1 year, 10 years? :-) |
Sorry for the delay.
With the latest code from http://linuxtv.org/hg/~jfrancois/gspca/ it works on PS3.
Clone the repository using mercurial:
Code: |
hg clone http://linuxtv.org/hg/~jfrancois/gspca/
|
and then
Code: | make && make install |
|
|
Back to top |
|
|
ps3fanboy
Joined: 06 Jul 2008 Posts: 66
|
Posted: Mon Dec 15, 2008 12:09 am Post subject: |
|
|
it really works, that's great, thanks!
now on to the next question:
what's the best way to read the video stream from an app?
just open /dev/video, read the bytes and save them in an mpeg2 file? _________________ http://playstation3-homebrew-multimedia.blogspot.com/ |
|
Back to top |
|
|
ao2
Joined: 30 Aug 2008 Posts: 28
|
Posted: Mon Dec 15, 2008 4:57 am Post subject: |
|
|
ps3fanboy wrote: | it really works, that's great, thanks!
now on to the next question:
what's the best way to read the video stream from an app?
just open /dev/video, read the bytes and save them in an mpeg2 file? |
see v4l2-apps/test/capture_example.c in the repository you cloned, mmap is the recommender way AFAIK.
mencoder does the job tho, and I think that you can have some fun with motion too. |
|
Back to top |
|
|
ps3fanboy
Joined: 06 Jul 2008 Posts: 66
|
Posted: Mon Dec 15, 2008 6:59 am Post subject: |
|
|
thanks ao2.
i compiled and ran the capture_example, specified /dev/video0, 1 frame, output to stdout, redirected the output to a file.... and get a file of about 600 kb size.
so far, so good :-)
but which format is it? any chance i can view it with an image viewer, maybe gimp? _________________ http://playstation3-homebrew-multimedia.blogspot.com/ |
|
Back to top |
|
|
ao2
Joined: 30 Aug 2008 Posts: 28
|
Posted: Mon Dec 15, 2008 9:53 pm Post subject: |
|
|
ps3fanboy wrote: | thanks ao2.
i compiled and ran the capture_example, specified /dev/video0, 1 frame, output to stdout, redirected the output to a file.... and get a file of about 600 kb size.
so far, so good :-)
but which format is it? any chance i can view it with an image viewer, maybe gimp? |
It is raw YUYV, if you don't know what to do with it then you don't need it :)
jokes apart, I think you can convert it using 'yuvtoppm' from netpbm, but I can't try right now. |
|
Back to top |
|
|
ps3fanboy
Joined: 06 Jul 2008 Posts: 66
|
Posted: Tue Dec 16, 2008 1:07 am Post subject: |
|
|
ao2 wrote: | ps3fanboy wrote: | thanks ao2.
i compiled and ran the capture_example, specified /dev/video0, 1 frame, output to stdout, redirected the output to a file.... and get a file of about 600 kb size.
so far, so good :-)
but which format is it? any chance i can view it with an image viewer, maybe gimp? |
It is raw YUYV, if you don't know what to do with it then you don't need it :)
jokes apart, I think you can convert it using 'yuvtoppm' from netpbm, but I can't try right now. |
thanks, i thought it was some sort of yuv and already tried the elecard viewer and was able to see some blurry picture :-) _________________ http://playstation3-homebrew-multimedia.blogspot.com/ |
|
Back to top |
|
|
ps3fanboy
Joined: 06 Jul 2008 Posts: 66
|
Posted: Tue Dec 16, 2008 5:23 am Post subject: |
|
|
ps3fanboy wrote: | ao2 wrote: | ps3fanboy wrote: | thanks ao2.
i compiled and ran the capture_example, specified /dev/video0, 1 frame, output to stdout, redirected the output to a file.... and get a file of about 600 kb size.
so far, so good :-)
but which format is it? any chance i can view it with an image viewer, maybe gimp? |
It is raw YUYV, if you don't know what to do with it then you don't need it :)
jokes apart, I think you can convert it using 'yuvtoppm' from netpbm, but I can't try right now. |
thanks, i thought it was some sort of yuv and already tried the elecard viewer and was able to see some blurry picture :-) |
added a little yuyv to rgb converter and voila can see the image with gimp :-)
thanks for the help! _________________ http://playstation3-homebrew-multimedia.blogspot.com/ |
|
Back to top |
|
|
patsu
Joined: 22 Jul 2005 Posts: 9
|
Posted: Tue Dec 23, 2008 8:58 am Post subject: |
|
|
I just installed YDL 6.1. Where do I get the library and driver to interact with PS Eye ? Would like to experiment during the 1 week break. Thanks in advance for any pointers ! |
|
Back to top |
|
|
ps3fanboy
Joined: 06 Jul 2008 Posts: 66
|
|
Back to top |
|
|
ps3fanboy
Joined: 06 Jul 2008 Posts: 66
|
Posted: Thu Dec 25, 2008 6:53 am Post subject: |
|
|
@ao2:
my app and dirver works, but dmesg shows:
Code: | usb 1-2.3: new high speed USB device using ps3-ehci-driver and address 8
usb 1-2.3: configuration #1 chosen from 1 choice
Linux video capture interface: v2.00
gspca: main v2.4.0 registered
gspca: probing 1415:2000
ov534: sensor is ov7721
ov534: frame_rate: 30
gspca: probe ok
gspca: probing 1415:2000
gspca: probing 1415:2000
usbcore: registered new interface driver ov534
ov534: registered
compat_ioctl32: VIDIOC_ENUMINPUT
ioctl32(powerpc-linux-s:3542): Unknown cmd fd(9) cmd(c050561a){t:'V';sz:80} arg(ffef5dc8) on /dev/video0
compat_ioctl32: VIDIOC_ENUMSTD
ioctl32(powerpc-linux-s:3542): Unknown cmd fd(9) cmd(c0485619){t:'V';sz:72} arg(ffef5d80) on /dev/video0
|
looks like the driver doesn't support 2 ioctls... or I am missing something here...
also... is it the driver or my app? the stream quality is not quite stellar...
looks like the stream is slightly flickering... like water waves... i know... it's really hard to describe... thanks. _________________ http://playstation3-homebrew-multimedia.blogspot.com/ |
|
Back to top |
|
|
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Dec 30, 2008 7:21 am Post subject: |
|
|
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)? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|