Date: Mon, 9 Aug 1999 01:16:56 +0100 From: Richard Tobin <richard@cogsci.ed.ac.uk> To: multimedia@freebsd.org Subject: Fxtv MPEG recording Message-ID: <27264.199908090016@doyle.cogsci.ed.ac.uk>
next in thread | raw e-mail | index | archive | help
I tried some MPEG recording from fxtv, and encountered a few minor problems. I was using fxtv-0.48 under FreeBSD 3.2-RELEASE. (1) In tvaudio.c, after SNDCTL_DSP_SETFMT, the value is checked to see that it worked (parm != parm_new). But the sound driver (snd/sound.c) has this code: /* * when some card (SB16) is opened RDONLY or WRONLY, * only one of the fields is set, the other becomes 0. * This makes it possible to select DMA channels at runtime. */ if (d->play_fmt) d->play_fmt = *(int *)arg ; if (d->rec_fmt) d->rec_fmt = *(int *)arg ; splx(s); if (ask_init(d)) *(int *)arg = d->play_fmt ; So when setting the record format, the returned value is the play format, which is zero (as suggested in the comment), so fxtv thinks the ioctl sample format is not supported. The driver code looks bogus to me, but I just hacked fxtv to not check. (2) The fxtv README says that mplex is not used by fxtv, but it is. (3) The fxtv README mentions an envoronment variable MPEG_AUDIO for dist10, but it's really MPEGTABLES. Apart from these problems, I was very impressed with how well it worked. -- Richard 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?27264.199908090016>