Webcam programs working with webcamd in FreeBSD

Does not work camserv.
Code:
uname -v
FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:15:25 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
pkg_info | grep webcam
pwcview-1.4.1_3     The Video4Linux PWC webcam viewer
webcamd-3.2.0.2     A port of Linux USB webcam and DVB drivers into userspace
pwcview -h -s vga -c 1 -o foo.jpg
Webcam set to: 640x480 (vga) at 5 fps
Camera work.
Code:
pkg_info |grep camserv
camserv-0.5.1_15,1  Camserv is a free program to do streaming video via the web

cat /usr/local/share/camserv/camserv.cfg | grep -v '^#' | sed '/^$/d'
[video_basic]
path            /usr/local/lib/camserv/libvideo_basic.so.0
[video_v4l_qcam]
path            /usr/local/lib/camserv/libvideo_v4l.so.0
device_path     /dev/video0
color           30000
hue             30000
contrast        30000
brightness      30000
whiteness       30000
autobright      0
[jpg_filter]
path            /usr/local/lib/camserv/libjpg_filter.so.0
quality         30
[hello_world_banner]
path            /usr/local/lib/camserv/libtext_filter.so.0
text            Hello World
bg              #000000
fg              #ffffff
x               0
y               0
mangle          0
fontname        6x11
[time_stamp]
path            /usr/local/lib/camserv/libtext_filter.so.0
text            Time: %X
bg              #000000
fg              #ffffff
x               0
y               11
mangle          1
fontname        8x8
[static_filter]
path            /usr/local/lib/camserv/librand_filter.so.0
num_perline     20
coloredpix      0
[socket]
listen_port             9192
max_frames              0
max_bytes               0
max_seconds             0
[filters]
num_filters             2
filter0_section         time_stamp
filter1_section         jpg_filter
[video]
video_section           video_v4l_qcam
width                   320
height                  240
maxfps                  0
memhack                 1
[main]

camserv
camserv v0.5.1 - by Jon Travis (jtravis@p00p.org)
Syntax: camserv <cfg file>
Will try /root/.camserv and /usr/local/share/camserv/camserv.cfg
2012-02-11 12:29:24 [main] Trying to read config file "/root/.camserv":
2012-02-11 12:29:24 [main] Error reading config "/root/.camserv": No such file or directory
2012-02-11 12:29:24 [main] Trying to read config file "/usr/local/share/camserv/camserv.cfg":
2012-02-11 12:29:24 [main] Success reading config "/usr/local/share/camserv/camserv.cfg"
2012-02-11 12:29:24 [camconfig] Using default of "2359296" for [main]:shm_alloc
2012-02-11 12:29:24 [mainloop] Setup signals
2012-02-11 12:29:24 [video] file not found
2012-02-11 12:29:24 [video] Error opening video driver; "/usr/local/lib/camserv/libvideo_v4l.so.0 "
2012-02-11 12:29:24 [picloop] Error opening video device!
2012-02-11 12:29:24 [main] Picture taker could not be created!

ll /usr/local/lib/camserv/libvideo_v4l.so.0
-rwxr-xr-x  1 root  wheel  16531 11 фев 11:14 /usr/local/lib/camserv/libvideo_v4l.so.0
ll /dev/video0
crw-rw-rw-  1 webcamd  webcamd    0,  95 10 фев 14:07 /dev/video0
 
Hi.

Code:
fetch [url]http://www.rockafunk.org/patches_and_includes.tar.gz[/url]
tar xvf patches_and_includes.tar.gz
rm -R /usr/ports/multimedia/camserv/
cp -r patches_and_includes/camserv /usr/ports/multimedia/
cd /usr/ports/multimedia/camserv/
make
===>  camserv-0.5.1_7,1 Bad autotool stanza: autoconf:262 libltdl:22 libtool:22.
*** Error code 1
ee Makefile
USE_AUTOTOOLS=  autoconf libtool libltdl
make && make install
...
cd /usr/local/share/camserv/
cp camserv.cfg.dist cp camserv.cfg.dist 
edit camserv.cfg
cat /usr/local/share/camserv/camserv.cfg | grep -v '^#' | sed '/^$/d'
[video_basic]
path            /usr/local/lib/camserv/libvideo_basic.so.0
[video_v4l_qcam]
path            /usr/local/lib/camserv/libvideo_v4l.so.0
device_path     /dev/video0
color           30000
hue             30000
contrast        30000
brightness      30000
whiteness       30000
autobright      0
[socket]
listen_port             9192
max_frames              0
max_bytes               0
max_seconds             0
[video]
video_section           video_v4l_qcam
width                   320
height                  240
maxfps                  5
memhack                 1
[main]


