Personal tools
You are here: Home PC Webカメラ vidcat
Document Actions

vidcat

by かわうぃん last modified 2006-01-29 07:00

WebCamから静止画を取得するソフト

WebCAMを実現するためにいろいろと検索しました。オリジナルはこちら

静止画を取得するのであればVidcatが良いようです。ここからダウンロードするとw3cam落ちてきますので、その中のソースからconfig makeするわけですが、エラーが発生して通りません。どうやらfontライブラリのパスが異なるようです。

そこで次のように、vidcatのみ使用できるようMakefile.inファイルを編集します。

tar xvfz vidcat.tar.gz
   cd vidcat
   tar xvf w3cam-0.7.2.tar
   cd w3cam-0.7.2
   cp Makefile.in Makefile.in-original

   Replace the Makefile.in with this Makefile.in

Or edit Makefile.in to this:

   CC = @CC@
   prefix=@prefix@
   exec_prefix=@exec_prefix@
   sbindir=@sbindir@
   cgibindir=$(prefix)/cgi-bin
   bindir=@bindir@

   VERSION=0.7.2
   CFLAGS = @CFLAGS@ @DEFS@ -DVIDEO_DEV=\"@ac_device@\" -DVERSION=\"$(VERSION)\"
   LDFLAGS = @LDFLAGS@
   LIBS = @LIBS@

   OBJ = w3cam.o cgi.o v4l.o

   default: vidcat vidcat.1 README

   vidcat: vidcat.o v4l.o
     $(CC) $(LDFLAGS) -o $@ vidcat.o v4l.o $(LIBS)

End Makefile.in--------

それからConfigureとMakeを実行します。
    ./configure
    make

    ./vidcat -d /dev/video -f png -p y -s 640x480 > test.png   


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: