From owner-freebsd-multimedia Sun Dec 15 08:15:22 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id IAA12284 for multimedia-outgoing; Sun, 15 Dec 1996 08:15:22 -0800 (PST) Received: from zed.ludd.luth.se (zed.ludd.luth.se [130.240.16.33]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id IAA12279 for ; Sun, 15 Dec 1996 08:15:18 -0800 (PST) Received: from sister.ludd.luth.se (sister.ludd.luth.se [130.240.16.77]) by zed.ludd.luth.se (8.8.3/8.8.3) with SMTP id RAA18559 for ; Sun, 15 Dec 1996 17:15:15 +0100 Date: Sun, 15 Dec 1996 17:15:12 +0100 (MET) From: Johan Larsson To: freebsd-multimedia@freebsd.org Subject: SB16 and .au Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Is there anyone else that have problems with bad (disted) sound while playing .au files to /dev/audio with a SB16 card? Are there any solutions to this problem? Thanks in advance :-) _ /_ /_ _ _ * mailto:gozer@ludd.luth.se * / _ _ _ __ _ (_//_// //_|/ / * http://www.ludd.luth.se/users/gozer * /_,/_|/_\_\/_// / From owner-freebsd-multimedia Sun Dec 15 12:50:51 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA28652 for multimedia-outgoing; Sun, 15 Dec 1996 12:50:51 -0800 (PST) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id MAA28636 for ; Sun, 15 Dec 1996 12:50:48 -0800 (PST) Received: from ct.picker.com by whqvax.picker.com with SMTP; Sun, 15 Dec 1996 15:50:02 -0500 (EST) Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA25717; Sun, 15 Dec 96 15:49:59 EST Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id PAA03373; Sun, 15 Dec 1996 15:48:58 -0500 Message-Id: Date: Sun, 15 Dec 1996 15:48:57 -0500 From: rhh@ct.picker.com (Randall Hopper) To: multimedia@freebsd.org, bkogawa@primenet.com Subject: ANN: AWEDRV 0.2.99c X-Mailer: Mutt 0.54 Mime-Version: 1.0 Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk AWE32 & Sound Blaster 32 owners: AWEDRV 0.2.99c was released recently. This drops right into a 2.2-ALPHA kernel -- just follow INSTALL.frbsd in the driver package. New features: recent versions now allow loading .SBKs/.SF2s directly without patching, and also support stereo/multi-layer instruments. If you'd like to try it, I've created a help page you might want to browse: http://multiverse.com/~rhh/awedrv/ Have fun! Randall From owner-freebsd-multimedia Sun Dec 15 13:17:23 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA00877 for multimedia-outgoing; Sun, 15 Dec 1996 13:17:23 -0800 (PST) Received: from w2xo.pgh.pa.us (w2xo.pgh.pa.us [206.210.70.5]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id NAA00871 for ; Sun, 15 Dec 1996 13:17:20 -0800 (PST) Received: (from durham@localhost) by w2xo.pgh.pa.us (8.8.4/8.8.4) id QAA00727; Sun, 15 Dec 1996 16:16:25 -0500 (EST) Message-ID: X-Mailer: XFMail 0.5-alpha [p0] on FreeBSD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Sun, 15 Dec 1996 16:13:03 -0500 (EST) From: Jim Durham To: Johan Larsson Subject: RE: SB16 and .au Cc: freebsd-multimedia@freebsd.org Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On 15-Dec-96 Johan Larsson wrote: >>Is there anyone else that have problems with bad (disted) sound while >playing .au files to /dev/audio with a SB16 card? Are there any solutions >to this problem? Thanks in advance :-) I'm using an SB16. I've found that some .au files are just "too loud". They seem to run the D/A in the SB16 out of range. I don't know where the .au files you have came from, but I have found that in translating .wav or other files, using sox, to .au files, that they are too loud. I have had to run the "volume" parameter on sox at .25 to get them clean. Hope this helps.. Jim Durham From owner-freebsd-multimedia Mon Dec 16 18:54:54 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id SAA14601 for multimedia-outgoing; Mon, 16 Dec 1996 18:54:54 -0800 (PST) Received: from w2xo.pgh.pa.us (w2xo.pgh.pa.us [206.210.70.5]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id SAA14577 for ; Mon, 16 Dec 1996 18:54:51 -0800 (PST) Received: (from durham@localhost) by w2xo.pgh.pa.us (8.8.4/8.8.4) id VAA05376 for freebsd-multimedia@freebsd.org; Mon, 16 Dec 1996 21:54:57 -0500 (EST) Message-ID: X-Mailer: XFMail 0.5-alpha [p0] on FreeBSD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Mon, 16 Dec 1996 21:45:39 -0500 (EST) From: Jim Durham To: freebsd-multimedia@freebsd.org Subject: output of /dev/dspW Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I am trying to make a decent RealAudio recording using the /dev/audio and /dev/dspW devices, then using sox to translate them to a .wav file for encoding in RealAudio. I'm using 2.1.6 with an SB16 card. The "recordings" of /dev/audio are full of quantizing noise. (cat /dev/audio > test.au, then cat test.au > /dev/audio ), so I judged them unuseable. Using /dev/dspW instead (cat /dev/dspW > test.raw and cat test.raw > /dev/dspW) sounds much better. However, sox isn't able to handle the stream. I get best results with sox set to "raw" with 16 bit words, but the distortion in the output .wav file is very bad. Needless to say, encoding it to RealAudio is useless. Anyone have any information on what the output of /dev/dspW is? U-law, A-law? Whatever? What am I dealing with here? Does anyone have any advice on how to go about this? -regards, Jim Durham From owner-freebsd-multimedia Wed Dec 18 01:37:27 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id BAA26132 for multimedia-outgoing; Wed, 18 Dec 1996 01:37:27 -0800 (PST) Received: from rah.star-gate.com ([204.188.121.18]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id BAA26127; Wed, 18 Dec 1996 01:37:25 -0800 (PST) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.7.6/8.7.3) with ESMTP id BAA03625; Wed, 18 Dec 1996 01:37:12 -0800 (PST) Message-Id: <199612180937.BAA03625@rah.star-gate.com> X-Mailer: exmh version 1.6.9 8/22/96 To: hackers@freebsd.org cc: multimedia@freebsd.org Subject: mmap problems? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 18 Dec 1996 01:37:12 -0800 From: Amancio Hasty Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I have an old program "tv" which used to work okay. frame_size = 38896; if ((video = open("/dev/meteor0", O_RDONLY)) < 0) { fprintf(stderr, "open failed: %s\n", strerror(errno)); exit(1); } After running the program several times, tv exits with a a memory access violation. It looks like the system is not giving me access to the last page of the frame buffer. Any hints? Tnks Amancio From owner-freebsd-multimedia Wed Dec 18 02:12:20 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id CAA27658 for multimedia-outgoing; Wed, 18 Dec 1996 02:12:20 -0800 (PST) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id CAA27624 for ; Wed, 18 Dec 1996 02:11:55 -0800 (PST) Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by Campino.Informatik.RWTH-Aachen.DE (RBI-Z-5/8.6.12) with ESMTP id LAA08889 for ; Wed, 18 Dec 1996 11:13:43 +0100 (MET) Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.8.3/8.6.9) id LAA24037 for multimedia@freebsd.org; Wed, 18 Dec 1996 11:26:28 +0100 (MET) Date: Wed, 18 Dec 1996 11:26:28 +0100 (MET) From: Christoph Kukulies Message-Id: <199612181026.LAA24037@gilberto.physik.rwth-aachen.de> To: multimedia@freebsd.org Subject: nmplayer plug-in Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Anyone knowing if there is a chance to get the Netscape Media Player Plug-In working for FreeBSD? http://www.netscape.com/comprod/mirror/media/download_mplayer.html --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de From owner-freebsd-multimedia Wed Dec 18 04:42:11 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id EAA04695 for multimedia-outgoing; Wed, 18 Dec 1996 04:42:11 -0800 (PST) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id EAA04682 for ; Wed, 18 Dec 1996 04:41:45 -0800 (PST) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id NAA06840 for multimedia@freebsd.org; Wed, 18 Dec 1996 13:00:18 +0100 From: Luigi Rizzo Message-Id: <199612181200.NAA06840@labinfo.iet.unipi.it> Subject: vic2.8 and nv do not talk to each other ? To: multimedia@freebsd.org Date: Wed, 18 Dec 1996 13:00:17 +0100 (MET) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I am trying to make vic-2.8 and nv-3.3b talk to each other (using nv format obviously) but am having no luck. I remember doing this some time ago, perhaps with a previous release of vic (2.6 - 2.7). Is this possible now or there is some major obstacle ? Luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________ From owner-freebsd-multimedia Wed Dec 18 12:09:24 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA24531 for multimedia-outgoing; Wed, 18 Dec 1996 12:09:24 -0800 (PST) Received: from miller.cs.uwm.edu (miller.cs.uwm.edu [129.89.139.22]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id MAA24526 for ; Wed, 18 Dec 1996 12:09:22 -0800 (PST) Received: (from james@localhost) by miller.cs.uwm.edu (8.8.3/8.8.3) id OAA17226 for multimedia@freebsd.org; Wed, 18 Dec 1996 14:09:13 -0600 (CST) Date: Wed, 18 Dec 1996 14:09:13 -0600 (CST) From: Jim Lowe Message-Id: <199612182009.OAA17226@miller.cs.uwm.edu> To: multimedia@freebsd.org Subject: Jim's mixer (jmix) Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I updated my mixer program a little. Mostly added a couple of configuration features. The new version is available for ftp from: ftp://ftp.cs.uwm.edu/pub/FreeBSD/jmix.tar.gz Enjoy, -Jim From owner-freebsd-multimedia Wed Dec 18 13:04:19 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA27472 for multimedia-outgoing; Wed, 18 Dec 1996 13:04:19 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id NAA27450; Wed, 18 Dec 1996 13:04:15 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id OAA10384; Wed, 18 Dec 1996 14:01:51 -0700 From: Terry Lambert Message-Id: <199612182101.OAA10384@phaeton.artisoft.com> Subject: Re: mmap problems? To: hasty@rah.star-gate.com (Amancio Hasty) Date: Wed, 18 Dec 1996 14:01:51 -0700 (MST) Cc: hackers@freebsd.org, multimedia@freebsd.org In-Reply-To: <199612180937.BAA03625@rah.star-gate.com> from "Amancio Hasty" at Dec 18, 96 01:37:12 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I have an old program "tv" which used to work okay. > > frame_size = 38896; > if ((video = open("/dev/meteor0", O_RDONLY)) < 0) { > fprintf(stderr, "open failed: %s\n", strerror(errno)); > exit(1); > } > > After running the program several times, tv exits with a a memory access > violation. It looks like the system is not > giving me access to the last page of the frame buffer. Any hints? Look at the meteor driver; the page range limitation is imposed at that level. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-multimedia Wed Dec 18 13:08:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA27706 for multimedia-outgoing; Wed, 18 Dec 1996 13:08:05 -0800 (PST) Received: from rah.star-gate.com ([204.188.121.18]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id NAA27653; Wed, 18 Dec 1996 13:08:00 -0800 (PST) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.7.6/8.7.3) with ESMTP id NAA06275; Wed, 18 Dec 1996 13:06:11 -0800 (PST) Message-Id: <199612182106.NAA06275@rah.star-gate.com> X-Mailer: exmh version 1.6.9 8/22/96 To: Terry Lambert cc: hackers@freebsd.org, multimedia@freebsd.org Subject: Re: mmap problems? In-reply-to: Your message of "Wed, 18 Dec 1996 14:01:51 MST." <199612182101.OAA10384@phaeton.artisoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 18 Dec 1996 13:06:11 -0800 From: Amancio Hasty Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >From The Desk Of Terry Lambert : > > I have an old program "tv" which used to work okay. > > > > frame_size = 38896; > > if ((video = open("/dev/meteor0", O_RDONLY)) < 0) { > > fprintf(stderr, "open failed: %s\n", strerror(errno)); > > exit(1); > > } > > > > After running the program several times, tv exits with a a memory access > > violation. It looks like the system is not > > giving me access to the last page of the frame buffer. Any hints? > > Look at the meteor driver; the page range limitation is imposed at > that level. > > > Terry Lambert > terry@lambert.org > --- Hi, I am a little confuse . Why would "tv" work 3 or 5 times then fail to run because the driver did not mmap properly the pages? From owner-freebsd-multimedia Wed Dec 18 14:29:29 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA02034 for multimedia-outgoing; Wed, 18 Dec 1996 14:29:29 -0800 (PST) Received: from palrel1.hp.com (palrel1.hp.com [15.253.72.10]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id OAA02017 for ; Wed, 18 Dec 1996 14:29:23 -0800 (PST) Received: from hpwrc716.mayfield.hp.com (ews156.mayfield.hp.com [15.3.26.156]) by palrel1.hp.com with ESMTP (8.7.5/8.7.3) id OAA20857 for ; Wed, 18 Dec 1996 14:29:11 -0800 (PST) Message-Id: <199612182229.OAA20857@palrel1.hp.com> Received: by hpwrc716.mayfield.hp.com (1.37.109.16/16.2) id AA051848184; Wed, 18 Dec 1996 14:29:44 -0800 From: Ping Mai (Contractor) Subject: video capture card recommandation? To: freebsd-multimedia@freebsd.org Date: Wed, 18 Dec 1996 14:29:43 -0800 (PST) X-Mailer: ELM [version 2.4 PL25] Content-Type: text Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Can someone recommand a video capture card that works with fbsd? Thanks, ping From owner-freebsd-multimedia Wed Dec 18 16:24:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA16962 for multimedia-outgoing; Wed, 18 Dec 1996 16:24:05 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id QAA16917; Wed, 18 Dec 1996 16:23:56 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id RAA10646; Wed, 18 Dec 1996 17:21:42 -0700 From: Terry Lambert Message-Id: <199612190021.RAA10646@phaeton.artisoft.com> Subject: Re: mmap problems? To: hasty@rah.star-gate.com (Amancio Hasty) Date: Wed, 18 Dec 1996 17:21:42 -0700 (MST) Cc: terry@lambert.org, hackers@freebsd.org, multimedia@freebsd.org In-Reply-To: <199612182106.NAA06275@rah.star-gate.com> from "Amancio Hasty" at Dec 18, 96 01:06:11 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I am a little confuse . Why would "tv" work 3 or 5 times then fail to run > because the driver did not mmap properly the pages? Because the VM space was exhausted because the cleanup-on-close never happened like it was supposed to... And/or the VM space has to be contiguously allocated, and the necessary memory could not be allocated after a couple of runs because it was too fragmented. You'll have to look carefully at the driver to see which is happening (if either is the correct reason). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-multimedia Wed Dec 18 22:21:00 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id WAA03179 for multimedia-outgoing; Wed, 18 Dec 1996 22:21:00 -0800 (PST) Received: from rah.star-gate.com ([204.188.121.18]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id WAA03174; Wed, 18 Dec 1996 22:20:58 -0800 (PST) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.7.6/8.7.3) with ESMTP id WAA08457; Wed, 18 Dec 1996 22:19:32 -0800 (PST) Message-Id: <199612190619.WAA08457@rah.star-gate.com> X-Mailer: exmh version 1.6.9 8/22/96 To: Terry Lambert cc: hackers@freebsd.org, multimedia@freebsd.org Subject: Re: mmap problems? In-reply-to: Your message of "Wed, 18 Dec 1996 17:21:42 MST." <199612190021.RAA10646@phaeton.artisoft.com> Date: Wed, 18 Dec 1996 22:19:32 -0800 From: Amancio Hasty Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >From The Desk Of Terry Lambert : > > I am a little confuse . Why would "tv" work 3 or 5 times then fail to run > > because the driver did not mmap properly the pages? > > Because the VM space was exhausted because the cleanup-on-close never > happened like it was supposed to... > > And/or the VM space has to be contiguously allocated, and the necessary > memory could not be allocated after a couple of runs because it was > too fragmented. > > You'll have to look carefully at the driver to see which is happening > (if either is the correct reason). > First, the driver used to work and it was recent change in the system not in the driver which is causing the problem. At attach, the meteor executes: define RANGE_BOUNDARY (1<<22) static vm_offset_t get_meteor_mem(int unit, unsigned size) { vm_offset_t addr = 0; addr = vm_page_alloc_contig(size, 0x100000, 0xffffffff, 1<<24); if(addr == 0) addr = vm_page_alloc_contig(size, 0x100000, 0xffffffff, PAGE_SIZE); if(addr == 0) { printf("meteor%d: Unable to allocate %d bytes of memory.\n", unit, size); } return addr; } This call is executed once at boot time. The mmap call in the driver is: meteor_mmap(dev_t dev, int offset, int nprot) { int unit; meteor_reg_t *mtr; unit = UNIT(minor(dev)); if (unit >= NMETEOR) /* at this point could this happen? */ return(-1); mtr = &(meteor[unit]); if(nprot & PROT_EXEC) return -1; if(offset >= mtr->alloc_pages * PAGE_SIZE) return -1; return i386_btop(vtophys(mtr->bigbuf) + offset); } ------ The application mmaps a region from the driver : yuv_data = (uint8 *)mmap((caddr_t)0, frame_size, PROT_READ,0, video, (off_t)0); What this does is mmaps a region of memory which was allocated by the driver at boot time. No further attempts is made by the driver to allocate more memory. So in our scenario , starting /killing the application a few times the system fails to mmap properly all the requested pages. Mind you I am asking for the same number of pages so that pretty much leaves the problem to either mmap or the VM system. Tnks Amancio From owner-freebsd-multimedia Thu Dec 19 01:22:12 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id BAA11846 for multimedia-outgoing; Thu, 19 Dec 1996 01:22:12 -0800 (PST) Received: from gdi.uoregon.edu (cisco-ts13-line15.uoregon.edu [128.223.150.164]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id BAA11841 for ; Thu, 19 Dec 1996 01:22:10 -0800 (PST) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.2/8.6.12) with SMTP id BAA00553; Thu, 19 Dec 1996 01:19:26 -0800 (PST) Date: Thu, 19 Dec 1996 01:19:26 -0800 (PST) From: Doug White Reply-To: dwhite@resnet.uoregon.edu To: Ping Mai cc: freebsd-multimedia@freebsd.org Subject: Re: video capture card recommandation? In-Reply-To: <199612182229.OAA20857@palrel1.hp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 18 Dec 1996, Ping Mai wrote: > Can someone recommand a video capture card that works with fbsd? The (now hard to get) Matrox Meteor or the equivalent OmniMedia Sequence P1S are good PCI framegrabbers. The defunct Creative VideoSpigot and the Connectix QuickCam are also supported. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major From owner-freebsd-multimedia Thu Dec 19 08:24:06 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id IAA28705 for multimedia-outgoing; Thu, 19 Dec 1996 08:24:06 -0800 (PST) Received: from plains.nodak.edu (tinguely@plains.NoDak.edu [134.129.111.64]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id IAA28700 for ; Thu, 19 Dec 1996 08:24:03 -0800 (PST) Received: (from tinguely@localhost) by plains.nodak.edu (8.8.3/8.8.3) id KAA21680; Thu, 19 Dec 1996 10:23:16 -0600 (CST) Date: Thu, 19 Dec 1996 10:23:16 -0600 (CST) From: Mark Tinguely Message-Id: <199612191623.KAA21680@plains.nodak.edu> To: luigi@labinfo.iet.unipi.it, multimedia@freebsd.org Subject: Re: vic2.8 and nv do not talk to each other ? Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I am trying to make vic-2.8 and nv-3.3b talk to each other (using nv > format obviously) but am having no luck. I remember doing this some > time ago, perhaps with a previous release of vic (2.6 - 2.7). > > Is this possible now or there is some major obstacle ? on FreeBSD 2.1.5, vic-2.8 and nv3.3b still talk to each other. I start vic: vic -A nv -f nv MULTICAST/PORT --mark. From owner-freebsd-multimedia Thu Dec 19 09:13:10 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA00588 for multimedia-outgoing; Thu, 19 Dec 1996 09:13:10 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id JAA00583; Thu, 19 Dec 1996 09:13:07 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id KAA11716; Thu, 19 Dec 1996 10:10:34 -0700 From: Terry Lambert Message-Id: <199612191710.KAA11716@phaeton.artisoft.com> Subject: Re: mmap problems? To: hasty@rah.star-gate.com (Amancio Hasty) Date: Thu, 19 Dec 1996 10:10:33 -0700 (MST) Cc: terry@lambert.org, hackers@freebsd.org, multimedia@freebsd.org In-Reply-To: <199612190619.WAA08457@rah.star-gate.com> from "Amancio Hasty" at Dec 18, 96 10:19:32 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > You'll have to look carefully at the driver to see which is happening > > (if either is the correct reason). [ ... ] Well, I did say "if". Personally, I'd: meteor_mmap(dev_t dev, int offset, int nprot) { int unit; meteor_reg_t *mtr; unit = UNIT(minor(dev)); printf( "meteor_mmap: unit=%d of %d, offset=%d, nprot=%08x\n", unit, NMETEOR, offset, nprot); if (unit >= NMETEOR) /* at this point could this happen? */ { printf( "meteor_mmap: failed: unit exceeded possible units\n"); return(-1); } mtr = &(meteor[unit]); if(nprot & PROT_EXEC) { printf("meteor_mmap: can't map a device PROT_EXEC!\n"); return -1; } printf("meteor_mmap: device pages(%08x)\n", mtr->alloc_pages * page_size); if(offset >= mtr->alloc_pages * PAGE_SIZE) { printf("meteor_mmap: offset (%08x) exceeds device pages\n", offset); return -1; } return i386_btop(vtophys(mtr->bigbuf) + offset); } This leaves a possible failure of (vtophys() + offset) to be valid; you can check that, but it's unlikely (the pages are wired). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-multimedia Thu Dec 19 23:32:41 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id XAA09155 for multimedia-outgoing; Thu, 19 Dec 1996 23:32:41 -0800 (PST) Received: from rah.star-gate.com ([204.188.121.18]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id XAA09150; Thu, 19 Dec 1996 23:32:39 -0800 (PST) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.7.6/8.7.3) with ESMTP id XAA05257; Thu, 19 Dec 1996 23:31:06 -0800 (PST) Message-Id: <199612200731.XAA05257@rah.star-gate.com> X-Mailer: exmh version 1.6.9 8/22/96 To: Terry Lambert cc: hackers@freebsd.org, multimedia@freebsd.org Subject: Re: mmap problems? In-reply-to: Your message of "Thu, 19 Dec 1996 10:10:33 MST." <199612191710.KAA11716@phaeton.artisoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 19 Dec 1996 23:31:06 -0800 From: Amancio Hasty Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, Well, I noticed that "tv" manages to map successfully all the required memory. The mmap debugging output looks the same for every run including including the run in which tv fails to run due to not all the pages being mapped in. Regards, Amancio >From The Desk Of Terry Lambert : > > > You'll have to look carefully at the driver to see which is happening > > > (if either is the correct reason). > > [ ... ] > > Well, I did say "if". > > Personally, I'd: > > meteor_mmap(dev_t dev, int offset, int nprot) > { > > int unit; > meteor_reg_t *mtr; > > unit = UNIT(minor(dev)); > printf( "meteor_mmap: unit=%d of %d, offset=%d, nprot=%08x\n", > unit, NMETEOR, offset, nprot); > if (unit >= NMETEOR) /* at this point could this happen? * / > { > printf( "meteor_mmap: failed: unit exceeded possible units\n"); > return(-1); > } > > mtr = &(meteor[unit]); > > > if(nprot & PROT_EXEC) > { > printf("meteor_mmap: can't map a device PROT_EXEC!\n"); > return -1; > } > > printf("meteor_mmap: device pages(%08x)\n", mtr->alloc_pages * page_size); > if(offset >= mtr->alloc_pages * PAGE_SIZE) > { > printf("meteor_mmap: offset (%08x) exceeds device pages\n", offset); > return -1; > } > > return i386_btop(vtophys(mtr->bigbuf) + offset); > } > > This leaves a possible failure of (vtophys() + offset) to be valid; > you can check that, but it's unlikely (the pages are wired). > > > Terry Lambert > terry@lambert.org > --- > Any opinions in this posting are my own and not those of my present > or previous employers. From owner-freebsd-multimedia Fri Dec 20 00:19:34 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id AAA10854 for multimedia-outgoing; Fri, 20 Dec 1996 00:19:34 -0800 (PST) Received: from rah.star-gate.com ([204.188.121.18]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id AAA10755; Fri, 20 Dec 1996 00:18:11 -0800 (PST) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.7.6/8.7.3) with ESMTP id AAA05455; Fri, 20 Dec 1996 00:16:39 -0800 (PST) Message-Id: <199612200816.AAA05455@rah.star-gate.com> X-Mailer: exmh version 1.6.9 8/22/96 To: Terry Lambert cc: hackers@freebsd.org, multimedia@freebsd.org Subject: Re: mmap problems? In-reply-to: Your message of "Thu, 19 Dec 1996 10:10:33 MST." <199612191710.KAA11716@phaeton.artisoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 20 Dec 1996 00:16:39 -0800 From: Amancio Hasty Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk More info, After the mmap call from tv to the meteor driver , the system upon a page fault calls the meteor's mmap routine or rather the first time that I access the mmapped region. When tv fails to run, the call to mmap is successfull however the system only calls back the meteor's mmap routine once for the first page. Does this make sense to anyone out there ? Tnks, Amancio >From The Desk Of Terry Lambert : > > > You'll have to look carefully at the driver to see which is happening > > > (if either is the correct reason). > > [ ... ] > > Well, I did say "if". > > Personally, I'd: > > meteor_mmap(dev_t dev, int offset, int nprot) > { > > int unit; > meteor_reg_t *mtr; > > unit = UNIT(minor(dev)); > printf( "meteor_mmap: unit=%d of %d, offset=%d, nprot=%08x\n", > unit, NMETEOR, offset, nprot); > if (unit >= NMETEOR) /* at this point could this happen? * / > { > printf( "meteor_mmap: failed: unit exceeded possible units\n"); > return(-1); > } > > mtr = &(meteor[unit]); > > > if(nprot & PROT_EXEC) > { > printf("meteor_mmap: can't map a device PROT_EXEC!\n"); > return -1; > } > > printf("meteor_mmap: device pages(%08x)\n", mtr->alloc_pages * page_size); > if(offset >= mtr->alloc_pages * PAGE_SIZE) > { > printf("meteor_mmap: offset (%08x) exceeds device pages\n", offset); > return -1; > } > > return i386_btop(vtophys(mtr->bigbuf) + offset); > } > > This leaves a possible failure of (vtophys() + offset) to be valid; > you can check that, but it's unlikely (the pages are wired). > > > Terry Lambert > terry@lambert.org > --- > Any opinions in this posting are my own and not those of my present > or previous employers. From owner-freebsd-multimedia Sat Dec 21 12:08:17 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA25835 for multimedia-outgoing; Sat, 21 Dec 1996 12:08:17 -0800 (PST) Received: from rah.star-gate.com ([204.188.121.18]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id MAA25815; Sat, 21 Dec 1996 12:08:13 -0800 (PST) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.7.6/8.7.3) with ESMTP id MAA00800; Sat, 21 Dec 1996 12:07:59 -0800 (PST) Message-Id: <199612212007.MAA00800@rah.star-gate.com> X-Mailer: exmh version 1.6.9 8/22/96 To: multimedia@freebsd.org cc: hackers@freebsd.org Subject: Bt848 Lives! Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 21 Dec 1996 12:07:59 -0800 From: Amancio Hasty Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Well, I am watching tv with my Intel Smart Video Capture III PCI board on my PPRO 200MHz 8) The good news is that I seem to be able to take snapshots and it is not crashing my system. The meteor seems to work okay however if I start taking snapshots or if I run vic it will crash my system. My next step is to implement a video mode compatible with vic to verify that the hardware will not crash my system. So far I have implemented 640x480 RGB32, this means that the driver is not done yet and it will be a while before I can finished it or fully qualify the board for FreeBSD. So in summary, there is hope to have decent video capture for PPRO 200MHz running FreeBSD 8) Forgot to mention, I payed $179 for my card (http://www.libiind.com) 8) Enjoy, Amancio