in reply to video capture card
I had some limited access in using the ffmpeg executable to capture video on Windows and piping the capture as raw frames into Perl. But it never was what I'd call reliable, but that also was in 2008 (App::VideoMixer). I think that VFW went out of style in or before 2008 and WDM capture never was accessible to me, and I'm unaware of any modules for it either.
my $pid = open my $capture, 'ffmpeg -r 15 -f vfwcap -i 0 -f rgba -o - +|' or die "$! / $?"; binmode $capture; # assume rgba my $frame_size = $width * $height * 4; $/ = \$frame_size; while (my $frame = <$capture>) { ... };
|
|---|