http://ftp.x.org/contrib/applications/xscreensaver-3.09.tar.gz
[xscreensaver] / hacks / vidwhacker
index a2ab029b99c0cb54e99b8660e75ada37f0bde51e..12192209fa5ef8d56acd64631b5e94ea2e8bbee6 100755 (executable)
@@ -95,6 +95,18 @@ grab() {
 
     qcam > $tmp_ppm1
 
+    # Friedrich Delgado Friedrichs says the following works with a
+    # Brooktree 848 or 878 tuner card:
+    #
+    #   bttvgrab -Q -d q -l 1 -F /dev/null -o gif -f ${tmp}.gif -N PAL
+    #   giftopnm ${tmp}.gif > $tmp_ppm1
+    #   rm ${tmp}.gif
+    #
+    # He notes that you might need to run a TV application (e.g., xawtv)
+    # before the first time you run vidwhacker in order to initialize the
+    # tuner card and kernel modules.
+
+
   else
     echo "$0: don't know how to grab video on this OS." >&2
     clean2
@@ -274,7 +286,7 @@ main() {
 
   getargs $@
 
-  trap my_trap 0 1 2 3 6 9 13
+  trap my_trap 0 1 2 3 6 9 13 15
 
   if [ "$use_stdin" = true ]; then
    cat > $tmp_ppm0
@@ -311,8 +323,15 @@ main() {
          ls -lF $tmp_ppm2
         fi
 
-       # cat the file so that we can nuke it without racing against xv.
-        cat $tmp_ppm2 | xv $xvargs - &
+       mv $tmp_ppm2 $tmp_ppm0
+        xv $xvargs $tmp_ppm0 &
+
+# this doesn't work -- leaves xv processes around, instead of stray xset
+# data.  Sigh.
+#
+#      # cat the file so that we can nuke it without racing against xv.
+#        cat $tmp_ppm2 | xv $xvargs - &
+
         pid=$!
       fi
     fi