ffmpeg w/bktr no sound
Matthew Reimer
mreimer at vpop.net
Wed May 14 11:59:45 PDT 2003
Audio recording wasn't working for me, so I started poking around and
finally came up with a hack that made audio recording work. Apparently
the audio wasn't getting initialized properly; the fix seems to be to
issue TVTUNER_SETTYPE and a TVTUNER_SETCHNL ioctls like the pseudo-patch
below. Of course the channel set shouldn't be hard-coded.
Hopefully this will work for you Pete.
Matt
--- grab_bsdbktr.c Thu Feb 27 11:43:18 2003
+++ grab_bsdbktr.c Thu Feb 27 14:08:51 2003
@@ -139,6 +140,17 @@
perror ("METEORSINPUT");
return -EIO;
}
+
+/* HACK */
+{
+ int d;
+
+ ioctl(s->tuner_fd, TVTUNER_GETCHNL, &d);
+
+ c = CHNLSET_NABCST;
+ ioctl(s->tuner_fd, TVTUNER_SETTYPE, &c);
+
+ ioctl(s->tuner_fd, TVTUNER_SETCHNL, &d);
+}
+
video_buf = mmap((caddr_t)0, width*height*3, PROT_READ, MAP_SHARED,
video_fd, (off_t) 0);
if (video_buf == MAP_FAILED) {
More information about the freebsd-ports
mailing list