Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Ben de Groot (yngwin)" <yngwin@g.o>
Subject: gentoo-x86 commit in x11-misc/xvidcap/files: xvidcap-1.1.7_rc1-new-ffmpeg-headers.patch xvidcap-1.1.7_rc1-ffmpeg.patch
Date: Sun, 13 Apr 2008 23:27:56 +0000
yngwin      08/04/13 23:27:56

  Added:                xvidcap-1.1.7_rc1-new-ffmpeg-headers.patch
                        xvidcap-1.1.7_rc1-ffmpeg.patch
  Log:
  Adding xvidcap-1.1.4_rc1, patched to work with new ffmpeg
  (Portage version: 2.1.5_rc3)

Revision  Changes    Path
1.1                  x11-misc/xvidcap/files/xvidcap-1.1.7_rc1-new-ffmpeg-headers.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/xvidcap/files/xvidcap-1.1.7_rc1-new-ffmpeg-headers.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/xvidcap/files/xvidcap-1.1.7_rc1-new-ffmpeg-headers.patch?rev=1.1&content-type=text/plain

Index: xvidcap-1.1.7_rc1-new-ffmpeg-headers.patch
===================================================================
diff -burN xvidcap-orig/src/codecs.c xvidcap-1.1.6/src/codecs.c
--- xvidcap-orig/src/codecs.c	2007-12-16 23:01:38.000000000 +0100
+++ xvidcap-1.1.6/src/codecs.c	2008-04-13 22:21:45.000000000 +0200
@@ -43,8 +43,8 @@
 #include <locale.h>
 
 #ifdef USE_FFMPEG
-#include <ffmpeg/avcodec.h>
-#include <ffmpeg/avformat.h>
+#include <libavcodec/avcodec.h>
+#include <libavformat/avformat.h>
 #endif     // USE_FFMPEG
 
 #include "app_data.h"
diff -burN xvidcap-orig/src/main.c xvidcap-1.1.6/src/main.c
--- xvidcap-orig/src/main.c	2007-12-01 00:52:51.000000000 +0100
+++ xvidcap-1.1.6/src/main.c	2008-04-13 22:21:14.000000000 +0200
@@ -45,7 +45,7 @@
 #include <locale.h>
 
 #ifdef USE_FFMPEG
-#include <ffmpeg/avcodec.h>
+#include <libavcodec/avcodec.h>
 #endif     // USE_FFMPEG
 
 #include "control.h"
diff -burN xvidcap-orig/src/xtoffmpeg.c xvidcap-1.1.6/src/xtoffmpeg.c
--- xvidcap-orig/src/xtoffmpeg.c	2008-04-13 22:00:04.000000000 +0200
+++ xvidcap-1.1.6/src/xtoffmpeg.c	2008-04-13 22:20:31.000000000 +0200
@@ -56,13 +56,13 @@
 #include "xvidcap-intl.h"
 
 // ffmpeg stuff
-#include <ffmpeg/avcodec.h>
-#include <ffmpeg/avformat.h>
-#include <ffmpeg/avdevice.h>
+#include <libavcodec/avcodec.h>
+#include <libavformat/avformat.h>
+#include <libavdevice/avdevice.h>
 //#include <ffmpeg/dsputil.h>
-#include <ffmpeg/swscale.h>
-#include <ffmpeg/rgb2rgb.h>
-#include <ffmpeg/fifo.h>
+#include <libswscale/swscale.h>
+#include <libswscale/rgb2rgb.h>
+#include <libavutil/fifo.h>
 #define swscale_isRGB(x) ((x)==PIX_FMT_BGR32 || (x)==PIX_FMT_RGB24 \
                         || (x)==PIX_FMT_RGB565 || (x)==PIX_FMT_RGB555 \
                         || (x)==PIX_FMT_RGB8 || (x)==PIX_FMT_RGB4 \



1.1                  x11-misc/xvidcap/files/xvidcap-1.1.7_rc1-ffmpeg.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/xvidcap/files/xvidcap-1.1.7_rc1-ffmpeg.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/xvidcap/files/xvidcap-1.1.7_rc1-ffmpeg.patch?rev=1.1&content-type=text/plain

Index: xvidcap-1.1.7_rc1-ffmpeg.patch
===================================================================
Index: src/xtoffmpeg.c
===================================================================
--- src/xtoffmpeg.c	(Revision 302)
+++ src/xtoffmpeg.c	(Arbeitskopie)
@@ -58,6 +58,7 @@
 // ffmpeg stuff
 #include <ffmpeg/avcodec.h>
 #include <ffmpeg/avformat.h>
+#include <ffmpeg/avdevice.h>
 //#include <ffmpeg/dsputil.h>
 #include <ffmpeg/swscale.h>
 #include <ffmpeg/rgb2rgb.h>
@@ -291,13 +292,13 @@

     // prepare input stream
     memset (ap, 0, sizeof (*ap));
