Sophie

Sophie

distrib > Mandriva > 8.1 > i586 > by-pkgid > 2b8c75f1212588cad05d7e0e02d57cbb > files > 36

bttvgrab-0.15.10-3mdk.i586.rpm

How to use the webcam-stuff: (<html> means your html directory,
                              <cgi> means your cgi directory)

1.) Copy bttvgrab.jpg to <html>/images/
2.) Select which method you want to use: server-push(preferred) or client-pull
3.) For server-push, copy tv_off.jpg and nph-webcam.pl to <cgi>
    For client-pull, copy webcam.html to <html>
4.) For server-push, call bttvgrab -f webcam:/tmp/bttvgrab -s <sleeptime> -w <width> -o jpg -q <quality> -Q
    For client-pull, call bttvgrab -f webcam:<html>/bttvgrab -s <sleeptime> -w <width> -o jpg -q <quality> -Q

NOTES:
 - the server push script checks if the browser is Netscape >=2, else
   it uses client pull
 - If the paths don't suit you, edit them in nph-webcam.pl or webcam.html.
 - nph-webcam.pl assumes that the URL of <html> is "<cgi>/..", e.g.
   <html>-URL = /~user/, then <cgi>-URL = /~user/cgi-bin.
 - client-pull needs the expire module in apache, which is *not* compiled-in by
   default. You need to compile your own version of apache for that.