All times are UTC-06:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Video on Efika
PostPosted: Wed Mar 24, 2010 6:34 am 
Offline

Joined: Sat Mar 13, 2010 6:28 pm
Posts: 13
Did anyone use a usb video camera ?

I need to capture images and store them at hdd

I tried install Palantir, but there are errors like
Code:
efika:/Palantir/server_# make
gcc -Wall -D_REENTRANT -O2 -g -c -o jpeg.o jpeg.c
jpeg.c:15:21: error: jpeglib.h: No such file or directory
When I try use ready program I see
Code:
efika:/Palantir/serverPPC# ./palantir
./palantir: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by ./palantir)
I installed available one
Code:
efika:/Palantir/serverPPC# aptitude search glibc
v glibc-2.3.6-2 -
v glibc-2.3.6.ds1-1 -
p glibc-doc - GNU C Library: Documentation
v glibc-pic -
i libg++2.8.1.3-glibc2.2 - The GNU C++ extension library - runtime ve
i A libstdc++2.10-glibc2.2 - The GNU stdc++ library
Have anyone idea what I did wrong?


Top
   
 Post subject: Re: Video on Efika
PostPosted: Wed Mar 24, 2010 10:35 am 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
Quote:
Did anyone use a usb video camera ?

I need to capture images and store them at hdd

I tried install Palantir, but there are errors like
Code:
efika:/Palantir/server_# make
gcc -Wall -D_REENTRANT -O2 -g -c -o jpeg.o jpeg.c
jpeg.c:15:21: error: jpeglib.h: No such file or directory
When I try use ready program I see
Code:
efika:/Palantir/serverPPC# ./palantir
./palantir: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by ./palantir)
apt-get install libjpeg6-dev

??
Quote:
Have anyone idea what I did wrong?
The premade one is obviously for a future version of the distro you're using (I will assume Debian here?) so you will have to compile it yourself as above.

If you're missing a header, you basically just need to install the development package for that library. They're usually named in a really hinky way though.. you may just have to apt-cache search libjpeg* and have a look for example.

_________________
Matt Sealey


Top
   
 Post subject:
PostPosted: Thu Mar 25, 2010 9:23 am 
Offline

Joined: Sat Mar 13, 2010 6:28 pm
Posts: 13
You ware right, thank you :-)

but now I met next challenge
Code:
efika:/home/# palantir
Mar 25 10:59:51 [main] -- palantir 2.7 starting --
Mar 25 10:59:51 [main] Definitions for 7 devices found
Mar 25 10:59:51 [main] No serial port specified
Mar 25 10:59:51 [main] No named pipe specified
Mar 25 10:59:51 [video] Card: vivi (/dev/video0)
Mar 25 10:59:51 [video] Capabilities: 1 (capture )
Mar 25 10:59:51 [video] Size: (48x32)-(1024x768)
Mar 25 10:59:51 [video] Channel no. 0 ('Camera') tuners: 0,
flags: 0, type: 2, norm: 1
Mar 25 10:59:51 [video] brightness: 32896 hue: 32896 colour: 32896
Mar 25 10:59:51 [video] contrast: 32896 whiteness: 0
Mar 25 10:59:51 [video] depth: (16) palette: 8
Mar 25 10:59:51 [video] Actual capture box is 320x240 (requested 320x240)
Mar 25 10:59:51 [video] Video buffer size: 1245184, frames: 8
Mar 25 10:59:51 [main] Starting device thread
Mar 25 10:59:51 [main] Listening on 0.0.0.0 port 3000
Mar 25 10:59:51 [main] Control queue timeout set to 30 s
everything look ok
now I try to connect from another machine I paste efika IP address in web browser forexample

http://192.168.0.1:3000

and I see a black preview

at efika I see something like that
Code:
Mar 25 11:01:46 [main] 192.168.0.66 - #0: connection accepted, spawning
server.
Mar 25 11:01:46 [main] 1 client(s) connected
Mar 25 11:01:46 [main] Capture thread started
Mar 25 11:01:46 [http] 192.168.0.66 - video server started
Mar 25 11:01:46 [video] CMCAPTURE - mmap failed, should revert to
read(): Device or resource busy
Mar 25 11:01:46 [video] CSYNC: Device or resource busy
has someone meet with a similar problem?


Top
   
 Post subject:
PostPosted: Thu Mar 25, 2010 7:20 pm 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
Quote:
You ware right, thank you :-)

but now I met next challenge
Code:
efika:/home/# palantir
Mar 25 10:59:51 [main] -- palantir 2.7 starting --
Mar 25 10:59:51 [main] Definitions for 7 devices found
Mar 25 10:59:51 [main] No serial port specified
Mar 25 10:59:51 [main] No named pipe specified
Mar 25 10:59:51 [video] Card: vivi (/dev/video0)
Mar 25 10:59:51 [video] Capabilities: 1 (capture )
Mar 25 10:59:51 [video] Size: (48x32)-(1024x768)
Mar 25 10:59:51 [video] Channel no. 0 ('Camera') tuners: 0,
flags: 0, type: 2, norm: 1
Mar 25 10:59:51 [video] brightness: 32896 hue: 32896 colour: 32896
Mar 25 10:59:51 [video] contrast: 32896 whiteness: 0
Mar 25 10:59:51 [video] depth: (16) palette: 8
Mar 25 10:59:51 [video] Actual capture box is 320x240 (requested 320x240)
Mar 25 10:59:51 [video] Video buffer size: 1245184, frames: 8
Mar 25 10:59:51 [main] Starting device thread
Mar 25 10:59:51 [main] Listening on 0.0.0.0 port 3000
Mar 25 10:59:51 [main] Control queue timeout set to 30 s
everything look ok
now I try to connect from another machine I paste efika IP address in web browser forexample

http://192.168.0.1:3000

and I see a black preview

at efika I see something like that
Code:
Mar 25 11:01:46 [main] 192.168.0.66 - #0: connection accepted, spawning
server.
Mar 25 11:01:46 [main] 1 client(s) connected
Mar 25 11:01:46 [main] Capture thread started
Mar 25 11:01:46 [http] 192.168.0.66 - video server started
Mar 25 11:01:46 [video] CMCAPTURE - mmap failed, should revert to
read(): Device or resource busy
Mar 25 11:01:46 [video] CSYNC: Device or resource busy
has someone meet with a similar problem?
You may need to run the webserver at a higher permissions level (or reduce the permission requirements on the video device). Web server users like "www" usually have absolutely no access to this level of hardware use.

"Device or resource busy" could mean anything, some error code like -ENODEV or -EBUYS which is used for a hell of a lot of things.

It would help if I could quickly look at the source that is producing the error... is that text output coming from Ruby or from a system library?

_________________
Matt Sealey


Top
   
 Post subject:
PostPosted: Fri Mar 26, 2010 2:38 am 
Offline

Joined: Sat Mar 13, 2010 6:28 pm
Posts: 13
I made mestake, I thought that /dev/video0 is my camera, I compared Windows drivers, and I found that it recognize my camera as UVC camera, so I installed Debian package linux-uvc-source, then I load modules
Code:
efika:/home/# lsmod
Module Size Used by
uvcvideo 63144 0
radeon 139688 0
drm 91384 1 radeon
agpgart 37500 1 drm
evdev 12576 2

dmesg:
Code:
usb 1-2: new full speed USB device using ppc-of-ohci and address 6
usb 1-2: configuration #1 chosen from 1 choice
uvcvideo: Found UVC 1.00 device Sirius USB2.0 Camera (0ac8:3343)
uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling
workaround.
input: Sirius USB2.0 Camera as /class/input/input3
after thaht I found /dev/video1, so I changed default config and set Video as /dev/video1, but now it is some kind problem with "video channel"
Code:
efika:/home/# palantir
Mar 26 01:55:41 [main] -- palantir 2.7 starting --
Mar 26 01:55:41 [main] Definitions for 7 devices found
Mar 26 01:55:41 [main] No serial port specified
Mar 26 01:55:41 [main] No named pipe specified
Mar 26 01:55:41 [video] Card: Sirius USB2.0 Camera (/dev/video1)
Mar 26 01:55:41 [video] Capabilities: 1 (capture )
Mar 26 01:55:41 [video] Size: (48x32)-(352x288)
Mar 26 01:55:41 [video] ** Fatal error: GCHAN: Invalid argument


Top
   
 Post subject:
