From owner-freebsd-multimedia Mon Feb 2 05:16:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA26641 for freebsd-multimedia-outgoing; Mon, 2 Feb 1998 05:16:13 -0800 (PST) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from rah.star-gate.com (rah.star-gate.com [209.133.7.178]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA26636 for ; Mon, 2 Feb 1998 05:16:11 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Received: from rah (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.8/8.8.8) with ESMTP id FAA00450 for ; Mon, 2 Feb 1998 05:16:10 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Message-Id: <199802021316.FAA00450@rah.star-gate.com> X-Mailer: exmh version 2.0gamma 1/27/96 To: multimedia@FreeBSD.ORG Subject: ftp://rah.star-gate.com/pub/bt848.tar.gz Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 02 Feb 1998 05:16:10 -0800 From: Amancio Hasty Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe freebsd-multimedia" Just committed an update to the bt848 driver. The driver can also be found thru http://www.freebsd.org/~ahasty/Bt848.html Bugs/Enhancements: 1. Takeshi Ohashi submitted code to support bktr_read . /usr/src/share/examples/rgb24.c now works 8) 2. Flemming Jacobsen submitted code to support radio available in some bt848 based cards;additionally, wrote code to correctly recognized his bt848 card. Sample code to use the radio: /* ** radio.c - Manipulate the radio mode of bt848 based video cards. ** ** This program doesn't fully initialize the card. Start and stop fxtv ** to do this. Then use this program to set the radio frequency. ** ** Flemming Jacobsen 971130, fj@login.dknet.dk */ #include #include #include #include #include #include #define TUNER #include main(int argc, char **argv) { int arg=0; int quit=0; int tuner; double f; if((tuner=open("/dev/tuner0",O_RDONLY)) < 0) { perror("/dev/tuner0"); exit(1); } if(argc>1 && !strcmp(argv[1],"-quit")) { quit=1; argc--; argv++; } if(argc != 2) { fprintf(stderr,"Usage: radio [-quit] \n"); fprintf(stderr,"I.e. radio 103.2\n"); exit(1); } f=atof(argv[1]); arg=0; if(ioctl(tuner,TVTUNER_SETAFC,&arg)) { perror("TVTUNER_SETAFC"); exit(1); } arg=(int)(f*100); if(ioctl(tuner,RADIO_SETFREQ,&arg)) { perror("RADIO_SETFREQ"); exit(1); } if(quit) exit(0); fclose(stdin); fclose(stdout); fclose(stderr); select(0,NULL,NULL,NULL,NULL); } 3. Roger Hardiman submitted various fixes to smooth out the microcode . 4. Added supported for yuv12 so we know can capture raw streams and feed it to mpeg_encoder . The upshot is that we can now mpeg encode more and save nearly 100 percent of the disk requirements previously for programs such as fxtv first save the raw video image to disk then converted to a format suitable for mpeg_encode. Enjoy, Amancio