[MPlayer-dev-eng] [PATCH] Re: Frapsvid.dll - finally working
Gianluigi Tiesi
mplayer at netfarm.it
Sat May 14 07:46:58 CEST 2005
Forgot all my previous patches, it's enough to provide "premiere"
as module handle (hope this don't break other things)
and add strstr and qsort out of the box.
The output should BGR32 flip
Attached a working patch, it work on linux and win32, tested
with latest frapsvid.dll version 2.5.5.4432, that is the
only file needed.
All samples on ftp are playing correctly.
:)
--
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-------------- next part --------------
Index: etc/codecs.conf
===================================================================
RCS file: /cvsroot/mplayer/main/etc/codecs.conf,v
retrieving revision 1.411
diff -u -r1.411 codecs.conf
--- etc/codecs.conf 4 May 2005 20:35:21 -0000 1.411
+++ etc/codecs.conf 14 May 2005 05:43:06 -0000
@@ -1724,6 +1724,15 @@
dll "tsccvid.dll"
out BGR32,BGR24,BGR15,BGR8 query,flip
+; Fraps - Realtime Video Capture - http://www.fraps.com/
+videocodec fraps
+ info "FRAPS: Realtime Video Capture"
+ status working
+ fourcc FPS1,fps1
+ driver vfw
+ dll "frapsvid.dll"
+ out BGR32 flip
+
; raw formats: (now RGB formats are autodetected)
; these raw codecs are used mostly by TV input
Index: loader/win32.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/win32.c,v
retrieving revision 1.98
diff -u -r1.98 win32.c
--- loader/win32.c 15 Apr 2005 20:17:12 -0000 1.98
+++ loader/win32.c 14 May 2005 05:43:08 -0000
@@ -2285,7 +2285,7 @@
if (module == 0 && len >= 12)
{
/* return caller program name */
- strcpy(s, "aviplay.dll");
+ strcpy(s, "premiere");
result=1;
}
else if(s==0)
@@ -4951,6 +4951,9 @@
FF(printf,-1)
FF(getenv,-1)
FF(floor,-1)
+/* needed by frapsvid.dll */
+ {"strstr",-1,(char *)&strstr},
+ {"qsort",-1,(void *)&qsort},
#ifdef MPLAYER
FF(_EH_prolog,-1)
#endif
More information about the MPlayer-dev-eng
mailing list