#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
my $tmpdir = $ENV{TMPDIR} || "/tmp";
my $tmpfile = sprintf("%s/xssv.%08x.ppm", $tmpdir, rand(0xFFFFFFFF));
my $tmpdir = $ENV{TMPDIR} || "/tmp";
my $tmpfile = sprintf("%s/xssv.%08x.ppm", $tmpdir, rand(0xFFFFFFFF));
"motioneye -j $tmpfile", # Sony Vaio MotionEye
# (hardware jpeg encoder)
"motioneye -j $tmpfile", # Sony Vaio MotionEye
# (hardware jpeg encoder)
"vidtomem -f $tmpfile 2>&- " . # Silicon Graphics
"&& mv $tmpfile-00000.rgb $tmpfile",
"vidtomem -f $tmpfile 2>&- " . # Silicon Graphics
"&& mv $tmpfile-00000.rgb $tmpfile",
# "mplayer -really-quiet tv://0 " . # Maybe works with some cams?
# "-ao null -vo pnm -frames 1 2>&- " .
# "&& mv 00000001.ppm $tmpfile",
# "mplayer -really-quiet tv://0 " . # Maybe works with some cams?
# "-ao null -vo pnm -frames 1 2>&- " .
# "&& mv 00000001.ppm $tmpfile",