diff options
author | jmmv <jmmv@pkgsrc.org> | 2004-02-24 21:47:17 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2004-02-24 21:47:17 +0000 |
commit | edcded2f3fc3e587b467807fbcba7c0484b6bfa5 (patch) | |
tree | 108ba526a36ce8cd0c73c352a1cdd473fe764c4e /multimedia | |
parent | e2f2390837daf3dd47f45b9a483c5619a0066c59 (diff) | |
download | pkgsrc-edcded2f3fc3e587b467807fbcba7c0484b6bfa5.tar.gz |
Move mpeg_encode from the graphics to the multimedia category.
This is version 1.5bnb1.
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/mpeg_encode/DESCR | 14 | ||||
-rw-r--r-- | multimedia/mpeg_encode/Makefile | 39 | ||||
-rw-r--r-- | multimedia/mpeg_encode/PLIST | 168 | ||||
-rw-r--r-- | multimedia/mpeg_encode/distinfo | 9 | ||||
-rw-r--r-- | multimedia/mpeg_encode/patches/patch-aa | 35 | ||||
-rw-r--r-- | multimedia/mpeg_encode/patches/patch-ab | 13 | ||||
-rw-r--r-- | multimedia/mpeg_encode/patches/patch-ac | 25 | ||||
-rw-r--r-- | multimedia/mpeg_encode/patches/patch-ad | 13 | ||||
-rw-r--r-- | multimedia/mpeg_encode/patches/patch-ae | 19 |
9 files changed, 335 insertions, 0 deletions
diff --git a/multimedia/mpeg_encode/DESCR b/multimedia/mpeg_encode/DESCR new file mode 100644 index 00000000000..f1d129b6c31 --- /dev/null +++ b/multimedia/mpeg_encode/DESCR @@ -0,0 +1,14 @@ +The primary focus of MPEG encoding algorithms is 1) To create fast +and efficient motion vector search techniques and 2) To find "good" +encoding parameters that provide a balance of encoding speed, +compression and quality. + +The Berkeley encoder accelerates the process by parallelizing in +the temporal direction. The overall organization of the encoder is +shown in Figure 2. The Master server is the overall coordinator. +It allocates groups of frames to the Slave servers for encoding. +The sharing of the files is achieved best, if the directories +containing the video files are NFS mounted and accessible uniformly +to all processors (alternatively they can be sent out though sockets +by the Master). The various activities are managed by inter process +communication through sockets. diff --git a/multimedia/mpeg_encode/Makefile b/multimedia/mpeg_encode/Makefile new file mode 100644 index 00000000000..835f75de207 --- /dev/null +++ b/multimedia/mpeg_encode/Makefile @@ -0,0 +1,39 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/02/24 21:47:17 jmmv Exp $ +# + +DISTNAME= mpeg_encode-1.5b-src +PKGNAME= ${DISTNAME:S/-src//} +PKGREVISION= 1 +CATEGORIES= multimedia net +MASTER_SITES= ftp://mm-ftp.cs.berkeley.edu/pub/multimedia/mpeg/encode/ + +MAINTAINER= hubertf@NetBSD.org +HOMEPAGE= http://bmrc.berkeley.edu/frame/research/mpeg/mpeg_encode.html +COMMENT= The Parallel Berkeley MPEG Encoder + +WRKSRC= ${WRKDIR}/mpeg_encode +USE_BUILDLINK2= YES +USE_GNU_TOOLS+= make + +post-build: + @cd ${WRKSRC}/convert && \ + ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/mpeg_encode ${LOCALBASE}/bin +.for i in eyuvtojpeg jmovie2jpeg mpeg_demux + ${INSTALL_PROGRAM} ${WRKSRC}/convert/${i} ${LOCALBASE}/bin +.endfor + ${INSTALL_DATA_DIR} ${LOCALBASE}/share/doc/mpeg_encode +.for i in EXTENSIONS INPUT.FORMAT mpeg_encode.1 parallel.param param-summary \ + template.param users-guide.fm users-guide.mif users-guide.ps + ${INSTALL_DATA} ${WRKSRC}/docs/${i} ${LOCALBASE}/share/doc/mpeg_encode +.endfor + ${INSTALL_DATA_DIR} ${LOCALBASE}/share/examples/mpeg_encode + cd ${WRKSRC}/examples ; for i in * ; do \ + ${INSTALL_DATA} $$i ${LOCALBASE}/share/examples/mpeg_encode; \ + done + ${INSTALL_MAN} ${WRKSRC}/docs/mpeg_encode.1 ${LOCALBASE}/man/man1 + +.include "../../graphics/jpeg/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/multimedia/mpeg_encode/PLIST b/multimedia/mpeg_encode/PLIST new file mode 100644 index 00000000000..a6a5117ab7f --- /dev/null +++ b/multimedia/mpeg_encode/PLIST @@ -0,0 +1,168 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/02/24 21:47:25 jmmv Exp $ +bin/eyuvtojpeg +bin/jmovie2jpeg +bin/mpeg_demux +bin/mpeg_encode +man/man1/mpeg_encode.1 +share/doc/mpeg_encode/EXTENSIONS +share/doc/mpeg_encode/INPUT.FORMAT +share/doc/mpeg_encode/mpeg_encode.1 +share/doc/mpeg_encode/parallel.param +share/doc/mpeg_encode/param-summary +share/doc/mpeg_encode/template.param +share/doc/mpeg_encode/users-guide.fm +share/doc/mpeg_encode/users-guide.mif +share/doc/mpeg_encode/users-guide.ps +share/examples/mpeg_encode/basicspeed.param +share/examples/mpeg_encode/decoded.test +share/examples/mpeg_encode/decoded2.test +share/examples/mpeg_encode/decorig.param +share/examples/mpeg_encode/default.param +share/examples/mpeg_encode/fastspeed.param +share/examples/mpeg_encode/foobar.param +share/examples/mpeg_encode/frame.test +share/examples/mpeg_encode/gop.combine +share/examples/mpeg_encode/gop.test +share/examples/mpeg_encode/gop1.param +share/examples/mpeg_encode/hello.param +share/examples/mpeg_encode/i.test +share/examples/mpeg_encode/ispeed.jpeg.param +share/examples/mpeg_encode/ispeed.param +share/examples/mpeg_encode/jpeg.test +share/examples/mpeg_encode/jpeg19.param +share/examples/mpeg_encode/jpegout19.param +share/examples/mpeg_encode/localdisk.param +share/examples/mpeg_encode/localremote.test +share/examples/mpeg_encode/luxo.param +share/examples/mpeg_encode/luxo18.param +share/examples/mpeg_encode/luxo19.5.param +share/examples/mpeg_encode/luxo19.param +share/examples/mpeg_encode/luxo2.param +share/examples/mpeg_encode/luxo48.param +share/examples/mpeg_encode/luxo49.param +share/examples/mpeg_encode/luxo50.param +share/examples/mpeg_encode/luxo52.5.param +share/examples/mpeg_encode/luxo52.param +share/examples/mpeg_encode/luxo53.param +share/examples/mpeg_encode/luxobug.param +share/examples/mpeg_encode/luxoskip.param +share/examples/mpeg_encode/med.param +share/examples/mpeg_encode/med18.param +share/examples/mpeg_encode/medspeed.param +share/examples/mpeg_encode/nametest.param +share/examples/mpeg_encode/nosearch.param +share/examples/mpeg_encode/par3.param +share/examples/mpeg_encode/par4.param +share/examples/mpeg_encode/par5.param +share/examples/mpeg_encode/parallel.2 +share/examples/mpeg_encode/parallel.param +share/examples/mpeg_encode/parallel.test +share/examples/mpeg_encode/param.template +share/examples/mpeg_encode/payam.param +share/examples/mpeg_encode/payam18.param +share/examples/mpeg_encode/pnm.param +share/examples/mpeg_encode/ppm.param +share/examples/mpeg_encode/prof.b.param +share/examples/mpeg_encode/prof.bhalf.param +share/examples/mpeg_encode/prof.param +share/examples/mpeg_encode/prof.ss.param +share/examples/mpeg_encode/prof2.param +share/examples/mpeg_encode/prof3.param +share/examples/mpeg_encode/prof4.param +share/examples/mpeg_encode/remote.test +share/examples/mpeg_encode/search1.param +share/examples/mpeg_encode/search10.param +share/examples/mpeg_encode/search11.param +share/examples/mpeg_encode/search12.param +share/examples/mpeg_encode/search13.param +share/examples/mpeg_encode/search14.param +share/examples/mpeg_encode/search15.param +share/examples/mpeg_encode/search16.param +share/examples/mpeg_encode/search17.param +share/examples/mpeg_encode/search18.param +share/examples/mpeg_encode/search19.5.param +share/examples/mpeg_encode/search19.param +share/examples/mpeg_encode/search2.param +share/examples/mpeg_encode/search20.param +share/examples/mpeg_encode/search21.param +share/examples/mpeg_encode/search22.param +share/examples/mpeg_encode/search23.param +share/examples/mpeg_encode/search24.param +share/examples/mpeg_encode/search25.param +share/examples/mpeg_encode/search26.param +share/examples/mpeg_encode/search27.param +share/examples/mpeg_encode/search28.param +share/examples/mpeg_encode/search29.param +share/examples/mpeg_encode/search3.param +share/examples/mpeg_encode/search30.param +share/examples/mpeg_encode/search31.param +share/examples/mpeg_encode/search32.param +share/examples/mpeg_encode/search33.param +share/examples/mpeg_encode/search34.param +share/examples/mpeg_encode/search35.param +share/examples/mpeg_encode/search36.param +share/examples/mpeg_encode/search37.param +share/examples/mpeg_encode/search38.param +share/examples/mpeg_encode/search39.param +share/examples/mpeg_encode/search4.param +share/examples/mpeg_encode/search40.param +share/examples/mpeg_encode/search41.param +share/examples/mpeg_encode/search42.param +share/examples/mpeg_encode/search43.param +share/examples/mpeg_encode/search44.param +share/examples/mpeg_encode/search45.param +share/examples/mpeg_encode/search46.param +share/examples/mpeg_encode/search47.param +share/examples/mpeg_encode/search48.param +share/examples/mpeg_encode/search49.param +share/examples/mpeg_encode/search5.param +share/examples/mpeg_encode/search50.param +share/examples/mpeg_encode/search51.param +share/examples/mpeg_encode/search52.5.param +share/examples/mpeg_encode/search52.param +share/examples/mpeg_encode/search53.param +share/examples/mpeg_encode/search6.param +share/examples/mpeg_encode/search7.param +share/examples/mpeg_encode/search8.param +share/examples/mpeg_encode/search9.param +share/examples/mpeg_encode/seq.param +share/examples/mpeg_encode/sequoia.param +share/examples/mpeg_encode/sequoia19.param +share/examples/mpeg_encode/sequoia2.param +share/examples/mpeg_encode/slice.param +share/examples/mpeg_encode/slimed.param +share/examples/mpeg_encode/slowspeed.param +share/examples/mpeg_encode/stanford.param +share/examples/mpeg_encode/subtest.param +share/examples/mpeg_encode/temp.param +share/examples/mpeg_encode/template.param +share/examples/mpeg_encode/tennis.param +share/examples/mpeg_encode/tennis18.param +share/examples/mpeg_encode/tennis19.5.param +share/examples/mpeg_encode/tennis19.param +share/examples/mpeg_encode/tennis48.param +share/examples/mpeg_encode/tennis49.param +share/examples/mpeg_encode/tennis50.param +share/examples/mpeg_encode/tennis52.5.param +share/examples/mpeg_encode/tennis52.param +share/examples/mpeg_encode/tennis53.param +share/examples/mpeg_encode/tennisbug.param +share/examples/mpeg_encode/testp.param +share/examples/mpeg_encode/walk.param +share/examples/mpeg_encode/walk1.param +share/examples/mpeg_encode/walk18.param +share/examples/mpeg_encode/walk19.5.param +share/examples/mpeg_encode/walk19.param +share/examples/mpeg_encode/walk2.param +share/examples/mpeg_encode/walk3.param +share/examples/mpeg_encode/walk4.param +share/examples/mpeg_encode/walk48.param +share/examples/mpeg_encode/walk49.param +share/examples/mpeg_encode/walk5.param +share/examples/mpeg_encode/walk50.param +share/examples/mpeg_encode/walk52.5.param +share/examples/mpeg_encode/walk52.param +share/examples/mpeg_encode/walk53.param +share/examples/mpeg_encode/walk93.param +@dirrm share/examples/mpeg_encode +@dirrm share/doc/mpeg_encode diff --git a/multimedia/mpeg_encode/distinfo b/multimedia/mpeg_encode/distinfo new file mode 100644 index 00000000000..09e5c94125b --- /dev/null +++ b/multimedia/mpeg_encode/distinfo @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/02/24 21:47:25 jmmv Exp $ + +SHA1 (mpeg_encode-1.5b-src.tar.gz) = 853cd175f73b8064ce28deb256e4b81159a684ed +Size (mpeg_encode-1.5b-src.tar.gz) = 2028724 bytes +SHA1 (patch-aa) = 04221eb3d4cf85b206d27a2f425719ed7c4a5ec1 +SHA1 (patch-ab) = f2cdf02d49b726b4fb7fb210074e7ba53b9b380b +SHA1 (patch-ac) = 8f89257bd93584cd028b659bb8c3379d713339da +SHA1 (patch-ad) = 670a244680d09cb9f558a8777ec8f189145342f8 +SHA1 (patch-ae) = e591c1399d51175295731b2c8947c03c19ede486 diff --git a/multimedia/mpeg_encode/patches/patch-aa b/multimedia/mpeg_encode/patches/patch-aa new file mode 100644 index 00000000000..2fb3f989b20 --- /dev/null +++ b/multimedia/mpeg_encode/patches/patch-aa @@ -0,0 +1,35 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/02/24 21:47:25 jmmv Exp $ + +--- Makefile.orig Thu Aug 17 00:16:56 1995 ++++ Makefile +@@ -36,9 +36,9 @@ + ############## + # JPEG STUFF # + ############## +-JPEG_LIB = jpeg/libjpeg.a +-JPEG_DIR = -Ijpeg +-JPEG_LIB_DIR = -Ljpeg ++JPEG_LIB = -ljpeg ++JPEG_DIR = ++JPEG_LIB_DIR = + MP_JPEG_OBJS = jpeg.o + MP_JPEG_SRCS = jpeg.c + +@@ -57,7 +57,7 @@ + ################# + # INCLUDE FILES # + ################# +-INCLUDEDIR = -Iheaders -I/usr/include $(JPEG_DIR) ++INCLUDEDIR = -Iheaders $(JPEG_DIR) + + ############################################################################ + # LIBRARIES # specify library directories; need jpg lib and maybe pbm # +@@ -203,7 +203,7 @@ + ############ + + mpeg_encode: $(MP_ALL_OBJS) $(JPEG_LIB) +- $(PURIFY) $(CC) $(CFLAGS) -o $@ $(MP_ALL_OBJS) $(LIBDIRS) $(LIBS) ++ $(PURIFY) $(CC) $(LDFLAGS) -o $@ $(MP_ALL_OBJS) $(LIBDIRS) $(LIBS) + strip mpeg_encode + + profile: $(MP_ALL_OBJS) diff --git a/multimedia/mpeg_encode/patches/patch-ab b/multimedia/mpeg_encode/patches/patch-ab new file mode 100644 index 00000000000..52806afd68e --- /dev/null +++ b/multimedia/mpeg_encode/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/02/24 21:47:25 jmmv Exp $ + +--- jpeg.c.orig Sat Aug 5 01:35:07 1995 ++++ jpeg.c +@@ -77,7 +77,7 @@ + + /* make it happier.... */ + #undef DCTSIZE2 +-#include "jpeg/jpeglib.h" ++#include "jpeglib.h" /* Use system header! */ + + + #define HEADER_SIZE 607 /*JFIF header size used on output images*/ diff --git a/multimedia/mpeg_encode/patches/patch-ac b/multimedia/mpeg_encode/patches/patch-ac new file mode 100644 index 00000000000..87286cc1460 --- /dev/null +++ b/multimedia/mpeg_encode/patches/patch-ac @@ -0,0 +1,25 @@ +$NetBSD: patch-ac,v 1.1.1.1 2004/02/24 21:47:25 jmmv Exp $ + +--- libpnmrw.c.orig Thu Aug 17 00:24:26 1995 ++++ libpnmrw.c +@@ -28,6 +28,9 @@ + #endif + + #include <stdio.h> ++#ifdef __NetBSD__ ++# include <errno.h> ++#endif + #include "libpnmrw.h" + + /* if don't have string.h, try strings.h */ +@@ -126,8 +129,10 @@ + pm_perror( reason ) + char* reason; + { ++#ifndef __NetBSD__ + extern char* sys_errlist[]; + extern int errno; ++#endif + char* e; + + e = sys_errlist[errno]; diff --git a/multimedia/mpeg_encode/patches/patch-ad b/multimedia/mpeg_encode/patches/patch-ad new file mode 100644 index 00000000000..a2cd5e696a5 --- /dev/null +++ b/multimedia/mpeg_encode/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1.1.1 2004/02/24 21:47:25 jmmv Exp $ + +--- docs/mpeg_encode.1.orig Thu Mar 30 00:15:09 1995 ++++ docs/mpeg_encode.1 +@@ -368,6 +368,8 @@ + This is version 1.5 it contins new features and bug fixes from version 1.3. + .SH BUGS + No known bugs, but if you find any, report them to mpeg-bugs@plateau.cs.berkeley.edu. ++If you experience problems in the jpeg code, it is advisable to use another ++input format. This problem is documented in NetBSD PR pkg/14043. + .HP + .SH AUTHORS + .HP diff --git a/multimedia/mpeg_encode/patches/patch-ae b/multimedia/mpeg_encode/patches/patch-ae new file mode 100644 index 00000000000..d304801cdc7 --- /dev/null +++ b/multimedia/mpeg_encode/patches/patch-ae @@ -0,0 +1,19 @@ +$NetBSD: patch-ae,v 1.1.1.1 2004/02/24 21:47:25 jmmv Exp $ + +--- convert/jmovie2jpeg.c.orig 1995-01-20 00:29:24.000000000 +0000 ++++ convert/jmovie2jpeg.c +@@ -283,12 +283,12 @@ static char inbuffer[300000] = { + if (fread (&(image_offset),sizeof(int),1,inFile) != 1) + { + perror("Error in reading image offset"); +- exit(); ++ exit(1); + } + if (fread (&(audio_tracks),sizeof(int),1,inFile) != 1) + { + perror("Error in reading audio tracks"); +- exit(); ++ exit(1); + } + if (audio_tracks != 1) + { |