[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NEW: xvidcore



Hi,

attached is a port for xvidcore, a high performance and high quality
MPEG-4 video de-/encoding library.

It compiles fine on i386/sparc/sparc64 and alpha.

Encoding is better than ffmpeg's mpeg4 codec.
I encoded a DVD with dvdrip:
ls -la xvid.avi ffmpeg.avi                                                                       
-rw-r--r--  1 wbx  wheel  516468002 Jul  5 10:03 ffmpeg.avi
-rw-r--r--  1 wbx  wheel  386906036 Jul  4 15:24 xvid.avi

I see no difference in the quality of the video.

Additionally I attached an update for transcode and mplayer
to actually use the library. Both tested on i386.

With mplayer -vc xvid you can explicitely use the new codec after
recompiling mplayer with the new FLAVOR.

Please test, comment and commit.

bye
    Waldemar

-- 
CE94 5F99 BA88 65B1 25B9  8CD1 305A FF6B F8F8 1846
gpg --keyserver x-hkp://pgp.mit.edu --recv-keys F8F81846

*** http://www.openbsd.de/~wbx ***

xvidcore-port.tgz

Index: Makefile
===================================================================
RCS file: /stuff/OpenBSD/cvs/ports/x11/mplayer/Makefile,v
retrieving revision 1.73
diff -d -u -r1.73 Makefile
--- Makefile	3 Jul 2004 02:10:26 -0000	1.73
+++ Makefile	5 Jul 2004 08:06:59 -0000
@@ -76,7 +76,7 @@
 CONFIGURE_ARGS+=--disable-altivec
 .endif
 
-FLAVORS=	arts esd sdl ggi debug mad win32 no_x11 aa
+FLAVORS=	arts esd sdl ggi debug mad win32 no_x11 aa xvid
 FLAVOR?=
 
 .if ${FLAVOR:L:Marts}
@@ -154,6 +154,13 @@
 LIB_DEPENDS+=  aa.1.3::graphics/aalib
 .else
 CONFIGURE_ARGS+=--disable-aa
+.endif
+
+.if ${FLAVOR:L:Mxvid}
+CONFIGURE_ARGS+=--enable-xvid
+LIB_DEPENDS+=	xvidcore.4::graphics/xvidcore
+.else
+CONFIGURE_ARGS+=--disable-xvid
 .endif
 
 NO_REGRESS=	Yes
Index: Makefile
===================================================================
RCS file: /stuff/OpenBSD/cvs/ports/graphics/transcode/Makefile,v
retrieving revision 1.2
diff -d -u -r1.2 Makefile
--- Makefile	24 Jun 2004 19:27:00 -0000	1.2
+++ Makefile	4 Jul 2004 13:19:50 -0000
@@ -37,7 +37,8 @@
 		mp3lame.0::audio/lame \
 		ogg.5::audio/libogg \
 		vorbis.3,vorbisfile.4::audio/libvorbis \
-		xml2.8::textproc/libxml
+		xml2.8::textproc/libxml \
+		xvidcore.4::graphics/xvidcore
 
 RUN_DEPENDS=	::graphics/ffmpeg \
 		::audio/sox
@@ -51,6 +52,7 @@
 CONFIGURE_ARGS+=${CONFIGURE_SHARED} \
 		--enable-liba52 \
 		--with-ogg --with-vorbis \
+		--with-default-xvid=xvid4 \
 		--disable-altivec --disable-sse \
 		--disable-mjpeg \
 		--disable-text \
Index: pkg/PLIST
===================================================================
RCS file: /stuff/OpenBSD/cvs/ports/graphics/transcode/pkg/PLIST,v
retrieving revision 1.2
diff -d -u -r1.2 PLIST
--- pkg/PLIST	24 Jun 2004 19:27:00 -0000	1.2
+++ pkg/PLIST	4 Jul 2004 00:15:57 -0000
@@ -63,13 +63,13 @@
 @comment lib/transcode/export_toolame.so
 @comment lib/transcode/export_wav.la
 lib/transcode/export_wav.so
-@comment lib/transcode/export_xvid.so
+lib/transcode/export_xvid.so
 @comment lib/transcode/export_xvid2.la
-@comment lib/transcode/export_xvid2.so
+lib/transcode/export_xvid2.so
 @comment lib/transcode/export_xvid3.la
-@comment lib/transcode/export_xvid3.so
+lib/transcode/export_xvid3.so
 @comment lib/transcode/export_xvid4.la
-@comment lib/transcode/export_xvid4.so
+lib/transcode/export_xvid4.so
 @comment lib/transcode/filter_29to23.la
 lib/transcode/filter_29to23.so
 @comment lib/transcode/filter_32detect.la
@@ -220,15 +220,15 @@
 @comment lib/transcode/import_xml.la
 lib/transcode/import_xml.so
 @comment lib/transcode/import_xvid.la
-@comment lib/transcode/import_xvid.so
+lib/transcode/import_xvid.so
 @comment lib/transcode/import_yuv.la
 lib/transcode/import_yuv.so
 @comment lib/transcode/import_yuv4mpeg.la
 lib/transcode/import_yuv4mpeg.so
 lib/transcode/parse_csv.awk
-@comment lib/transcode/xvid2.cfg
-@comment lib/transcode/xvid3.cfg
-@comment lib/transcode/xvid4.cfg
+lib/transcode/xvid2.cfg
+lib/transcode/xvid3.cfg
+lib/transcode/xvid4.cfg
 man/man1/avifix.1
 man/man1/aviindex.1
 man/man1/avimerge.1