I suggest make a new ports of FarSight's libmimic and then modify any instant messager in ports tree, which supports webcamd, to link with libmimic.
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
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
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!
LD_PRELOAD=/usr/local/lib/libv4l/v4l1compat.so camserv
wget [url]http://www.rockafunk.org/camserv.tar.gz[/url]
cp -R camserv /usr/local/share/
Edit-Go advanceddamn how do I delete a post?