diff --git a/bootstrap b/bootstrap index 2bb1bb4..ee553d4 100755 --- a/bootstrap +++ b/bootstrap @@ -1,11 +1,4 @@ #!/bin/sh -# ffmpeg is exist or not -if test ! -d `pwd`/ffmpeg; then - git submodule init; - git submodule update; - patch -p1 < `pwd`/contrib/ffmpeg-unicode.patch -fi - # exec autoreconf autoreconf -vi -I `pwd`/m4 \ No newline at end of file diff --git a/config.h b/config.h deleted file mode 100644 index cb44d08..0000000 --- a/config.h +++ /dev/null @@ -1,176 +0,0 @@ -/* config.h. Generated from config.h.in by configure. */ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* CPU is $host_cpu */ -#define ARCH ARCH - -/* Description of DONATOR */ -#define DONATOR 1 - -/* Description of DONATORS */ -#define DONATORS 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_FCNTL_H 1 - -/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ -#define HAVE_FSEEKO 1 - -/* Define to 1 if you have the `gettimeofday' function. */ -#define HAVE_GETTIMEOFDAY 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_INTTYPES_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_LOCALE_H 1 - -/* Define to 1 if your system has a GNU libc compatible `malloc' function, and - to 0 otherwise. */ -#define HAVE_MALLOC 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_MEMORY_H 1 - -/* Define to 1 if you have the `memset' function. */ -#define HAVE_MEMSET 1 - -/* Define to 1 if your system has a GNU libc compatible `realloc' function, - and to 0 otherwise. */ -#define HAVE_REALLOC 1 - -/* Define to 1 if you have the `sqrt' function. */ -#define HAVE_SQRT 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STDINT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STDLIB_H 1 - -/* Define to 1 if you have the `strchr' function. */ -#define HAVE_STRCHR 1 - -/* Define to 1 if you have the `strerror' function. */ -#define HAVE_STRERROR 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STRINGS_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STRING_H 1 - -/* Define to 1 if you have the `strrchr' function. */ -#define HAVE_STRRCHR 1 - -/* Define to 1 if you have the `strstr' function. */ -#define HAVE_STRSTR 1 - -/* Define to 1 if you have the `strtol' function. */ -#define HAVE_STRTOL 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_STAT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_TIMEB_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_TYPES_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_UNISTD_H 1 - -/* Define to 1 if the system has the type `_Bool'. */ -#define HAVE__BOOL 1 - -/* Define to 1 if your C compiler doesn't accept -c and -o together. */ -/* #undef NO_MINUS_C_MINUS_O */ - -/* Name of package */ -#define PACKAGE "comskip" - -/* Define to the address where bug reports for this package should be sent. */ -#define PACKAGE_BUGREPORT "http://www.kaashoek.com/comskip/" - -/* Define to the full name of this package. */ -#define PACKAGE_NAME "comskip" - -/* Define to the full name and version of this package. */ -#define PACKAGE_STRING "comskip 0.8.1" - -/* Define to the one symbol short name of this package. */ -#define PACKAGE_TARNAME "comskip" - -/* Define to the home page for this package. */ -#define PACKAGE_URL "" - -/* Define to the version of this package. */ -#define PACKAGE_VERSION "0.8.1" - -/* Platform is Apple */ -/* #undef PLATFORM_APPLE */ - -/* Platform is BSD */ -/* #undef PLATFORM_BSD */ - -/* Platform is Linux */ -#define PLATFORM_LINUX 1 - -/* Platform is Win32 */ -/* #undef PLATFORM_WIN32 */ - -/* Define to 1 if you have the ANSI C header files. */ -#define STDC_HEADERS 1 - -/* Version number of package */ -#define VERSION "0.8.1" - -/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ -/* #undef _LARGEFILE_SOURCE */ - -/* Define for Solaris 2.5.1 so the uint32_t typedef from , - , or is not used. If the typedef were allowed, the - #define below would cause a syntax error. */ -/* #undef _UINT32_T */ - -/* Define for Solaris 2.5.1 so the uint64_t typedef from , - , or is not used. If the typedef were allowed, the - #define below would cause a syntax error. */ -/* #undef _UINT64_T */ - -/* Define for Solaris 2.5.1 so the uint8_t typedef from , - , or is not used. If the typedef were allowed, the - #define below would cause a syntax error. */ -/* #undef _UINT8_T */ - -/* Define to `__inline__' or `__inline' if that's what the C compiler - calls it, or to nothing if 'inline' is not supported under any name. */ -#ifndef __cplusplus -/* #undef inline */ -#endif - -/* Define to the type of a signed integer type of width exactly 64 bits if - such a type exists and the standard includes do not define it. */ -/* #undef int64_t */ - -/* Define to rpl_malloc if the replacement function should be used. */ -/* #undef malloc */ - -/* Define to rpl_realloc if the replacement function should be used. */ -/* #undef realloc */ - -/* Define to `unsigned int' if does not define. */ -/* #undef size_t */ - -/* Define to the type of an unsigned integer type of width exactly 32 bits if - such a type exists and the standard includes do not define it. */ -/* #undef uint32_t */ - -/* Define to the type of an unsigned integer type of width exactly 64 bits if - such a type exists and the standard includes do not define it. */ -/* #undef uint64_t */ - -/* Define to the type of an unsigned integer type of width exactly 8 bits if - such a type exists and the standard includes do not define it. */ -/* #undef uint8_t */ diff --git a/misc/comskip_wrapper.sh b/misc/comskip_wrapper.sh new file mode 100644 index 0000000..c42054a --- /dev/null +++ b/misc/comskip_wrapper.sh @@ -0,0 +1,49 @@ +#!/bin/sh + +# +# Interpret TS file by comskip, and cut CM file by ffmpeg. +# +# $1 = comskip.ini +# $2 = ts file +# + +if test $# -ne 2; then + echo "usage: comskip_wrapper.sh [comskip.ini] [TS file]" 1>&2 + exit 1 +fi + +if ! test -f $1; then + echo ".ini file $1 does not exists." + exit 1 +fi + +if ! test -f $2; then + echo "TS file $2 does not exists." + exit 1 +fi + +COMSKIP=/usr/local/bin/comskip +OPTIONS=--csvout +INIFILE=$1 +TS_FILE=$2 + +exec LD_LIBRARY_PATH=/usr/local/lib ${COMSKIP} ${OPTIONS} --ini=${INIFILE} ${TS_FILE} + +if test $? eq 1; then + echo "comskip failed CM detect...exit" 1>&2 + exit 1 +fi + +FILE_NAME=`basename ${TS_FILE}` + +if ! test -f `pwd`/${FILE_NAME}.vdr; then + echo ".vdr file does not exists...exit" 1>&2 + exit 1 +fi + +VDR_FILE=`pwd`/${FILE_NAME}.vdr + + + +# while read [変数名]; do [処理...] ; done < [入力ファイル] +# ffmpeg -y -i ./3027-12-20130924-0135.m2t -c copy -ss 00:01:02.56 -t 00:00:36.72 -sn ./3027-12-20130924-0135_0001.ts \ No newline at end of file