-    ap->device = job->snd_device;
+//    ap->device = job->snd_device;

     if (grab_audio) {
         ap->sample_rate = target->sndrate;
         ap->channels = target->sndchannels;

-        grab_iformat = av_find_input_format ("audio_device");
+        grab_iformat = av_find_input_format ("oss");
 #ifdef DEBUG
         printf ("%s %s: grab iformat %p\n", DEBUGFILE, DEBUGFUNCTION,
                 grab_iformat);
@@ -308,7 +309,7 @@
     }

     err =
-        av_open_input_file (&ic, ap->device, (grab_audio ? grab_iformat : NULL),
+        av_open_input_file (&ic, job->snd_device, (grab_audio ? grab_iformat : NULL),
                             0, ap);
     if (err < 0) {
         fprintf (stderr, _("%s %s: error opening input file %s: %i\n"),
@@ -1432,7 +1433,8 @@
         input_pixfmt = guess_input_pix_fmt (image, job->c_info);

         // register all libav* related stuff
-        av_register_all ();
+	avdevice_register_all();
+        av_register_all();

         // guess AVOutputFormat
         if (job->target >= CAP_MF)
@@ -1763,7 +1765,7 @@
     }

     if (job->target < CAP_MF)
-        url_fclose (&output_file->pb);
+        url_fclose (output_file->pb);

 #ifdef HAVE_FFMPEG_AUDIO
     /*
@@ -1828,7 +1830,7 @@
          * close file if multi-frame capture ... otherwise closed already
          */
         if (job->target >= CAP_MF)
-            url_fclose (&output_file->pb);
+            url_fclose (output_file->pb);
         /*
          * free streams
          */
Index: configure.in
===================================================================
--- configure.in	(Revision 302)
+++ configure.in	(Arbeitskopie)
@@ -103,6 +103,7 @@
 rm ffmpeg/adler32.h >/dev/null 2>&1 || echo "" > /dev/null
 rm ffmpeg/avcodec.h >/dev/null 2>&1 || echo "" > /dev/null
 rm ffmpeg/avutil.h >/dev/null 2>&1 || echo "" > /dev/null
+rm ffmpeg/avdevice.h >/dev/null 2>&1 || echo "" > /dev/null
 rm ffmpeg/common.h >/dev/null 2>&1 || echo "" > /dev/null
 rm ffmpeg/dsputil.h >/dev/null 2>&1 || echo "" > /dev/null
 rm ffmpeg/integer.h >/dev/null 2>&1 || echo "" > /dev/null
@@ -118,6 +119,8 @@
 rm ffmpeg/rtspcodes.h >/dev/null 2>&1 || echo "" > /dev/null
 rm ffmpeg/rtp_h264.h >/dev/null 2>&1 || echo "" > /dev/null
 rm ffmpeg/rtp_internal.h >/dev/null 2>&1 || echo "" > /dev/null
+rm ffmpeg/rtp_aac.h >/dev/null 2>&1 || echo "" > /dev/null
+rm ffmpeg/rtp_mpv.h >/dev/null 2>&1 || echo "" > /dev/null
 rm ffmpeg/fifo.h >/dev/null 2>&1 || echo "" > /dev/null
 rm ffmpeg/swscale.h >/dev/null 2>&1 || echo "" > /dev/null
 rm ffmpeg/rgb2rgb.h >/dev/null 2>&1 || echo "" > /dev/null
@@ -356,7 +359,7 @@
 	# build embedded ffmpeg
 	echo "${MAKE-make}-ing prerequisite ffmpeg libraries" && \
 	( cd ./ffmpeg/ && \
-	./configure --cc=${CC} --enable-gpl ${ac_my_ffmpeg_cfg_lib_switch} --enable-pthreads --enable-swscaler --disable-ffserver --disable-ffplay && \
+	./configure --cc=${CC} --enable-gpl ${ac_my_ffmpeg_cfg_lib_switch} --enable-pthreads --enable-swscale --disable-ffserver --disable-ffplay && \
 	ln -s libavcodec/avcodec.h ./ && \
 	ln -s libavcodec/dsputil.h ./ && \
 	ln -s libavformat/avformat.h ./ && \
@@ -371,11 +374,12 @@
 	ln -s libavutil/fifo.h ./ && \
 	ln -s libswscale/swscale.h ./ && \
 	ln -s libswscale/rgb2rgb.h ./ && \
+	ln -s libavdevice/avdevice.h ./ && \
 	${MAKE-make} )
 	# try to link it statically, or reset cache, set static_avcodec=no
 	top_srcdir=`pwd`
-	ac_my_ldflags_save=${LDFLAGS} ; LDFLAGS="${LDFLAGS} -L$top_srcdir/ffmpeg/libavcodec -L$top_srcdir/ffmpeg/libavformat -L$top_srcdir/ffmpeg/libavutil -L$top_srcdir/ffmpeg/libswscale"
-	ac_my_cflags_save=${CFLAGS} ; CFLAGS="${CFLAGS} -I $top_srcdir -I[$top_srcdir]/ffmpeg/libavcodec -I[$top_srcdir]/ffmpeg/libavformat -I[$top_srcdir]/ffmpeg/libavutil -I[$top_srcdir]/ffmpeg/libswscale"
+	ac_my_ldflags_save=${LDFLAGS} ; LDFLAGS="${LDFLAGS} -L$top_srcdir/ffmpeg/libavcodec -L$top_srcdir/ffmpeg/libavformat -L$top_srcdir/ffmpeg/libavutil -L$top_srcdir/ffmpeg/libswscale -L$top_srcdir/ffmpeg/libavdevice"
+	ac_my_cflags_save=${CFLAGS} ; CFLAGS="${CFLAGS} -I $top_srcdir -I[$top_srcdir]/ffmpeg/libavcodec -I[$top_srcdir]/ffmpeg/libavformat -I[$top_srcdir]/ffmpeg/libavutil -I[$top_srcdir]/ffmpeg/libswscale -I[$top_srcdir]/ffmpeg/libavdevice"
 	AC_CHECK_LIB_STATIC(avutil, av_rescale,,[unset ac_cv_lib_avutil_av_rescale ; static_avcodec=no ; LDFLAGS=$ac_my_ldflags_save ; CFLAGS=$ac_my_cflags_save])
 fi

@@ -392,16 +396,21 @@

 # if avutil is linked statically, avcodec should, too
 static_avcodec=$static_avutil
-ac_my_avcodec_libs=""
-test x`(uname -s)` = xSunOS && ac_my_avcodec_libs="-lnsl -lsocket"
+ac_my_avcodec_libs="-lz"
+test x`(uname -s)` = xSunOS && ac_my_avcodec_libs="-lz -lnsl -lsocket"
 AC_CHECK_LIB_STATIC(avcodec, avcodec_encode_video,,[unset ac_cv_lib_avcodec_avcodec_encode_video ; static_avcodec=no ; AC_CHECK_LIB(avcodec, avcodec_encode_video,,,[$ac_my_avcodec_libs])],[$ac_my_avcodec_libs])

 # if avcodec is linked statically, avformat should, too
 static_avformat=$static_avcodec
-ac_my_avformat_libs=""
-test x`(uname -s)` = xSunOS && ac_my_avformat_libs="-lnsl -lsocket"
+ac_my_avformat_libs="-lz"
+test x`(uname -s)` = xSunOS && ac_my_avformat_libs="-lz -lnsl -lsocket"
 AC_CHECK_LIB_STATIC(avformat, av_write_header,,[unset ac_cv_lib_avformat_av_write_header ; static_avformat=no ; AC_CHECK_LIB(avformat, av_write_header,,,[$ac_my_avformat_libs])],[$ac_my_avformat_libs])

+# if avcodec is linked statically, avdevice should, too
+static_avdevice=$static_avcodec
+ac_my_avdevice_libs="-lz"
+test x`(uname -s)` = xSunOS && ac_my_avdevice_libs="-lz -lnsl -lsocket"
+AC_CHECK_LIB_STATIC(avdevice, avdevice_register_all,,[unset ac_cv_lib_avdevice_avdevice_register_all ; static_avdevice=no ; AC_CHECK_LIB(avdevice, avdevice_register_all,,,[$ac_my_avdevice_libs])],[$ac_my_avdevice_libs])

 # only use ffmpeg if ALL required libs are present
 if ( `test x$ac_cv_lib_avcodec_avcodec_encode_video = xyes -a x$ac_cv_lib_avformat_av_write_header = xyes -a x$ac_cv_lib_avutil_av_rescale = xyes -a x$ac_cv_lib_swscale_sws_scale = xyes` ) ; then
Index: config.h.in
===================================================================
--- config.h.in	(Revision 302)
+++ config.h.in	(Arbeitskopie)
@@ -51,6 +51,9 @@
 /* Define to 1 if you have the `avcodec' library (-lavcodec). */
 #undef HAVE_LIBAVCODEC

+/* Define to 1 if you have the `avdevice' library (-lavdevice). */
+#undef HAVE_LIBAVDEVICE
+
 /* Define to 1 if you have the `avformat' library (-lavformat). */
 #undef HAVE_LIBAVFORMAT



-- 
gentoo-commits@g.o mailing list


Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in x11-misc/xvidcap: ChangeLog xvidcap-1.1.7_rc1.ebuild
Next by thread:
gentoo commit in src/patchsets/coreutils/6.10: 050_all_coreutils-6.10-mv-atomic.patch
Previous by date:
gentoo-x86 commit in x11-misc/xvidcap: ChangeLog xvidcap-1.1.7_rc1.ebuild
Next by date:
gentoo-x86 commit in profiles: ChangeLog package.mask


Updated Jan 18, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.