Re: Force NVrec to use V4L2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi Steve,

with changes you mentioned nothing changed for me :-(

Starting NVrec.c, version 20011228 (NVrec-20011228).
v4lgen core init - Device /dev/v4l/video0
v4l2 core init - Size: 384x288 from /dev/v4l/video0
v4l2 core init - trying format YUV420
v4l2 core init - could not request parameters: Invalid argument

[v4l2_core.c]
...
vct->fd = open(fdev, O_RDWR);
...
vct->bufs[i * vct->planes] = (unsigned char *)mmap(NULL,
vct->cbuf.length, PROT_READ|PROT_WRITE, MAP_SHARED, vct->fd,
vct->cbuf.offset);
...

Something missed?

Regards,
Dirk

Am Don, 2001-12-27 um 21.15 schrieb Stephen Davies:
> 
>  
> On Sun, 9 Dec 2001, Justin Schoeman wrote:
> 
> > Canek Peláez Valdés wrote:
> > 
> > > using "v4l2=1" when loading bttv. NVrec says:
> > > 
> > > [canek@mediana canek]$ QTrec -v /dev/video0 -o movie.mov 
> > > Starting NVrec.c, version 20011208 (NVrec-20011208).
> > > Error opening "/etc/NVrec.conf"
> > > Error opening "/home/canek/.NVrec.conf"
> > > v4lgen core init - Device /dev/video0
> > > v4l2 core init - Size: 384x288 from /dev/video0
> > > v4l2 core init - trying format YUV420
> > > v4l2 core init - could not request parameters: Invalid argument
> > > v4l1 core init - Size: 384x288 from /dev/video0
> > > v4l1 core init - could not get enough buffers - using copy mode
> > > v4l1 core init - got 8 buffers
> > > v4l1 core init - emulating 60 buffers
> > > v4l1 core init - trying video format YUV420
> > > v4lgen core init - got capable v4l1 device: BT878([many vendors] CPH05X/0).
> > > 
> > > Any way to force it to use V4L2?
> > 
> > No - it seems the v4l2 driver does not support the complete v4l2 
> > interface.  Without this information, NVrec cannot initialise the v4l2 
> > driver, and must fall back to v4l1.
> > 
> > I believe a patch to implement the missing functions has been submitted 
> > to Gerd, and will hopefully be included soon.
> 
> Hi Justin,
> 
> This problem can be easily fixed in NVrec - Gerd's 0.8 bttv requires that
> you open the /dev/video O_RDWR and do the mmap with
> PROT_READ|PROT_WRITE.  Those two changes and NVrec with work with 0.8.
> 
> Do you want a patch?
> 
> Steve
> 
> 
> 
> 
> _______________________________________________
> Video4linux-list mailing list
> Video4linux-list@xxxxxxxxxx
> https://listman.redhat.com/mailman/listinfo/video4linux-list
-- 
Dirk Meul <dirk.meul@xxxxxxxx>





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux