Webcamd modularisation ongoing

Hans Petter Selasky hselasky at c2i.net
Thu May 19 01:36:18 UTC 2011


On Wednesday 18 May 2011 21:04:19 Hans Petter Selasky wrote:
> Hi,
> 
> I'm currently restructuring webcamd to be more up to date with the
> following git:
> 
> http://git.linuxtv.org/media_tree.git
> 
> I've created a new tool (~1000 LOC) called linux_make, which I've committed
> to my I4B svn repositorium under the usbcam/ulinux/tools/linux_make
> folder.
> 
> This tool basically scans the Linux Makefiles and convert them into BSD
> ones based on input from a "config" file. This is very much like
> menuconfig, only more lightweight. For example I don't care about
> automatic dependencies.
> 
> Currently everything is built like a monotolith, but this new tool allows
> for modules aswell, so that for example the UVC video driver is a .so file
> which webcamd loads during startup.
> 
> When I've got all the bits and pieces together I will do the final
> switchover to using media_tree.git. This might require some help from
> people that have submitted driver patches to webcamd which might no longer
> apply.
> 
> --HPS
> 

Hi,

The switchover to git://linuxtv.org/media_tree.git is now complete as per 
r1804. Please update your patches and report any failures. At least the 
following driver needs to be updated:

"PCTV 452E"

--HPS

Instructions (git + svn is required):

#
# 4) Build webcamd
#

svn --username anonsvn --password anonsvn \
      checkout svn://svn.turbocat.net/i4b/trunk/usbcam/ulinux

make fetch

cd patches

./do_patch.sh

cd ..

make -j3 all

# the following command will attach to the first detected webcam:

./webcamd

#
# The following command will try to attach to the given USB unit,
# interface and V4B unit.
#

./webcamd -d ugen4.1 -i 0 -v 0

#
# The following command will display webcam contents from /dev/video0
# by default.
#

pwcview


More information about the freebsd-multimedia mailing list