#!/usr/bin/perl -w
-# Copyright © 2001 Jamie Zawinski <jwz@jwz.org>, all rights reserved.
+# Copyright © 2001, 2002 Jamie Zawinski <jwz@jwz.org>.
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
use strict;
my $progname = $0; $progname =~ s@.*/@@g;
-my $version = q{ $Revision: 1.4 $ }; $version =~ s/^[^0-9]+([0-9.]+).*$/$1/;
+my $version = q{ $Revision: 1.7 $ }; $version =~ s/^[^0-9]+([0-9.]+).*$/$1/;
my $verbose = 0;
my $tmpdir = $ENV{TMPDIR};
$tmpdir = "/tmp" unless $tmpdir;
-my $tmpfile = "$tmpdir/xssgv.$$";
+my $tmpfile = "$tmpdir/xssgv.$$.ppm";
# this crap is because "vidtomem" can only write to a file, and uses
# a stupid, non-overridable file name format.
my @programs = (
- "bttvgrab -d q -Q -l 1 -o jpg -f $tmpfile", # BTTV
+ "bttvgrab -d q -Q -l 1 -o ppm -f $tmpfile", # BTTV
"qcam > $tmpfile", # Connectix Qcam
- "streamer -o $tmpfile", # XawTV
+ "streamer -s 768x576 -o $tmpfile", # XawTV
"atitv snap $tmpfile", # ATI video capture card
- "vidtomem -f $tmpfile 2>- && mv $sgi_bogosity $tmpfile", # Silicon Graphics
+ "grab -type ppm -format ntsc -source 1 " .
+ "-settle 0.75 -output $tmpfile", # *BSD BT848 module
+
+ "vidtomem -f $tmpfile 2>&- && mv $sgi_bogosity $tmpfile", # Silicon Graphics
);