For those in ubuntu 11.04, or any newer distribution with kernel >= 2.6.38,
please do:
# apt-get install libv4l-dev

And apply the attached patch.

I'm not linking cinelerra with libv4l1, so you should LD_PRELOAD it in
order to use V4L in kernel >= 2.6.38.

If you're using an older kernel, V4L support should keep working as before.

Best regards,
Rafael Diniz


> V4L1 is the deprecated and now removed from kernel programming interface
> to access video/image devices.
> BUT the V4L1 interface can be supported via the libv4l version 0.8.3
> onwards, as it that can do this conversion between the old API for the new
> (V4L2) API.
> I think that we should link cinelerra against libv4l1 if libv4l is
> present, otherwise, do not compile V4L support.
>
> Have you tried swaping "linux/videodev.h" by "libv4l1-videodev.h"?
>
> ; )
>
>
> Best regards,
> Rafael Diniz
>
>
>> By V4L do you mean the possibility to record from /dev/video_n ?
>> In my case that would be a disaster I am using it to scan film frames
>> from
>> a 1394 camera.
>>
>> Cheers
>> Edouard
>>
>>
>>
>>
>> --- On Sat, 28/5/11, Simeon Völkel <[email protected]> wrote:
>>
>> From: Simeon Völkel <[email protected]>
>> Subject: [CinCV] Cinelerra on >=2.6.38 (patch removing buzz and v4l1
>> support)
>> To: [email protected]
>> Date: Saturday, 28, May, 2011, 5:30 AM
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hello,
>>
>> today i updated my kernel to 2.6.39 and was able to compile cinelerra
>> after
>> applying Nicola's patch from bugs.cinelerra.org to j6t's repo.
>>
>> In my opinion we should support recent kernels rather soon.
>>
>> So i wonder whether we have to keep v4l1 and buzz supported or whether
>> removing support therefore (what Nicola's patch does) is fine, too.
>>
>> Personally speaking i would vote for the second choice as we have
>> extremely
>> limited resources for maintenance.
>> However, if (and only if) this hardware should be still in use by
>> Cinelerra
>> users (please speak up if that's the case for you!) we should consider
>> adding an option to configure.
>>
>> Regardless wheter we want to make support optional or remove it
>> completely,
>> i suggest to release a new version of cinelerra (2.1.6?) supporting
>> linux
>> kernels >=2.6.39 as soon as possible.
>>
>> What is you opinion on that?
>>
>> Regards,
>> Simeon
>>
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v2.0.17 (GNU/Linux)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAk3f378ACgkQph/voQkhF7wY2QCfbmllYDUFhhQALALNdzJJT642
>> 2YEAoMa4VCHslFLFwMqp7aN6/WeeoqqX
>> =4oJ+
>> -----END PGP SIGNATURE-----
>>
>> _______________________________________________
>> Cinelerra mailing list
>> [email protected]
>> https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra
>>
>
>
>
> _______________________________________________
> Cinelerra mailing list
> [email protected]
> https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra
>
diff --git a/cinelerra/vdevicebuz.C b/cinelerra/vdevicebuz.C
index 1db0c0e..aabdfd8 100644
--- a/cinelerra/vdevicebuz.C
+++ b/cinelerra/vdevicebuz.C
@@ -45,13 +45,13 @@
 #include <stdint.h>
 #include <linux/kernel.h>
 //#include <linux/videodev2.h>
-#include <linux/videodev.h>
+#include <libv4l1-videodev.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 #include <unistd.h>
 
-
+#define BASE_VIDIOCPRIVATE	192	
 
 #define READ_TIMEOUT 5000000
 
diff --git a/cinelerra/vdevicev4l.h b/cinelerra/vdevicev4l.h
index 4d6e8fb..f9fd7f7 100644
--- a/cinelerra/vdevicev4l.h
+++ b/cinelerra/vdevicev4l.h
@@ -23,7 +23,7 @@
 #define VDEVICEV4L_H
 
 #include "vdevicebase.h"
-#include <linux/videodev.h>
+#include <libv4l1-videodev.h>
 #include "videodevice.inc"
 
 class VDeviceV4L : public VDeviceBase

Reply via email to