1 Feb 2006 12:31
CVS: ffmpeg configure, 1.240, 1.241 ffmpeg.c, 1.367, 1.368
Diego Biurrun CVS <diego <at> mplayerhq.hu>
2006-02-01 11:31:36 GMT
2006-02-01 11:31:36 GMT
Update of /cvsroot/ffmpeg/ffmpeg
In directory mail:/var2/tmp/cvs-serv12748
Modified Files:
configure ffmpeg.c
Log Message:
video4linux2 input support
patch by Luca Abeni, lucabe72 $$at$$ email $$dot$$ it
Index: configure
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/configure,v
retrieving revision 1.240
retrieving revision 1.241
diff -u -d -r1.240 -r1.241
--- configure 30 Jan 2006 00:22:41 -0000 1.240
+++ configure 1 Feb 2006 11:31:33 -0000 1.241
<at> <at> -66,6 +66,7 <at> <at>
echo " --disable-audio-oss disable OSS audio support [default=no]"
echo " --disable-audio-beos disable BeOS audio support [default=no]"
echo " --disable-v4l disable video4linux grabbing [default=no]"
+echo " --disable-v4l2 disable video4linux2 grabbing [default=no]"
echo " --disable-bktr disable bktr video grabbing [default=no]"
echo " --disable-dv1394 disable DV1394 grabbing [default=no]"
echo " --disable-network disable network support [default=no]"
<at> <at> -183,6 +184,7 <at> <at>
esac
gprof="no"
v4l="yes"
+v4l2="yes"
bktr="no"
audio_oss="yes"
audio_beos="no"
<at> <at> -276,6 +278,7 <at> <at>
# disable Linux things
audio_oss="no"
v4l="no"
+v4l2="no"
dv1394="no"
# enable BeOS things
audio_beos="yes"
<at> <at> -290,6 +293,7 <at> <at>
fi ;;
SunOS)
v4l="no"
+v4l2="no"
audio_oss="no"
dv1394="no"
make="gmake"
<at> <at> -300,6 +304,7 <at> <at>
;;
NetBSD)
v4l="no"
+v4l2="no"
bktr="yes"
audio_oss="yes"
dv1394="no"
<at> <at> -312,6 +317,7 <at> <at>
;;
OpenBSD)
v4l="no"
+v4l2="no"
bktr="yes"
audio_oss="yes"
dv1394="no"
<at> <at> -323,6 +329,7 <at> <at>
;;
FreeBSD)
v4l="no"
+v4l2="no"
bktr="yes"
audio_oss="yes"
dv1394="no"
<at> <at> -332,6 +339,7 <at> <at>
;;
BSD/OS)
v4l="no"
+v4l2="no"
bktr="yes"
audio_oss="yes"
dv1394="no"
<at> <at> -343,6 +351,7 <at> <at>
Darwin)
cc="cc"
v4l="no"
+v4l2="no"
audio_oss="no"
dv1394="no"
ffserver="no"
<at> <at> -364,6 +373,7 <at> <at>
;;
CYGWIN*)
v4l="no"
+v4l2="no"
audio_oss="yes"
dv1394="no"
vhook="no"
<at> <at> -377,6 +387,7 <at> <at>
IRIX*)
ranlib="echo ignoring ranlib"
v4l="no"
+v4l2="no"
audio_oss="no"
make="gmake"
;;
<at> <at> -397,6 +408,7 <at> <at>
extralibs=""
pkg_requires=""
v4l="no"
+v4l2="no"
audio_oss="no"
dv1394="no"
network="no"
<at> <at> -486,6 +498,8 <at> <at>
;;
--disable-v4l) v4l="no"
;;
+ --disable-v4l2) v4l2="no"
+ ;;
--disable-bktr) bktr="no"
;;
--disable-audio-oss) audio_oss="no"
<at> <at> -900,6 +914,7 <at> <at>
exit 1
fi
v4l="no"
+ v4l2="no"
bktr="no"
audio_oss="no"
dv1394="no"
<at> <at> -1613,6 +1628,11 <at> <at>
echo "CONFIG_VIDEO4LINUX=yes" >> config.mak
fi
+if test "$v4l2" = "yes" ; then
+ echo "#define CONFIG_VIDEO4LINUX2 1" >> $TMPH
+ echo "CONFIG_VIDEO4LINUX2=yes" >> config.mak
+fi
+
if test "$bktr" = "yes" ; then
echo "#define CONFIG_BKTR 1" >> $TMPH
echo "CONFIG_BKTR=yes" >> config.mak
Index: ffmpeg.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/ffmpeg.c,v
retrieving revision 1.367
retrieving revision 1.368
diff -u -d -r1.367 -r1.368
--- ffmpeg.c 30 Jan 2006 23:33:16 -0000 1.367
+++ ffmpeg.c 1 Feb 2006 11:31:33 -0000 1.368
<at> <at> -213,8 +213,12 <at> <at>
#ifdef CONFIG_BKTR
static char *video_grab_format = "bktr";
#else
+#ifdef CONFIG_VIDEO4LINUX2
+static char *video_grab_format = "video4linux2";
+#else
static char *video_grab_format = "video4linux";
#endif
+#endif
static char *video_device = NULL;
static char *grab_device = NULL;
static int video_channel = 0;
RSS Feed