PostPosted: Sun Mar 28, 2010 11:37 am 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
Quote:
I made mestake, I thought that /dev/video0 is my camera, I compared Windows drivers, and I found that it recognize my camera as UVC camera, so I installed Debian package linux-uvc-source, then I load modules
Code:
efika:/home/# lsmod
Module Size Used by
uvcvideo 63144 0
radeon 139688 0
drm 91384 1 radeon
agpgart 37500 1 drm
evdev 12576 2

dmesg:
Code:
usb 1-2: new full speed USB device using ppc-of-ohci and address 6
usb 1-2: configuration #1 chosen from 1 choice
uvcvideo: Found UVC 1.00 device Sirius USB2.0 Camera (0ac8:3343)
uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling
workaround.
input: Sirius USB2.0 Camera as /class/input/input3
after thaht I found /dev/video1, so I changed default config and set Video as /dev/video1, but now it is some kind problem with "video channel"
Code:
efika:/home/# palantir
Mar 26 01:55:41 [main] -- palantir 2.7 starting --
Mar 26 01:55:41 [main] Definitions for 7 devices found
Mar 26 01:55:41 [main] No serial port specified
Mar 26 01:55:41 [main] No named pipe specified
Mar 26 01:55:41 [video] Card: Sirius USB2.0 Camera (/dev/video1)
Mar 26 01:55:41 [video] Capabilities: 1 (capture )
Mar 26 01:55:41 [video] Size: (48x32)-(352x288)
Mar 26 01:55:41 [video] ** Fatal error: GCHAN: Invalid argument
A quick search turned this up (Dutch) http://gathering.tweakers.net/forum/lis ... es/1303847 - no solution.

The second result on Google is this thread! :(

_________________
Matt Sealey


Top
   
 Post subject:
PostPosted: Mon Mar 29, 2010 4:02 pm 
Offline

Joined: Sat Mar 13, 2010 6:28 pm
Posts: 13
yessss, I read that thread ;-)

I compiled 2.6.33 egg, UVCVIDEO is in module, it loads itself when I connect camera but now it stops at:
Code:
efika:/home/# palantir
Mar 30 00:14:13 [main] -- palantir 2.7 starting --
Mar 30 00:14:13 [main] Definitions for 7 devices found
Mar 30 00:14:13 [main] No serial port specified
Mar 30 00:14:13 [main] No named pipe specified
Mar 30 00:14:13 [video] Card: Sirius USB2.0 Camera (/dev/video0)
Mar 30 00:14:13 [video] Capabilities: 1 (capture )
Mar 30 00:14:13 [video] Size: (48x32)-(352x288)
Mar 30 00:14:13 [video] Channel no. 0 ('Camera 1') tuners: 0, flags: 0, type: 2, norm: 0
Mar 30 00:14:13 [video] ** Fatal error: SCHAN: Invalid argument


Top
   
 Post subject:
PostPosted: Mon Mar 29, 2010 10:14 pm 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
Quote:
yessss, I read that thread ;-)

I compiled 2.6.33 egg, UVCVIDEO is in module, it loads itself when I connect camera but now it stops at:
Code:
efika:/home/# palantir
Mar 30 00:14:13 [main] -- palantir 2.7 starting --
Mar 30 00:14:13 [main] Definitions for 7 devices found
Mar 30 00:14:13 [main] No serial port specified
Mar 30 00:14:13 [main] No named pipe specified
Mar 30 00:14:13 [video] Card: Sirius USB2.0 Camera (/dev/video0)
Mar 30 00:14:13 [video] Capabilities: 1 (capture )
Mar 30 00:14:13 [video] Size: (48x32)-(352x288)
Mar 30 00:14:13 [video] Channel no. 0 ('Camera 1') tuners: 0, flags: 0, type: 2, norm: 0
Mar 30 00:14:13 [video] ** Fatal error: SCHAN: Invalid argument
Well, I am sorry I cannot help you, I don't know enough about what you are trying to do nor can I really test it out to see what the problem is. It's really not an Efika problem but a general Linux problem (the thread above is certainly just someone with a PC).

You might have much better luck posting to a forum specifically for Palantir or any other related software you're using.

_________________
Matt Sealey


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 10 guests


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

Search for:
Jump to:  
cron
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group