[Lunar-commits] r16747 - moonbase/trunk/video/xvidcap

Chad Kittel v3rt1g0 at lunar-linux.org
Sat Oct 1 14:26:45 UTC 2005


Author: v3rt1g0
Date: 2005-10-01 14:26:45 +0000 (Sat, 01 Oct 2005)
New Revision: 16747

Added:
   moonbase/trunk/video/xvidcap/BUILD
   moonbase/trunk/video/xvidcap/xvidcap-1.1.3-use-ffmpeg-0.4.9.patch
Modified:
   moonbase/trunk/video/xvidcap/DETAILS
Log:
Added a patch (thanks genpoo!) to allow xvidcap to compile with 0.4.9 version of 
ffmpeg (API changes).  

I'm about as handy with patch files as my cat is as good as cleaning her own 
litter box, so if someone knows how to place the patchfile on the server and 
wouldn't mind fixing the module up to reflect that change,  that would be 
awesome.  Thanx.


Added: moonbase/trunk/video/xvidcap/BUILD
===================================================================
--- moonbase/trunk/video/xvidcap/BUILD	2005-10-01 13:55:45 UTC (rev 16746)
+++ moonbase/trunk/video/xvidcap/BUILD	2005-10-01 14:26:45 UTC (rev 16747)
@@ -0,0 +1,10 @@
+(
+
+  # we want xvidcap to work with the latest ffmpeg
+  cd src
+  patch_it $SCRIPT_DIRECTORY/xvidcap-1.1.3-use-ffmpeg-0.4.9.patch 1 &&
+  cd ..
+
+  default_build
+
+) > $C_FIFO 2>&1

Modified: moonbase/trunk/video/xvidcap/DETAILS
===================================================================
--- moonbase/trunk/video/xvidcap/DETAILS	2005-10-01 13:55:45 UTC (rev 16746)
+++ moonbase/trunk/video/xvidcap/DETAILS	2005-10-01 14:26:45 UTC (rev 16747)
@@ -6,7 +6,7 @@
        WEB_SITE=http://xvidcap.sourceforge.net/
         ENTERED=20041225
         UPDATED=20041225
-        SHORT="A (video) screen capture tool for X"
+          SHORT="A (video) screen capture tool for X"
 
 cat << EOF
 xvidcap is a screen capture enabling you to capture videos off your

Added: moonbase/trunk/video/xvidcap/xvidcap-1.1.3-use-ffmpeg-0.4.9.patch
===================================================================
--- moonbase/trunk/video/xvidcap/xvidcap-1.1.3-use-ffmpeg-0.4.9.patch	2005-10-01 13:55:45 UTC (rev 16746)
+++ moonbase/trunk/video/xvidcap/xvidcap-1.1.3-use-ffmpeg-0.4.9.patch	2005-10-01 14:26:45 UTC (rev 16747)
@@ -0,0 +1,16 @@
+--- src/xtoffmpeg.c	2004/08/27 20:04:38	1.1
++++ src/xtoffmpeg.c	2004/08/28 00:23:53
+@@ -1117,7 +1117,12 @@ XImageToFFMPEG (FILE *fp, XImage *image,
+     }
+ #endif // HAVE_FFMPEG_AUDIO
+     /* write frame to file */
+-    av_write_frame (output_file, out_st->index, outbuf, out_size);
++    AVPacket _pkt, *pkt = &_pkt;
++    av_init_packet (pkt);
++    pkt->stream_index = out_st->index;
++    pkt->data = outbuf;
++    pkt->size = out_size;
++    av_write_frame (output_file, pkt);
+ #ifdef HAVE_FFMPEG_AUDIO
+     /* release the mutex */
+     if (job->flags & FLG_AUDIO_WANTED) {



More information about the Lunar-commits mailing list