1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

add tosvcd 0.7

SVCD transcoder
This commit is contained in:
Ying-Chieh Liao 2002-10-25 08:12:42 +00:00
parent d74b901929
commit 3a0cd27f78
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68783
17 changed files with 213 additions and 0 deletions

View File

@ -381,6 +381,7 @@
SUBDIR += tifmerge
SUBDIR += tkxanim
SUBDIR += togl
SUBDIR += tosvcd
SUBDIR += totem
SUBDIR += transcode
SUBDIR += truevision

34
graphics/tosvcd/Makefile Normal file
View File

@ -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 <bsd.port.mk>

1
graphics/tosvcd/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (tosvcd-0.7.tar.bz2) = d821ed70eed67dae5fbbc041217f327f

View File

@ -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++) {

View File

@ -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

View File

@ -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 <time.h>
#include <pthread.h>
#include <list>
-#include <values.h>
#include <signal.h>
-#include <wait.h>
+#include <sys/wait.h>
#include <glob.h>
@@ -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);
}

View File

@ -0,0 +1 @@
SVCD transcoder

16
graphics/tosvcd/pkg-descr Normal file
View File

@ -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/

View File

@ -0,0 +1 @@
bin/tosvcd

View File

@ -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 <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (tosvcd-0.7.tar.bz2) = d821ed70eed67dae5fbbc041217f327f

View File

@ -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++) {

View File

@ -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

View File

@ -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 <time.h>
#include <pthread.h>
#include <list>
-#include <values.h>
#include <signal.h>
-#include <wait.h>
+#include <sys/wait.h>
#include <glob.h>
@@ -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);
}

View File

@ -0,0 +1 @@
SVCD transcoder

View File

@ -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/

View File

@ -0,0 +1 @@
bin/tosvcd