Re: Video::Capture example?

From: Stan Brown (stanb_at_panix.com)
Date: 10/31/03


Date: Fri, 31 Oct 2003 16:10:50 +0000 (UTC)

In <kps4qv06cg99h8ombm4hukbeejsg1l9ffh@4ax.com> zentara <zentara@highstream.net> writes:

>On Fri, 31 Oct 2003 00:32:20 +0000 (UTC), Stan Brown <stanb@panix.com>
>wrote:

>>In <4u32qvgthijulq4baguj941i6a9jhr8g7p@4ax.com> zentara <zentara@highstream.net> writes:
>>
>>>On Wed, 29 Oct 2003 15:15:27 +0000 (UTC), Stan Brown <stanb@panix.com>
>>>wrote:
>>
>>>>I'm writing a perl script to capture images from some cameras, and make
>>>>mpes out of them on Linux.
>>
>>Thanks for the help on this again!

>>First, why do we go through the capture/convert loop twice per grab?
>>
>>for ( 0 .. 1 ) {
>> my $nfr = $grab->capture( 1 - $frame, 640, 480 );
>>
>>I've been benchmarking, and it seems that the 2nd pass take much longer
>>than the first.

>Try it without it and see what happens. It is a mystery to me too.
>It seems to have something with getting a sync for the image.

Thanks for the help on this!

My biggest remaining issue is geting this to support the 2nd card. I posted
a message about this in a new thread. I found the call to new in the
module, and the device is optionaly the 2nd argument. Problem is I don't
now what to pass for the first "class" argument.

-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
						-- Benjamin Franklin


Relevant Pages

  • Re: Tournament committee allows rule violation
    ... It would have been a two stroke penalty and he still would have won. ... If, however, he had already signed his card, I don't see how in the world he wouldn't have been DQ'ed. ... "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." ...
    (rec.sport.golf)
  • Re: How can I create devices for a new tape drive in Solaris 10
    ... The first gave a hardware path that was a PCI device, ... PI card, and the Ultra 40 only has 32 bit PCI slots. ... "They that would give up essential liberty for temporary safety deserve ...
    (comp.unix.solaris)
  • Re: Drive errors?
    ... My TV-capture card even froze my PC ... IDE places used, and 2 more on an add in IDE card, as well as 2 SCSO ... "They that would give up essential liberty for temporary safety deserve ...
    (freebsd-questions)
  • Re: PCMCIA network card
    ... > I also know that I had a somewhat kludged install at the time. ... It's an Orinoco Gold card. ... little temporary safety deserve neither liberty nor safety. ...
    (Debian-User)
  • Re: How do I protect myself...
    ... I am not defending some of the stupid things that have come down, like the recent patch that messed up systems with the HP share to web software installed. ... They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. ...
    (microsoft.public.windowsxp.general)