S
Stan Brown
I'm writing a perl script to capture images from some cameras, and make
mpes out of them on Linux.
I't basicly working using system() calls to v4lctl, but that is slowing
things dow, spawning a seperate task for each capture.
I've found the Video::Captur module, and I think it's the way to go.
However it has no documentation for the calls, and the example programs
have no comments.
Could anyone point me to a working example of capturing an image using
this? I suspect I jyst need to traslate a couple of v4;ctl commands to the
corect syntax for using this module. EG:
system("/usr/bin/v4lctl -c $::config{video_dev} setinput $::config{video_type}");
and:
system("/usr/bin/v4lctl -c $::config{video_dev} snap jpeg 640x480 $tmpfile");
Any pointers to examples would be appreciated.
mpes out of them on Linux.
I't basicly working using system() calls to v4lctl, but that is slowing
things dow, spawning a seperate task for each capture.
I've found the Video::Captur module, and I think it's the way to go.
However it has no documentation for the calls, and the example programs
have no comments.
Could anyone point me to a working example of capturing an image using
this? I suspect I jyst need to traslate a couple of v4;ctl commands to the
corect syntax for using this module. EG:
system("/usr/bin/v4lctl -c $::config{video_dev} setinput $::config{video_type}");
and:
system("/usr/bin/v4lctl -c $::config{video_dev} snap jpeg 640x480 $tmpfile");
Any pointers to examples would be appreciated.