Dirk Meul wrote:
Hi Mike!
Can you send me the patch please? I missed it here.
Am Son, 2002-02-17 um 12.23 schrieb Justin Schoeman:
Dirk Meul wrote:
Hello Mike!
I think you are using avifile 0.6? So you have to use the
NVrec-avifile-0.6-patch-20011112 patch. And you have to include
iostream.h.
That's probably the problem.
BTW anyone able to use v4l2 support of NVrec with bttv 0.8.x?
Yes, with a small patch. Gerd did accept it, so it should be in the
next bttv-0.8.x release (I hope)...
-justin
Sorry, I sent it straight to Gerd - it should be attached... (It is
against 0.8.33, but should apply against most recent releases.)
-justin
--- bttv-0.8.33/bttv-driver.c Wed Jan 23 12:02:27 2002
+++ bttv-0.8.33-gparm/bttv-driver.c Tue Feb 12 08:13:57 2002
@@ -2456,8 +2456,15 @@
return set_control(btv,arg);
case VIDIOC_G_PARM:
{
- struct v4l2_captureparm *parm = arg;
- memset(parm,0,sizeof(*parm));
+ struct v4l2_streamparm *parm = arg;
+ if(parm->type == V4L2_BUF_TYPE_CAPTURE) {
+ struct v4l2_standard s;
+ memset(&(parm->parm),0,sizeof(parm->parm));
+ v4l2_video_std_construct(&s, bttv_tvnorms[btv->tvnorm].v4l2_id, 0);
+ parm->parm.capture.timeperframe = v4l2_video_std_tpf(&s);
+ } else {
+ return -EINVAL;
+ }
return 0;
}