camserv
camserv v0.5.1 - by Jon Travis (jtravis@p00p.org)
Syntax: camserv <cfg file>
Will try /root/.camserv and /usr/local/share/camserv/camserv.cfg
2012-02-18 12:32:55 [main] Trying to read config file "/root/.camserv":
2012-02-18 12:32:55 [main] Error reading config "/root/.camserv": No such file or directory
2012-02-18 12:32:55 [main] Trying to read config file "/usr/local/share/camserv/camserv.cfg":
2012-02-18 12:32:55 [main] Success reading config "/usr/local/share/camserv/camserv.cfg"
2012-02-18 12:32:55 [camconfig] Using default of "2359296" for [main]:shm_alloc
2012-02-18 12:32:55 [mainloop] Setup signals
(V4L) GCAP && GWIN: Invalid argument
2012-02-18 12:32:55 [picloop] Failed to initialize video device!
2012-02-18 12:32:55 [main] Picture taker could not be created!
 
Camserv is a v4l1 program. If you have a uvc webcam you may have to start camserv like this:

LD_PRELOAD=/usr/local/lib/libv4l/v4l1compat.so camserv

Also you could try my configuration files.

wget [url]http://www.rockafunk.org/camserv.tar.gz[/url]

Extract camserv.tar.gz and copy the directory to /usr/local/share.

cp -R camserv /usr/local/share/

In my configuration I have a little picture and some text. If you study camserv.cfg you can put your own picture and text there.

Good luck.
 
Thank you very much for your help. It worked.
My mistake is that I turned in my config

Code:
[filters]
num_filters a
filter0_section jpg_filter
 
But only for v4l1? Is that Intel or from China? Intel has the patent for video chips. I'm sure they have drivers to share they give them to Microsoft users frequently enough :) Linux has at least one driver.

You're talking cpio - it's easy to make a unix device for a stream. Then just cat /dev/cam1 >> socket_dumping_to_bitblit_to_video_card.

It's not rocket science. Likely this or that "cam" has other features (i.e., still frame, maybe even IP encoding) if you're getting the signal through yet another Intel chip. Most devices do this.

Anyhow call Intel and complain. It is their technology and they print on their Texas presses all camera chips. It's just an alteration dac chip. Still not amazing really.
 
OH i'm sorry I though chuchu did not say he offered new software only working with one break. He's trying to get it to work !!

Chuchu? These days I think people are logging in changing things so you continually have to jump through hoops of fixing what had already been working (ie, they make changes that aren't needed but break things). I'm sure some microsoft people have logged in to damage unix.

You might try getting the source and compiling. Often that installs itself correctly when "all else is broken".
 
Sorry I'm having difficulties with forum posting and was not paying attention and did stick my foot in my mouth.

I had said before Intel / Texas has patent for camera chips and makes them. Complain to Intel if you need a driver. They sure bend over to help Microsoft with them :)

If you don't have a driver that works there's a reason.

Using linux drivers ? Yea. But there is where things "seem to change around" allot.

You might need to get deeper in - run as loadable module that you can debug while you use it - put your own code in that prints what works / does not.

MAKE SURE THE BEEF WORKS - the IRQ/DMA/INP commands that talk to the camera. You might try it manually.

Another NOT SMALL detail. They keep changing the codes in the chips to "new versions". This causes drivers to fail.

Who always seems to have the drivers? Microsoft (and, hardly, sometimes Apple)
 
Back
Top