Date: Mon, 26 Apr 1999 02:21:45 -0700 From: Amancio Hasty <hasty@rah.star-gate.com> To: John-Mark Gurney <gurney_j@resnet.uoregon.edu> Cc: multimedia@freebsd.org Subject: Re: brooktree driver problems?? Message-ID: <199904260921.CAA05739@rah.star-gate.com> In-Reply-To: Your message of "Mon, 26 Apr 1999 02:06:00 PDT." <19990426020600.34104@hydrogen.nike.efn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Whats your CPU & PCI chipset ?? Well, I get : time ./videocapture micro seconds 5114 0.000u 0.012s 0:06.12 0.1% 0+0k 0+0io 0pf+0w I added the following to program: gettimeofday(&start, NULL); c = METEOR_CAP_SINGLE; ioctl(bt848, METEORCAPTUR, &c); while (frames < (FRAMES)) { ioctl(bt848, METEORCAPTUR, &c); do_write(); }; gettimeofday(&now, NULL); usec = 1000 * (now.tv_sec - start.tv_sec) + (now.tv_usec / 1000 - start.tv_usec / 1000); printf(" micro seconds %d \n", usec); You do have a sleep in your program?? Because the code segment which you mailed didn't have it. " sleep(1); /* Let the unit settled down -- very important and this only needed when a video input or video format is specified */ " Cheers > Amancio Hasty scribbled this message on Apr 26: > > See if this program works any better for you. > > well, I ran the program, and timed how long it took to run and it > captured 302 frames in 16.37 real seconds (0.02 user, 0.01 sys), which > means it only got ~18.33 fps which isn't even close... and just so you > know, I based my code off your earlier version that wrote out jpeg files > instead of nothing.. :) > > I converted your program to use continous mode, and I got even worse > performance... took 20.22 real seconds which is ~14.94 fps or skipping > every other frame... though I'm not seeing the signal storm I see with > my own program... I'm going to double check that I have the bt848 init > ioctls in the same order you do... > > I do plan on publicly releasing the code once I get it done, just > needs to be cleaned up so you actually provide command line arguments > to set the various options.. :) > > -- > John-Mark Gurney Voice: +1 541 684 8449 > Cu Networking P.O. Box 5693, 97405 > > "The soul contains in itself the event that shall presently befall it. > The event is only the actualizing of its thought." -- Ralph Waldo Emerson -- Amancio Hasty hasty@star-gate.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904260921.CAA05739>