From 3a0cd27f78beadddff62fd14c4273d202fe932fe Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Fri, 25 Oct 2002 08:12:42 +0000 Subject: add tosvcd 0.7 SVCD transcoder --- multimedia/tosvcd/Makefile | 34 ++++++++++++++++++++++++++++++++++ multimedia/tosvcd/distinfo | 1 + multimedia/tosvcd/files/patch-decode.c | 20 ++++++++++++++++++++ multimedia/tosvcd/files/patch-makefile | 11 +++++++++++ multimedia/tosvcd/files/patch-tosvcd.c | 22 ++++++++++++++++++++++ multimedia/tosvcd/pkg-comment | 1 + multimedia/tosvcd/pkg-descr | 16 ++++++++++++++++ multimedia/tosvcd/pkg-plist | 1 + 8 files changed, 106 insertions(+) create mode 100644 multimedia/tosvcd/Makefile create mode 100644 multimedia/tosvcd/distinfo create mode 100644 multimedia/tosvcd/files/patch-decode.c create mode 100644 multimedia/tosvcd/files/patch-makefile create mode 100644 multimedia/tosvcd/files/patch-tosvcd.c create mode 100644 multimedia/tosvcd/pkg-comment create mode 100644 multimedia/tosvcd/pkg-descr create mode 100644 multimedia/tosvcd/pkg-plist (limited to 'multimedia') diff --git a/multimedia/tosvcd/Makefile b/multimedia/tosvcd/Makefile new file mode 100644 index 000000000000..61279544b655 --- /dev/null +++ b/multimedia/tosvcd/Makefile @@ -0,0 +1,34 @@ +# ex:ts=8 +# Ports collection makefile for: tosvcd +# Date created: Oct 25, 2002 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= tosvcd +PORTVERSION= 0.7 +CATEGORIES= graphics +MASTER_SITES= http://muse.seh.de/tosvcd/ + +MAINTAINER= ports@FreeBSD.org + +RUN_DEPNDS= mpeg2enc:${PORTSDIR}/graphics/mjpegtools \ + vcdimager:${PORTSDIR}/graphics/vcdimager + +USE_BZIP2= yes +USE_REINPLACE= yes +MAKEFILE= makefile +USE_GMAKE= yes + +post-patch: + @${REINPLACE_CMD} -e "s|^CFLAGS =|CFLAGS+=|" \ + -e "s|^CFLAGS +=|#CFLAGS +=|g" \ + -e "s|-lpthread|${PTHREAD_LIBS}|g" \ + ${WRKSRC}/${MAKEFILE} + @${REINPLACE_CMD} -e "s|malloc.h|stdlib.h|" ${WRKSRC}/decode.c + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/tosvcd ${PREFIX}/bin + +.include diff --git a/multimedia/tosvcd/distinfo b/multimedia/tosvcd/distinfo new file mode 100644 index 000000000000..87b0a1b59920 --- /dev/null +++ b/multimedia/tosvcd/distinfo @@ -0,0 +1 @@ +MD5 (tosvcd-0.7.tar.bz2) = d821ed70eed67dae5fbbc041217f327f diff --git a/multimedia/tosvcd/files/patch-decode.c b/multimedia/tosvcd/files/patch-decode.c new file mode 100644 index 000000000000..9c13da9dfde4 --- /dev/null +++ b/multimedia/tosvcd/files/patch-decode.c @@ -0,0 +1,20 @@ +--- decode.c.orig Fri Oct 25 16:01:13 2002 ++++ decode.c Fri Oct 25 16:01:31 2002 +@@ -21,7 +21,7 @@ + Mpeg2dec::Mpeg2dec(uint32_t mm_accel) + { + config.flags = mm_accel; +- picture = (picture_t*)memalign (16, sizeof (picture_t)); ++ picture = (picture_t*)malloc(sizeof (picture_t)); + memset(picture, 0, sizeof (picture_t)); + frames = 0; + frame_ptr[0] = 0; +@@ -66,7 +66,7 @@ + int size = width() * height() / 4; + if (frames) + free(frames); +- frames = (unsigned char*)memalign(64, size*18); ++ frames = (unsigned char*)malloc(size*18); + unsigned char* alloc = frames; + + for (int i = 0; i < 3; i++) { diff --git a/multimedia/tosvcd/files/patch-makefile b/multimedia/tosvcd/files/patch-makefile new file mode 100644 index 000000000000..6c4b3a971be8 --- /dev/null +++ b/multimedia/tosvcd/files/patch-makefile @@ -0,0 +1,11 @@ +--- makefile.orig Fri Oct 25 16:04:05 2002 ++++ makefile Fri Oct 25 16:04:25 2002 +@@ -21,7 +21,7 @@ + + tosvcd: $(OBJ) + $(CC) -o tosvcd $(OBJ) -lpthread +- su -c "cp tosvcd /usr/bin" ++# su -c "cp tosvcd /usr/bin" + + t: + ./tosvcd -o reeperbahn /video0/Auf_der_Reeperbahn_nachts_um_halb_eins/2002-03-09.15:21.50.50.rec diff --git a/multimedia/tosvcd/files/patch-tosvcd.c b/multimedia/tosvcd/files/patch-tosvcd.c new file mode 100644 index 000000000000..0400030a1fc7 --- /dev/null +++ b/multimedia/tosvcd/files/patch-tosvcd.c @@ -0,0 +1,22 @@ +--- tosvcd.c.orig Fri Oct 25 12:15:12 2002 ++++ tosvcd.c Fri Oct 25 12:16:27 2002 +@@ -29,9 +29,8 @@ + #include + #include + #include +-#include + #include +-#include ++#include + #include + + +@@ -1322,7 +1321,7 @@ + // catch all signals + //--------------------------------------------------- + #if 1 +- for (int i = 0; i < _NSIG; ++i) { ++ for (int i = 0; i < NSIG; ++i) { + if (i != SIGABRT) + signal(i, catchSignal); + } diff --git a/multimedia/tosvcd/pkg-comment b/multimedia/tosvcd/pkg-comment new file mode 100644 index 000000000000..f28c892561e0 --- /dev/null +++ b/multimedia/tosvcd/pkg-comment @@ -0,0 +1 @@ +SVCD transcoder diff --git a/multimedia/tosvcd/pkg-descr b/multimedia/tosvcd/pkg-descr new file mode 100644 index 000000000000..8fd0e26462b1 --- /dev/null +++ b/multimedia/tosvcd/pkg-descr @@ -0,0 +1,16 @@ +tosvcd takes one or more recorded vdr files and transcodes them to a SVCD +image file ready for cdrdao to burn. + +Some functions: + * synchronises Video/Audio + * tries to repair demaged streams + * split output(with help of mpeg2enc) + * invoke yuvscaler, if input is not 480x576 + * invoke noise filter on request + * predicts finish time + * predicts final output size + * restarts if output size exceeds CD's capacity to enable full automatic + operation + * invoke mplex and vcdimager + +WWW: http://muse.seh.de/tosvcd/ diff --git a/multimedia/tosvcd/pkg-plist b/multimedia/tosvcd/pkg-plist new file mode 100644 index 000000000000..e56c2c408888 --- /dev/null +++ b/multimedia/tosvcd/pkg-plist @@ -0,0 +1 @@ +bin/tosvcd -- cgit v1.2.3