Re: [CinCV] v4l1 patch, try2

2011-06-01 Thread Rafael Diniz
Too bad. I also have a device (HP Jornada 710) that only have OSS sound driver.. We have to keep V4L1 for sure, at least for some time. The good is thing is that any option we have does respect the presence of a V4L1 driver. ; ) Cheers, Rafael Diniz > On Tue, May 31, 2011 at 12:56 AM, Rafael D

Re: [CinCV] v4l1 patch, try2

2011-05-31 Thread Einar Rünkaru
On Tue, May 31, 2011 at 12:56 AM, Rafael Diniz wrote: > Hi Einar, > >>> And now it's gone. >>> There is no such device you're saying that have only v4l1 driver. >> >> I have one. And under ubuntu kernel 2.6.28 it is supported only by a >> v4l1 driver and not v4l2. In a newer kernel there may be V4

RE: [CinCV] v4l1 patch, try2

2011-05-31 Thread Rafael Diniz
ill run > the the LD_PRELOAD every time cinelerra is launched. > > I know this isn't perfect, as many people would not want to have it. But > the script can be modified to remove that extra line > > Best, > Nicola > > > > > >> Subject: RE: [CinCV]

RE: [CinCV] v4l1 patch, try2

2011-05-30 Thread Nicola Ferralis
performance). Best, Nicola From: feran...@hotmail.com To: cinelerra@skolelinux.no Subject: RE: [CinCV] v4l1 patch, try2 Date: Mon, 30 May 2011 17:01:40 -0700 Hi Rafael, the version packaged in the PPA is designed so that the binary of cinelerra isn't launched directly, but through a s

RE: [CinCV] v4l1 patch, try2

2011-05-30 Thread Nicola Ferralis
this isn't perfect, as many people would not want to have it. But the script can be modified to remove that extra line Best, Nicola > Subject: RE: [CinCV] v4l1 patch, try2 > From: raf...@riseup.net > To: cinelerra@skolelinux.no > Date: Mon, 30 May 2011 11:12:48 -0700 >

Re: [CinCV] v4l1 patch, try2

2011-05-30 Thread Rafael Diniz
Hi Einar, >> And now it's gone. >> There is no such device you're saying that have only v4l1 driver. > > I have one. And under ubuntu kernel 2.6.28 it is supported only by a > v4l1 driver and not v4l2. In a newer kernel there may be V4l2 for > this, but I am not sure that there does not exist a v4

Re: [CinCV] v4l1 patch, try2

2011-05-30 Thread Einar Rünkaru
On Mon, May 30, 2011 at 7:49 PM, Rafael Diniz wrote: > Hi Einar, > I must disagree with you. > > If you take a look at the old videodev.h, there is this statement: > >  *      Video for Linux version 1 - OBSOLETE >  * >  *      Header file for v4l1 drivers and applications, for >  *      Linux ker

Re: [CinCV] v4l1 patch, try2

2011-05-30 Thread Johannes Sixt
Am 30.05.2011 19:06, schrieb Rafael Diniz: > - keeps v4l support for people using kernel >= 2.6.38, needs > LD_PRELOAD'ing of libv4l1compat.so With your patch: What happens if someone has kernel >= 2.6.38 and does NOT LD_PRELOAD libv4l1compat.so? Does cinelerra still run, and only some drivers do

Re: [CinCV] v4l1 patch, try2

2011-05-30 Thread Rafael Diniz
Hi Hannes, In this case, cinelerra will work as always. If one try to use any V4L1 feature without LD_PRELOAD'ing the libv4l1compat.so, when the V4L1 cinelerra code calls an V4L1 ioctl(), it will fail. Best regards, Rafael Diniz > Am 30.05.2011 19:06, schrieb Rafael Diniz: >> - keeps v4l support

RE: [CinCV] v4l1 patch, try2

2011-05-30 Thread Rafael Diniz
> I handle that directly within the package (by requiring installation of > the proper library). > > It'd be great if people with v4l-needing hardware could test it, once it's > available. > > Thanks again, > Nicola > > > > > >> Subject: Re

RE: [CinCV] v4l1 patch, try2

2011-05-30 Thread Nicola Ferralis
eding hardware could test it, once it's available. Thanks again, Nicola > Subject: Re: [CinCV] v4l1 patch, try2 > From: raf...@riseup.net > To: cinelerra@skolelinux.no > Date: Mon, 30 May 2011 10:06:44 -0700 > > People, > Thinking a little, after Einar email, I rea

Re: [CinCV] v4l1 patch, try2

2011-05-30 Thread Rafael Diniz
People, Thinking a little, after Einar email, I reached a patch that: - keeps v4l support as always for people using kernel <= 2.6.37 - keeps v4l support for people using kernel >= 2.6.38, needs LD_PRELOAD'ing of libv4l1compat.so - cinelerra compiles fine with and without libv4l - adds videodev.h

Re: [CinCV] v4l1 patch, try2

2011-05-30 Thread Rafael Diniz
Hi Einar, I must disagree with you. If you take a look at the old videodev.h, there is this statement: * Video for Linux version 1 - OBSOLETE * * Header file for v4l1 drivers and applications, for * Linux kernels 2.2.x or 2.4.x. * * Provides header for legacy drivers and

Re: [CinCV] v4l1 patch, try2

2011-05-30 Thread Einar Rünkaru
Hi. You must not unconditionally remove v4l1 support. I think that configure must detect v4l1 and if it does not exist use libv4l1. There may be some older devices, that have only v4l1 drivers. We have to leave user an option to use older kernel with v4l1 support. Option to fully remove v4l1 would

Re: [CinCV] v4l1 patch, try2

2011-05-30 Thread Rafael Diniz
Also, we should add to the manual that if one is using kernel >= 2.6.38 and the operating system does not LD_PRELOAD the libv4l1compat.so, and the use of the V4L driver is needed, you should do this before open cinelerra: LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so Best regards, Rafael Diniz > Atta

[CinCV] v4l1 patch, try2

2011-05-30 Thread Rafael Diniz
Attached is a patch that at least verify the presence of the libv4l header. We could #ifdef the v4l code in order to allow the compilation without libv4l. bye, rafael diniz cin-v4l1.diff Description: Binary data