[MPlayer-dev-eng] [PATCH] configure: detect libquvi.
Nicolas George
nicolas.george at normalesup.org
Mon Apr 29 19:25:04 CEST 2013
---
configure | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
libquvi allows to play, for example, Youtube videos using directly the URL
of the web player.
Note that the HTTP request for the actual video is done by the demuxer, so
dumpstream and cache will not work (aviocat should work, though).
Also, libquvi will not recognize its URL unless it is prefixed with ffmpeg://.
Last, and not related to this patch, with --enable-debug, HTTP seems to
segfault.
diff --git a/configure b/configure
index bdf69a3..f59bb6e 100755
--- a/configure
+++ b/configure
@@ -442,6 +442,7 @@ Codecs:
--disable-libopencore_amrnb disable libopencore_amr narrowband [autodetect]
--disable-libopencore_amrwb disable libopencore_amr wideband [autodetect]
--disable-libopenjpeg disable OpenJPEG (JPEG 2000) input/output support [autodetect]
+ --disable-libquvi disable quvi (media URL extraction from web pages) support [autodetect]
--disable-crystalhd disable CrystalHD support [autodetect]
--disable-decoder=DECODER disable specified FFmpeg decoder
--enable-decoder=DECODER enable specified FFmpeg decoder
@@ -660,6 +661,7 @@ _libavcodec_mpegaudio_hp=yes
_libopencore_amrnb=auto
_libopencore_amrwb=auto
libopenjpeg=auto
+libquvi=auto
_mencoder=yes
_mplayer=yes
_x11=auto
@@ -1044,6 +1046,8 @@ for ac_option do
--disable-jpeg) _jpeg=no ;;
--enable-libopenjpeg) libopenjpeg=yes ;;
--disable-libopenjpeg)libopenjpeg=no ;;
+ --enable-libquvi) libquvi=yes ;;
+ --disable-libquvi) libquvi=no ;;
--enable-pnm) _pnm=yes ;;
--disable-pnm) _pnm=no ;;
--enable-md5sum) _md5sum=yes ;;
@@ -5054,6 +5058,22 @@ else
nocodecmodules="OpenJPEG $nocodecmodules"
fi
+echocheck "quvi support"
+if test "$libquvi" = auto ; then
+ libquvi=no
+ statement_check quvi/quvi.h 'quvi_t q = NULL; quvi_media_t m; quvi_parse(q, "", &m);' -lquvi && libquvi=yes
+fi
+echores "$libquvi"
+if test "$libquvi" = yes ; then
+ def_libquvi='#define CONFIG_LIBQUVI 1'
+ extra_ldflags="$extra_ldflags -lquvi"
+ libavdemuxers="$libavdemuxers LIBQUVI_DEMUXER"
+ inputmodules="quvi $inputmodules"
+else
+ def_libquvi='#define CONFIG_LIBQUVI 0'
+ noinputmodules="quvi $noinputmodules"
+fi
+
echocheck "PNM support"
if test "$_pnm" = yes; then
@@ -9000,6 +9020,7 @@ $def_libgsm
$def_libopencore_amrnb
$def_libopencore_amrwb
$def_libopenjpeg
+$def_libquvi
$def_librtmp
$def_libschroedinger_lavc
$def_mp3lame_lavc
--
1.7.10.4
More information about the MPlayer-dev-eng
mailing list