GP32X.com - GP32 GP2X Pandora The Wiz - open source entertainment: Cam2x - GP32X.com - GP32 GP2X Pandora The Wiz - open source entertainment

Jump to content

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

Cam2x Entry for gbax2007

#1 User is offline   Lithosphere

  • GP32 User
  • PipPipPip
  • Group: Members
  • Posts: 40
  • Joined: 15-August 06

Post icon  Posted 09 July 2007 - 08:54 PM

My entry for the GBAX 2007 Competition is called CAM2X.

IPB Image

It includes a library, an application, a game and some drivers.

The drivers are needed for getting your webcam working on the GP2X. You need a BoB / usb cable to connect your webcam to your GP2X.

You will need a specific driver for your webcam. More info about this can be found in the readme.

Latest version: http://www.gp2x.de/c...?0,0,0,0,6,2235

Some videos of it:

Photocam2x:
http://www.youtube.c...h?v=W6E_GA9xEkg

Puzzlecam2x:
http://www.youtube.c...h?v=Xg3g2oMxZ-U

If your webcam isn't supported, post the name of the webcam or even better the linux driver, and I'll try to compile it for the GP2X.

Photos of GP2X with webcam:
IPB Image IPB Image

Compilation of a kernel module (it's a boring movie tongue.gif ): http://www.youtube.c...h?v=E714lWM5JCQ

This post has been edited by Lithosphere: 12 July 2007 - 11:39 AM


#2 User is offline   foleyjo

  • GP Mania
  • PipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 453
  • Joined: 25-April 07

Posted 09 July 2007 - 09:03 PM

Well done on actually using the power of the BoB, I think its getting ignored.
Would it be possible to have the PS2 Eyetoy supported. Its what I use as a webcam. I dont have linux so I only have windows drivers for it

#3 User is offline   Lithosphere

  • GP32 User
  • PipPipPip
  • Group: Members
  • Posts: 40
  • Joined: 15-August 06

Posted 09 July 2007 - 09:06 PM

QUOTE(foleyjo @ Jul 9 2007, 11:03 PM) View Post

Well done on actually using the power of the BoB, I think its getting ignored.
Would it be possible to have the PS2 Eyetoy supported. Its what I use as a webcam. I dont have linux so I only have windows drivers for it


Yes, the eyetoy webcam is supported. You have to load the ov51x driver.

#4 User is offline   rokdcasbah

  • got me a date with botticelli's niece
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 1,513
  • Joined: 05-January 06
  • Gender:Male
  • Location:up on cripple creek

Posted 09 July 2007 - 10:22 PM

i was hoping you'd point the camera at the gp2x while the software was up. i guess i'll have to buy a webcam if i want to try that smile.gif

thanks and congratulations, cam2x looks cool and original, i'm sure youtube doesn't do the happiness of seeing a camera feed on the 2x justice.

This post has been edited by rokdcasbah: 09 July 2007 - 10:23 PM


#5 User is offline   Aki

  • Only Amiga makes it possible
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 655
  • Joined: 23-March 07

Posted 09 July 2007 - 11:18 PM

I didn't get it to work with my Logitech QuickCam Zoom.

#6 User is offline   rememberthe8bit

  • GP32 Hardcore
  • PipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 231
  • Joined: 27-August 06
  • Location:Western New York, USA
  • Interests:My interests are, using old (15+ years old) computers, "not school", listening to music (lots 'o kinds, just no rap), homebrew, watching anime and reading manga (I'm lookin' at you, Bleach), reading various news sites, designing computer hardware and software, tinkering with stuff, statistics (sometimes).

Post icon  Posted 09 July 2007 - 11:50 PM

Awesome work! This is a pretty cool idea. I think one of these would work nice for this.

Plus, in the future, when better webcams come out, we'll be able to upgrade.

#7 User is offline   manhill

  • GP32 User
  • PipPipPip
  • Group: Members
  • Posts: 70
  • Joined: 03-June 06
  • Location:venus

Posted 10 July 2007 - 12:28 AM

wow, sounds great, now where do i have to kook up my cam? to the usb at the gp2x? external port? and can we expect an "electronic mirror" function, so i could use it as an electronic back-mirror in my car?

#8 User is offline   Aki

  • Only Amiga makes it possible
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 655
  • Joined: 23-March 07

Posted 10 July 2007 - 12:36 AM

QUOTE(manhill @ Jul 10 2007, 02:28 AM) View Post

wow, sounds great, now where do i have to kook up my cam? to the usb at the gp2x? external port? and can we expect an "electronic mirror" function, so i could use it as an electronic back-mirror in my car?

You need the cradle with USB ports. The UsB host cable from ARTaylor will propably not work as it provides power poorly, unless you have a powered USB hub. (Somehow the Cradle seems to work with many usb devices that the cable failed to power)

#9 User is offline   mfk

  • GP Mania
  • PipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 484
  • Joined: 10-December 05
  • Location:Istanbul, TR

Posted 10 July 2007 - 08:19 AM

Great work Lithosphere! Taking the advantage of a beta tester, my two webcams both work great. The better webcam you have the better image quality you'll get. wink.gif

#10 User is offline   Lithosphere

  • GP32 User
  • PipPipPip
  • Group: Members
  • Posts: 40
  • Joined: 15-August 06

Posted 10 July 2007 - 08:32 AM

QUOTE(Miika @ Jul 10 2007, 01:18 AM) View Post

I didn't get it to work with my Logitech QuickCam Zoom.

I'll try to compile the latest version of the pwc driver for 2.4.25. If I can get it working, I will post it here.

QUOTE(manhill @ Jul 10 2007, 02:28 AM) View Post

wow, sounds great, now where do i have to kook up my cam? to the usb at the gp2x? external port? and can we expect an "electronic mirror" function, so i could use it as an electronic back-mirror in my car?

Yes that would certainly be possible. You can check in the libcam2x folder for a example on you can make your own program with some basic functions: "OpenCamera(), GetNewFrame() and CloseCamera()".

QUOTE(Miika @ Jul 10 2007, 02:36 AM) View Post

QUOTE(manhill @ Jul 10 2007, 02:28 AM) View Post

wow, sounds great, now where do i have to kook up my cam? to the usb at the gp2x? external port? and can we expect an "electronic mirror" function, so i could use it as an electronic back-mirror in my car?

You need the cradle with USB ports. The UsB host cable from ARTaylor will propably not work as it provides power poorly, unless you have a powered USB hub. (Somehow the Cradle seems to work with many usb devices that the cable failed to power)

No you don't really need extra power, my webcam works fine with ARTaylor's cable (my webcam uses max 70mA). Some webcams could need more power, but some small webcams without autobrightness/jpeg compression,... should work.


Keep in mind: all webcam traffic has to go over usb 1.1, so max 12 Mbps. This is only a couple of frames per second for 320x240, for larger resolutions, this is even lower. JPEG compression could make the images smaller and make them transfer faster, but you have to decode the JPEG images.

This post has been edited by Lithosphere: 10 July 2007 - 08:33 AM


#11 User is offline   deathterrapin

  • GP32 User
  • PipPipPip
  • Group: Members
  • Posts: 48
  • Joined: 14-April 03
  • Location:Sheffield, England

Posted 10 July 2007 - 01:39 PM

QUOTE
Keep in mind: all webcam traffic has to go over usb 1.1, so max 12 Mbps. This is only a couple of frames per second for 320x240

Can't you read from the camera in 8 bit YUV mode? That should get you about 20fps at 320x240. I know my old webcam can do that, it predates usb2.0 though, so maybe newer cams can only output RGB.

Any chance of adding the driver for the original logitech quickcam express? (late 90s version, not the completey different one they call by the same name now) I'd love to have a play with this. (unless its already supported and my cam is broken of course biggrin.gif)


#12 User is offline   Lithosphere

  • GP32 User
  • PipPipPip
  • Group: Members
  • Posts: 40
  • Joined: 15-August 06

Posted 10 July 2007 - 02:18 PM

QUOTE(deathterrapin @ Jul 10 2007, 03:39 PM) View Post

QUOTE
Keep in mind: all webcam traffic has to go over usb 1.1, so max 12 Mbps. This is only a couple of frames per second for 320x240

Can't you read from the camera in 8 bit YUV mode? That should get you about 20fps at 320x240. I know my old webcam can do that, it predates usb2.0 though, so maybe newer cams can only output RGB.

Any chance of adding the driver for the original logitech quickcam express? (late 90s version, not the completey different one they call by the same name now) I'd love to have a play with this. (unless its already supported and my cam is broken of course biggrin.gif)

I was trying to send you a new driver thank should work with your logitech quickcam. But your inbox is full. Any other way I can contact you?

[edit] I also added some photos of the gp2x and my webcam[/edit]

This post has been edited by Lithosphere: 10 July 2007 - 02:26 PM


#13 User is offline   deathterrapin

  • GP32 User
  • PipPipPip
  • Group: Members
  • Posts: 48
  • Joined: 14-April 03
  • Location:Sheffield, England

Posted 10 July 2007 - 03:14 PM

I have PMs disabled, you can email me at chris@deathterrapin.plus.com. Thanks.


#14 User is offline   Lithosphere

  • GP32 User
  • PipPipPip
  • Group: Members
  • Posts: 40
  • Joined: 15-August 06

Posted 12 July 2007 - 11:38 AM

I've added driver support for some new webcams (using the pwc driver and the quickcam). If you have such a webcam please test. I haven't added cropping support in the drivers. So if the driver recognizes your camera, /dev/video0 exists but you don't get some frames in the test program, let me know.

http://www.gp2x.de/c...?0,0,0,0,6,2235

#15 User is offline   danboid

  • GP32 Hardcore
  • PipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 212
  • Joined: 21-January 06

Posted 27 July 2007 - 12:53 AM

QUOTE(deathterrapin @ Jul 10 2007, 02:39 PM) View Post

QUOTE
Keep in mind: all webcam traffic has to go over usb 1.1, so max 12 Mbps. This is only a couple of frames per second for 320x240

Can't you read from the camera in 8 bit YUV mode? That should get you about 20fps at 320x240. I know my old webcam can do that, it predates usb2.0 though, so maybe newer cams can only output RGB.


Does the gp2x have enough processing power to be able to capture video of this kind of quality in realtime? I have experimented with v4l capture and I found using ffmpeg's MJPEG capture provided the best image quality, I presumed because it was the least cpu intensive format to encode to. I use xdtv to capture analogue video under X11, but I don't have a webcam right now.

Doesn't the 2x's co-pro feature hardware MPEG4 compression? If it does then the 2X could become a VCD quality camera if combined with the right webcam

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic