From owner-freebsd-multimedia Mon Apr 26 2:52:46 1999 Delivered-To: freebsd-multimedia@freebsd.org Received: from hydrogen.fircrest.net (metriclient-2.uoregon.edu [128.223.172.2]) by hub.freebsd.org (Postfix) with ESMTP id 5E00114DFE for ; Mon, 26 Apr 1999 02:52:40 -0700 (PDT) (envelope-from gurney_j@efn.org) Received: (from jmg@localhost) by hydrogen.fircrest.net (8.9.1/8.8.7) id CAA03695; Mon, 26 Apr 1999 02:52:34 -0700 (PDT) Message-ID: <19990426025234.21776@hydrogen.nike.efn.org> Date: Mon, 26 Apr 1999 02:52:34 -0700 From: John-Mark Gurney To: Amancio Hasty Cc: multimedia@freebsd.org Subject: Re: brooktree driver problems?? References: <19990426020600.34104@hydrogen.nike.efn.org> <199904260921.CAA05739@rah.star-gate.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <199904260921.CAA05739@rah.star-gate.com>; from Amancio Hasty on Mon, Apr 26, 1999 at 02:21:45AM -0700 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 3.0-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Amancio Hasty scribbled this message on Apr 26: > Whats your CPU & PCI chipset ?? sorry, I had my machine get frozen by a stupid typo so I had to reboot when I was writting a message with this info... CPU: AMD-K6tm w/ multimedia extensions (225.01-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x562 Stepping=2 Features=0x8001bf chip0: rev 0x03 on pci0.0.0 chip1: rev 0x27 on pci0.7.0 bktr0: rev 0x11 int a irq 11 on pci0.9.0 STB TV/PCI, Temic NTSC tuner, dbx stereo. sc0 not found at 0x60 (no video on this machine at all)... > Well, I get : > time ./videocapture > micro seconds 5114 > 0.000u 0.012s 0:06.12 0.1% 0+0k 0+0io 0pf+0w I got: frame 301 micro seconds 11377 12.38 real 0.00 user 0.02 sys which is actually better than before... that's ~24.39fps which is actually what I'm seeing usually with my program... > I added the following to program: [...] > You do have a sleep in your program?? > > Because the code segment which you mailed didn't > have it. actually, it does have a sleep(1)... I forgot to mail you that extra line.. it's right after the mmap line before that function returns... I've tried looking at the data I get and I usually get only half the display of actual data and some residue... which means it looks like I'm only getting one of the two fields... > " > sleep(1); /* Let the unit settled down -- very important > and this only needed when a video input or > video format is specified */ > " > > > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message