Date: Sat, 19 Apr 2014 23:11:35 +0000 (UTC) From: Juergen Lock <nox@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r351609 - in head/multimedia: . naludump naludump/files Message-ID: <201404192311.s3JNBZXo096748@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nox Date: Sat Apr 19 23:11:35 2014 New Revision: 351609 URL: http://svnweb.freebsd.org/changeset/ports/351609 QAT: https://qat.redports.org/buildarchive/r351609/ Log: Add new port multimedia/naludump: Naludump is a tool to delete NALU fill data from h.264 streams embedded into TS files. The overall file structure isn't modified, only complete TS packets of NALU fill data are removed. Naludump contains lots of code of Klaus Schmidinger's VDR, and is based on cocepts from Marten Richter's Nalustripper. Usage: naludump inputfile.ts [outputfile.ts] WWW: http://www.udo-richter.de/vdr/naludump.en.html Added: head/multimedia/naludump/ head/multimedia/naludump/Makefile (contents, props changed) head/multimedia/naludump/distinfo (contents, props changed) head/multimedia/naludump/files/ head/multimedia/naludump/files/patch-Makefile (contents, props changed) head/multimedia/naludump/files/patch-libsi-headers.h (contents, props changed) head/multimedia/naludump/files/patch-libsi-si.c (contents, props changed) head/multimedia/naludump/files/patch-tools.c (contents, props changed) head/multimedia/naludump/pkg-descr (contents, props changed) Modified: head/multimedia/Makefile Modified: head/multimedia/Makefile ============================================================================== --- head/multimedia/Makefile Sat Apr 19 20:21:10 2014 (r351608) +++ head/multimedia/Makefile Sat Apr 19 23:11:35 2014 (r351609) @@ -241,6 +241,7 @@ SUBDIR += mxflib SUBDIR += mythtv SUBDIR += mythtv-frontend + SUBDIR += naludump SUBDIR += nxtvepg SUBDIR += oggvideotools SUBDIR += ogmrip Added: head/multimedia/naludump/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/naludump/Makefile Sat Apr 19 23:11:35 2014 (r351609) @@ -0,0 +1,26 @@ +# Created by: Juergen Lock <nox@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= naludump +PORTVERSION= 0.1.1 +CATEGORIES= multimedia +MASTER_SITES= http://www.udo-richter.de/vdr/files/ + +MAINTAINER= nox@FreeBSD.org +COMMENT= Delete NALU fill data from h.264 TS files + +LICENSE= GPLv2 + +USES= gmake iconv:wchar_t tar:tgz +PATCH_STRIP= -p1 +CFLAGS+= "-I${LOCALBASE}/include" +CFLAGS+= "-L${LOCALBASE}/lib" +CFLAGS+= ${ICONV_LIB} +MAKE_ARGS+= CC="${CC}" CXX="${CXX}" +MAKE_ARGS+= CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" +PLIST_FILES+= bin/${PORTNAME} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + +.include <bsd.port.mk> Added: head/multimedia/naludump/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/naludump/distinfo Sat Apr 19 23:11:35 2014 (r351609) @@ -0,0 +1,2 @@ +SHA256 (naludump-0.1.1.tgz) = b6bd1899b4e4aad8f850b6892b06f9b639e576a5801d2fa63a6a593a022fd2ca +SIZE (naludump-0.1.1.tgz) = 50459 Added: head/multimedia/naludump/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/naludump/files/patch-Makefile Sat Apr 19 23:11:35 2014 (r351609) @@ -0,0 +1,11 @@ +--- a/Makefile ++++ b/Makefile +@@ -8,6 +8,8 @@ OBJS = naludump.o remux.o tools.o libsi/ + + DEFINES += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE + ++DEFINES += -DO_LARGEFILE=0 ++ + all: naludump + + # Implicit rules: Added: head/multimedia/naludump/files/patch-libsi-headers.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/naludump/files/patch-libsi-headers.h Sat Apr 19 23:11:35 2014 (r351609) @@ -0,0 +1,14 @@ +--- a/libsi/headers.h ++++ b/libsi/headers.h +@@ -17,7 +17,11 @@ + #ifndef LIBSI_HEADERS_H + #define LIBSI_HEADERS_H + ++#ifdef __FreeBSD__ ++#include <sys/endian.h> ++#else + #include <endian.h> ++#endif + + namespace SI { + Added: head/multimedia/naludump/files/patch-libsi-si.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/naludump/files/patch-libsi-si.c Sat Apr 19 23:11:35 2014 (r351609) @@ -0,0 +1,24 @@ +--- a/libsi/si.c ++++ b/libsi/si.c +@@ -13,7 +13,9 @@ + #include "si.h" + #include <errno.h> + #include <iconv.h> ++#ifndef __FreeBSD__ + #include <malloc.h> ++#endif + #include <stdlib.h> // for broadcaster stupidity workaround + #include <string.h> + #include "descriptor.h" +@@ -381,7 +383,11 @@ bool convertCharacterTable(const char *f + if (SystemCharacterTable) { + iconv_t cd = iconv_open(SystemCharacterTable, fromCode); + if (cd != (iconv_t)-1) { ++#ifdef __FreeBSD__ ++ const char *fromPtr = from; ++#else + char *fromPtr = (char *)from; ++#endif + while (fromLength > 0 && toLength > 1) { + if (iconv(cd, &fromPtr, &fromLength, &to, &toLength) == size_t(-1)) { + if (errno == EILSEQ) { Added: head/multimedia/naludump/files/patch-tools.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/naludump/files/patch-tools.c Sat Apr 19 23:11:35 2014 (r351609) @@ -0,0 +1,15 @@ +--- a/tools.c ++++ b/tools.c +@@ -14,7 +14,12 @@ + #include <stdarg.h> + #include <stdlib.h> + #include <sys/time.h> ++#ifdef __FreeBSD__ ++#include <sys/param.h> ++#include <sys/mount.h> ++#else + #include <sys/vfs.h> ++#endif + #include <time.h> + #include <unistd.h> + #include <utime.h> Added: head/multimedia/naludump/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/naludump/pkg-descr Sat Apr 19 23:11:35 2014 (r351609) @@ -0,0 +1,11 @@ +Naludump is a tool to delete NALU fill data from h.264 streams embedded into +TS files. The overall file structure isn't modified, only complete TS packets +of NALU fill data are removed. + +Naludump contains lots of code of Klaus Schmidinger's VDR, and is based on +cocepts from Marten Richter's Nalustripper. + +Usage: +naludump inputfile.ts [outputfile.ts] + +WWW: http://www.udo-richter.de/vdr/naludump.en.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404192311.s3JNBZXo096748>